plonewars.com

February 4th, 2007

Kai Diefenbach: Quick Tip 2: Give KSS a try

Recently, I tried out KSS (formerly known as Kukit) for the second time. The first time is some time ago. At that time, I just played a little bit with it and I was already very positive about that.

Now, I have a special use case: Update one select field in dependency of another and after both select fields are selected do a search and show the results.

All I can say is: it is so easy, intuitive and non-invasive (just add some ids here and there in your HTML, but this may always a good idea.), so kudos to all involved peoples! As this will go into Plone 3.0, I’m sure it will be the next big milestone of Plone (alone the quick edit and realtime validation features, which will come – among others – with it).

To give you a taste of its ease, following is all I had to add to my kss file:

#form-select-1:change {    action-server: getSubCategories;    getSubCategories-category: currentFormVar();}

#form-select-2:change {    action-server : getResults;    getResults-form: currentForm();}

And here is one of the methods, which is called on the server (the fat is KSS stuff all others is needed anyway):

class AjaxView(AzaxBaseView):

    def getSubCategories(self, category):        """Returns sub categories of given category.        """                tool = getToolByName(self, "my_tool")        for top_category in tool.getTopCategories():            if top_category.id == category:                break                        cm = ICategoryManagement(top_category.getObject())        categories = cm.getCategories()                result = ['<select name="category-2" id="form-select-2">']         result.append('<option>Please Select a Subcategory</option>')                       result.extend(        ['<option value="%s">%s</option>' %         	(item.id, item.Title) for item in categories])        result.append('</select>')        IKSSCoreCommands(self).replaceHTML(		'select#form-select-2',                 ' '.join(result))        IKSSCoreCommands(self).replaceInnerHTML('div#result', '')                return self.render()

Here is all you need to get started:

  • The main page
    All stuff you need. Just browse.
  • The software
    As the links on kukit.org seems to be broken. Please note also azazdemo. In the browse folder you will find a lot of helpful examples.
  • Tutorials
    Be a KSS programmer within ten minutes.
  • Cheat sheet
    Implement you own ideas.

Have fun!

Kai Diefenbach: Quick Tip 2: Give KSS a try

Originally from Planet Plone by diefenbach


from Yoda http://plonewars.com/2007/02/04/kai-diefenbach-quick-tip-2-give-kss-a-try/







February 4th, 2007

Using the Resource Registries to control CSS and Javascript — plone.org

Using the Resource Registries to control CSS and Javascript — plone.org

Originally from del.icio.us/tag/plone by wimbou


from Yoda http://plonewars.com/2007/02/04/using-the-resource-registries-to-control-css-and-javascript-a%c2%80%c2%94-ploneorg-3/







February 4th, 2007

ArchGenXML – Getting started — plone.org

ArchGenXML – Getting started — plone.org

Originally from del.icio.us/tag/plone by jindrich


from Yoda http://plonewars.com/2007/02/04/archgenxml-getting-started-a%c2%80%c2%94-ploneorg-14/







February 4th, 2007

Using ArgoUML model with ArchGenXML data types, stereotypes and tagged values — plone.org

Using ArgoUML model with ArchGenXML data types, stereotypes and tagged values — plone.org

Originally from del.icio.us/tag/plone by jindrich


from Yoda http://plonewars.com/2007/02/04/using-argouml-model-with-archgenxml-data-types-stereotypes-and-tagged-values-a%c2%80%c2%94-ploneorg-7/







February 4th, 2007

Evaluating WYSIWYG editors

Evaluating WYSIWYG editors

Originally from del.icio.us/tag/plone by e_reyes


from Yoda http://plonewars.com/2007/02/04/evaluating-wysiwyg-editors-4/







February 4th, 2007

http://wiki.rpath.com/wiki/skins/common/commonPrint.css

http://wiki.rpath.com/wiki/skins/common/commonPrint.css

Originally from del.icio.us/tag/plone by osde.info


from Yoda http://plonewars.com/2007/02/04/httpwikirpathcomwikiskinscommoncommonprintcss/







February 4th, 2007

Chris McDonough: Mobile Phone as WiFi Access Point

I wonder when somebody will come up with software for Wifi cel phones that can cause them to act as wireless access points.

Chris McDonough: Mobile Phone as WiFi Access Point

Originally from Planet Plone by chrism


from Yoda http://plonewars.com/2007/02/04/chris-mcdonough-mobile-phone-as-wifi-access-point/







February 4th, 2007

Chris McDonough: Buildit 0.1 Released

After a bit of prodding, I have released “buildit” version 0.1. This is software that allows you to repeatably create “buildouts” (typically a set of software installations and ‘instance’ data that goes along with each).

Chris McDonough: Buildit 0.1 Released

Originally from Planet Plone by chrism


from Yoda http://plonewars.com/2007/02/04/chris-mcdonough-buildit-01-released/







February 4th, 2007

ZopeMag.com | Section

ZopeMag.com | Section

Originally from del.icio.us/tag/plone by larsks


from Yoda http://plonewars.com/2007/02/04/zopemagcom-section-7/







February 4th, 2007

8. Managing Workflow — PloneDocs

8. Managing Workflow — PloneDocs

Originally from del.icio.us/tag/plone by larsks


from Yoda http://plonewars.com/2007/02/04/8-managing-workflow-a%c2%80%c2%94-plonedocs-4/