[ZPT] Re: zpt macro question. Widgets?

Dorneles Treméa dorneles at x3ng.com.br
Thu Mar 25 23:37:58 EST 2004


Hi Michael,

> I have been trying to trace down the code that performs the work in line
> 2...  I know it is calling the script widget, passing the name of the
> field returned in line one, in view mode, and it wants the label placed
> in the widget... But where is the 'widget' script... I have looked in
> plone_scripts, and in the product root in the ZMI, but I can't locate
> it, and it doesn't seem to be on the local FS...
> 
> Now, I am using Archetypes, and there is a subdirectory in the
> skins/archetypes directory with pt files for the different types of
> fields, but, widget would have to be a script, correct?

Not necessarily, it can be an object method... :-)

Tip: inside Archetypes directory, run something like:

grep 'def widget(' .

BaseObject.py: def widget(self, field_name, mode="view", field=None,
**kwargs):

> Can anyone help me out here?

HTH... regards,

-- 

Dorneles Treméa
Caxias do Sul - RS - Brasil
+55 54 9114 9312 - UIN: 2413568
X3ng Web Technology <http://www.x3ng.com.br>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/IT d- s:->: a24 C+++ UBL++++$ P--- L++ E-- W+++
N++ o? K? w+ O M+ V-- PS+ PE- Y-- PGP++ t+ 5 X++ R+
tv+ b(++) DI+ D++ G+>+++ e++>++++ h---- r+++ y+++**
------END GEEK CODE BLOCK------




More information about the ZPT mailing list