Re: [Zope3-Users] Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list
KLEIN Stéphane a écrit : Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list. What do you think about this idea ? List created: http://lists.afpy.org/cgi-bin/mailman/listinfo/zope3-french-user Cheers, -- Encolpe Degoute INGENIWEB (TM) - S.A.S 5 Euros - RC B 438 725 632 17 rue Louise Michel - 92300 Levallois Perret - France web : www.ingeniweb.com - « les Services Web Ingénieux » ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zpt pages though ZMI
Hassan Alirezaei wrote: In my own skin I'm using span tal:replace=request/principal/titleUser/span with no problem for either zcml principals nor pau principals. Thanks Darryl, I got it working. span did the trick! I thought It did work Darryl But I had a small mistake in the template so the whole request/principal/title was not even parsed. Now that I fix it again with: span tal:replace=request/principal/titleUser/span it still doesn't work. when I print the Principal object itself (request/principal) i get security proxied zope.app.security.principalregistry.Principal instance at 0xb669fccc for the zope.manager and security proxied zope.app.authentication.principalfolder.Principal instance at 0xb596d22c for the PAU manager which is different as expectedly different of course. * once again to the original problem, when I upload the following ZPT page through the ZMI, -- html metal:use-macro=context/@@standard_macros/page /html I get the following error when viewing it while logged in with a PAU principal: File /usr/local/Zope-3.3.0c1/lib/python/zope/tales/expressions.py, line 217, in __call__ return self._eval(econtext) File /usr/local/Zope-3.3.0c1/lib/python/zope/tales/expressions.py, line 194, in _eval ob = self._subexprs[-1](econtext) File /usr/local/Zope-3.3.0c1/lib/python/zope/tales/expressions.py, line 124, in _eval ob = self._traverser(ob, element, econtext) File /usr/local/Zope-3.3.0c1/lib/python/zope/app/pagetemplate/engine.py, line 68, in __call__ request=request) File /usr/local/Zope-3.3.0c1/lib/python/zope/traversing/adapters.py, line 164, in traversePathElement return traversable.traverse(nm, further_path) - __traceback_info__: (Principal(u'isi.mas.hassy'), 'title') File /usr/local/Zope-3.3.0c1/lib/python/zope/traversing/adapters.py, line 52, in traverse raise TraversalError(subject, name) - __traceback_info__: (Principal(u'isi.mas.hassy'), 'title', []) TraversalError: (Principal(u'isi.mas.hassy'), 'title') --- here is how I refer to the request/principal/title : --- div id=userDetails metal:define-slot=user_details metal:block define-macro=logged_user span tal:omit-tag= i18n:translate=User:/span span replace=request/principal/titleUser/span /metal:block metal:block define-slot=login_logout metal:macro define-macro=login_logout tal:block content=structure context/@@login_logout / /metal:macro /metal:block /div - usingspan replace=request/principal/titleUser/span will work quite fine on every normal page I have and I can get the title for all the principals (ZCML and PAU) but when I upload the ZPT and look at it, ONLY ZCML users render without any problem. unauthenticated user in the ZCML also can not render. Thank you again for any help. Regards, Hassan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Using dotted package names
Sorry, wrong Post. I was talking to put support for dotted packages, for AGX generated products. On 9/23/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Fabio Rizzo Matos wrote: Olha pq não estava rolando os nossos pontos! /me precisamos corrigir o agx para gerar os nomes de pacotes com pontos. Hoje ele está substituindo para ponto. English, please. abraços On 9/23/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote: George Lee wrote: I am trying to be a good programmer and create pure Zope packages instead of Plone products when possible. That's great! Note that you will either need Zope 2.10 or Zope 2.9 + Five 1.4 for this. How do dotted package names (like plone.portlets or dotted.name) work? In \zopeinstance\lib\python, is the package actually in \zopeinstance\lib\python\dotted.name, or is it in \zopeinstance\lib\python\dotted\name? The latter. What is the purpose of using the dotted name? Short answer: package namespaces. Long answer: Say you're creating a widget library. You could call your package simply widget. But then if I create a widget library and called it widget, too, we'd have a conflict and couldn't use them at the same time. That's why you call your package george.widget and I'll call my package philikon.widget. Makes sense? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users -- Fabio Rizzo ThreePointsWeb [EMAIL PROTECTED] ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Local configuration settings via ZCML
Hi All, I have a component that's doing a database connection, and the connection is described in configure.zcml as: rdb:provideConnection name='my_db' component='psycopgda.adapter.PsycopgAdapter' dsn='dbi://user:[EMAIL PROTECTED]/dbname' / The problem is that this file is being committed to subversion then deployed to a production site, overwriting the production settings. I'd like to have a nice tidy way of having a bunch of settings like this for my development environment in some sort of optional local include file. I thought the include directive might do it for me, but it seems to ignore any settings in the local file, and when I use includeOverrides I get a config conflict error. Any suggestions as to the best way to handle this ? Cheers, Andrew. - Reurbanise - Urban Sustainability ph: (03) 3528 055, mobile: 0274 992 569 http://www.reurbanise.co.nz ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users