r13424 - ArchGenXML/trunk/src/archgenxml/templates

"Philipp Auersperg" <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: zworkb
Date: Wed Jan 19 04:37:21 2011
New Revision: 13424

Modified:
   ArchGenXML/trunk/src/archgenxml/templates/browser.zcml
Log:
browser views: name on dpendency determines name of view

Modified: ArchGenXML/trunk/src/archgenxml/templates/browser.zcml
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/templates/browser.zcml	(original)
+++ ArchGenXML/trunk/src/archgenxml/templates/browser.zcml	Wed Jan 19 04:37:21 2011
@@ -16,7 +16,7 @@
 <dtml-let dep="_['sequence-item']" target="dep.getSupplier()">
   <browser:page
      for="Products.<dtml-if "target.isInterface()"><dtml-var "target.getQualifiedName(includeRoot=True)"><dtml-else><dtml-var "target.getPackage().getQualifiedName(None,includeRoot=True)">.interfaces.I<dtml-var "target.getName()"></dtml-if>"
-     name="<dtml-var "klass.getTaggedValue('name') or klass.getName()">"
+     name="<dtml-var "(not dep.getName()[0].isdigit() and dep.getName()) or klass.getTaggedValue('name') or klass.getName()">"
      class="Products.<dtml-var "klass.getQualifiedName(includeRoot=True)">"
      template="templates/<dtml-var "klass.getTaggedValue('template_name')">"
      permission="<dtml-var "klass.getTaggedValue('permission') or 'zope2.View'">"

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.