quick search:
 
[ View All by Rating ] [ View All by Date ]

Change Batch Size:
Recipes 1-10 of 19  Next >
Basically very useful debug function submitted by: peterbe
Here's a debug() script that I use instead in most of my product code. It's more less an ...
Last Edited: 2005-07-27

Optimize XHTML, HTML or CSS submitted by: peterbe
Suppose you have a chunk of XHTML, HTML or CSS that you want to optimize, then you can use the ...
Last Edited: 2004-10-14

Easier way to set several templates in product submitted by: peterbe
The convention when creating template attributes to your class is like this:: from ...
Last Edited: 2004-10-14

Aliases to methods submitted by: peterbe
Suppose you have a method called rss_xml() in your python product and want to alias this to ...
Last Edited: 2004-10-14

Use type() in Python Scripts submitted by: peterbe
You can't use type() or the types modules in Python Script because "The 'type' function, on ...
Last Edited: 2004-10-14

Varying index_html submitted by: peterbe
Big thanks to Dieter Maurer for his help on this! Buy his book one day. PageTemplateFile(), ...
Last Edited: 2004-10-14

Smart use of metal macros submitted by: peterbe
In most ZPT objects you start with a HTML tag that defines which metal macro (or header&footer) ...
Last Edited: 2004-10-14

Recursive folderish test submitted by: peterbe
When you write recursive methods (in External Methods, DTML *, ZPT or like here Python Script), the ...
Last Edited: 2004-10-14

Print debugging message without print submitted by: peterbe
When working with External Methods and developing Python code you can sometimes use 'print ...
Last Edited: 2004-10-14

SortEx in Zope 2.4.0 submitted by: peterbe
Have you ever used the SortEx module in Zope 2.<4 ? Now, in Zope 2.4.0, it's called sequence and ...
Last Edited: 2004-10-14