Thursday, September 25, 2008

Webware for Python, and WebKit

So does anybody still use Webware for Python? And how do the developers of Webware feel about WebKit? Now there stuck with names for their products that companies with bigger pocket books have rebranded.

Ask anyone about WebKit, they won't tell you its a python application server that runs on top of Webware. No, they'll say, WebKit is an open source web browser engine with roots in KHTML, that Apple has invested heavily in.

Monday, September 08, 2008

Drupal CCK Search

So you've added a custom content type, you've added CCK fields to it. Now you want to create some pages, to provide search result lists for your custom content type.

If your using Drupal 6, make sure the CCK Module, the Views Module, and the Advanced Help module are installed.

Then within the drupal admin, go to "Views". This is where you can create your custom search result pages. The advanced help module, will help you make sense of things, and the "Views" module itself is great in that it tells you the exact SQL that will be used to generate your search results. You can use any thing related to your node to help filter your results; be it CCK, Taxonomy or many other options.

Saturday, September 06, 2008

Drupal Gripes

Today's Drupal gripes:
  • Everything in the database
  • Difficult to move between development and production servers
  • Version Control, difficult to have a running production server, add changes to a development server, and then merge the changes into a production environment
  • No Unit Testing
Why Java, .Net, Ruby, Django, Pylons, TurboGears, etc are better
  • Unit Testing
  • Easy to move between development and production code

Friday, September 05, 2008

Drupal Custom Menu

So, you've made a custom drupal menu, now you want to use it in your theme. How do you use your custom drupal menu in a theme? Here's how.

First, Drupal adds "menu-" to your custom menu. So if you named your menu "custom-menu", when referencing your custom menu you have to call it "menu-custom-menu".

The drupal api call to make is "menu_navigation_links", and then pass the result to "theme" to render the list.

print theme('links', menu_navigation_links('menu-custom-menu',0));

Look how the code above is similar to what you're used to doing for the $primary_links, and $secondary_links that are built into drupal, as shown below:

print theme('links', $primary_links, array('class' => 'links primary-links'));

Top Drupal Developer Links

Here's my Top Drupal Developer Links: