Tuesday, April 22, 2008

More plone resources

More interesting plone resources at:
http://www.combsnet.com/about-plone/volunteer-database

The page discuss quite a few things including:

  • How do you make the ArgoUML files launch the editor when you double-click them?
  • How do you know all the legal tag values and widget types? How do you make them appear as pop-up values within ArgoUML so you don't have to type them?
  • How do you make your new type work with smart folders?
  • How do you create custom views?
  • How do you CSV import your data, geocode it, and display it in a Google map? (Okay, maybe you didn't have that question, but you'd be surprized at how easy it is in Plone.)
There is also another interesting resource at:
http://www.jazkarta.com/technology/plone-technology/plonebook/ch13.rst

where there is a very comprehensive reference in developing the archetype.

There is also:
http://wiki.zope.org/ZPT/TALSpecification14

where you can look up a bit on the templating of plone content types.

For some tutorials on templating plone 3 you can look at:
http://plone.org/documentation/tutorial/customizing-main-template-viewlets
and also
http://plone.org/documentation/how-to/override-the-portlets-in-plone-3.0

Monday, April 21, 2008

Extending Plone Content Types

With archgenxml and plone you can start adding new types of content easily. If you want to subclass an existing class just follow the steps here:
http://plone.org/products/archgenxml/documentation/how-to/subclassing-atcontenttypes/?searchterm=atcontenttypes

And to refer what class you can use just browse at:
http://api.plone.org/Plone/3.0/public/frames/products/ATContentTypes/index.html

Be aware that the class name of the stub have to be the same as defined in the api. For example for the news item, it is ATNewsItem (IT IS CASE SENSITIVE). And walah... it works.. :)

Sunday, April 20, 2008

Easier modeling archgenxml with argouml

Follow the step show here:
http://plone.org/products/archgenxml/documentation/how-to/using-argouml-model-with-archgenxml-data-types-stereotypes-and-tagged-values

And argouml will have all the default for archgenxml in dropdowns. Nice.. :)

Friday, April 18, 2008

Learning Django

Today spent some time learning Django, a web application framework written in python. Followed it's tutorial with my own data that has a lot of dependency upon dependency. The automatically generated admin handles it pretty well. Of course I needed a reference to the type of data models available to me in Django. And of course I know I'd need a reference on how to make more complicated queries. And even with all it's power I still scared because I might need to make my own sql query. So far Django seems to be able to accomodate all of my needs. I'll like to see how far I can take it.. ;)

Wednesday, April 16, 2008

Better main in python

A good tip from the Benevolent Dictator himself on how to write better more flexible main() function can be found here at: http://www.artima.com/weblogs/viewpost.jsp?thread=4829