[Patch] AGX: zope3_interface doesn't allow me to include formlib variables

3 messages Options
Embed this post
Permalink
Derek Broughton-3 () [Patch] AGX: zope3_interface doesn't allow me to include formlib variables
Reply Threaded More More options
Print post
Permalink
When I generate an interface in archgenxml, because it has no "protected
section" in the template, any field definitions I add for formlib are
overwritten.  The attached patch (I hope gmane lets me attach, since it
wraps if I just include it) adds a "class-header" section like most
classes.

--
derek

[iface.diff]

--- /home/derek/plone/eggs/archgenxml-2.3-py2.4.egg/archgenxml/templates/zope3_interface.pydtml 2009-03-29 12:05:49.000000000 -0300
+++ /usr/lib/python2.4/site-packages/archgenxml-2.3-py2.4.egg/archgenxml/templates/zope3_interface.pydtml 2009-03-30 12:16:32.000000000 -0300
@@ -6,7 +6,6 @@
     """<dtml-var "utils.indent(klass.getDocumentation(), 1, skipFirstRow=True, stripBlank=True)">
     """
     
-<dtml-var "generator.getProtectedSection(parsed_class,'class-header_'+klass.getCleanName(),1)">
 <dtml-in "generator.getMethodsToGenerate(klass)[0]">
 <dtml-let m="_['sequence-item']">
     def <dtml-var "m.getName()">(<dtml-var "', '.join(m.getParamNames())">):



------------------------------------------------------------------------------

_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Vincent Fretin () Re: [Patch] AGX: zope3_interface doesn't allow me to include formlib variables
Reply Threaded More More options
Print post
Permalink
Hi Derek,

I commited this fix. It will be in archgenxml 2.4
Thanks.
--
Vincent Fretin


On Mon, Mar 30, 2009 at 8:39 PM, Derek Broughton <[hidden email]> wrote:
> When I generate an interface in archgenxml, because it has no "protected
> section" in the template, any field definitions I add for formlib are
> overwritten.  The attached patch (I hope gmane lets me attach, since it
> wraps if I just include it) adds a "class-header" section like most
> classes.
>
> --
> derek

------------------------------------------------------------------------------
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Derek Broughton-3 () Re: [Patch] AGX: zope3_interface doesn't allow me to include formlib variables
Reply Threaded More More options
Print post
Permalink
Vincent Fretin wrote:

> Hi Derek,
>
> I commited this fix. It will be in archgenxml 2.4
> Thanks.

Excellent!  I didn't expect to be in time for 2.4
--
derek


------------------------------------------------------------------------------
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users