[Zope-dev] wiki downtime, zope.interface 3.0.0b1, and buildout/setuptools crash
Hi, a) the wiki is down. Can someone please fix this? b) the homepage of zope.interface 3.0.0b1 points to the wiki. I changed this so that c) gets fixed for now. This probably results in 3.0.0b1 becoming uninstallable right now, although I doubt that it was installable (through the wiki) before. c) buildout/setuptools crashes on the opportunity that urllib raises a BadStatusLine exception instead of checking the next possibility. This is inside of setuptools though. Christian -- Christian Theune · [EMAIL PROTECTED] gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] wiki downtime, zope.interface 3.0.0b1, and buildout/setuptools crash
On Aug 11, 2008, at 10:07 , Christian Theune wrote: a) the wiki is down. Can someone please fix this? Well, it wasn't down like it always was on the old server, Apache just served an empty page for it. This appears to have been a (unrelated) Apache configuration. It's fixed now. jens ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zc.zope3recipes : set offline tests everywhere
Christophe Combelles wrote: Is this change ok? It seems to solve the previous failures in the 3.4 kgs, and speeds up the test. I don't have a problem with the change, but this damages the usefulness of README.txt as documentation. As someone who's never used zope3recipes, I'm going to read that and wonder why offline = true is in there all the time as there are no comments or explanation. Myself, I'd try and find another way of getting offline=true to happen so that the docs can actually remain actual docs without test cruft strewn throughout them. cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: bad zope.size to remove from PyPI
Aaron Lehmann wrote: If the buildout is nailed to that version or above, and there is none, it breaks. Well, breaks is good, but hopefully that means gives an error message along the lines of '''you specified version 'x.y.z' which could not be found'''. Is that what happens or do you just get some obscure random exception? Worse, if someone now adds another egg of the same version, but consumers have cached a version, their buildout won't download it, because it will already have that version in cache. That's only in case of re-use of an exact version number, right? Of course, PyPI should store MD5s for packages and buildout should use them :-( Yes, mistakes happen. What Benji is saying is that deletion is not the right way to remedy them, as unintuitive as that may seem. ...and I'm saying I don't agree... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Sun Aug 10 11:00:00 2008 UTC to Mon Aug 11 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Sun Aug 10 20:52:30 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/009990.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 10 20:54:01 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/009991.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 10 20:55:31 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/009992.html Subject: OK : Zope-2.11 Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 10 20:57:01 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/009993.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 10 20:58:31 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/009994.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] wiki downtime, zope.interface 3.0.0b1, and buildout/setuptools crash
On Monday 11 August 2008, Christian Theune wrote: c) buildout/setuptools crashes on the opportunity that urllib raises a BadStatusLine exception instead of checking the next possibility. This is inside of setuptools though. Thanks for debugging. :-) That was my first task this morning. ;-) Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zc.zope3recipes : set offline tests everywhere
On Aug 11, 2008, at 5:17 AM, Chris Withers wrote: Christophe Combelles wrote: Is this change ok? It seems to solve the previous failures in the 3.4 kgs, and speeds up the test. I don't have a problem with the change, but this damages the usefulness of README.txt as documentation. As someone who's never used zope3recipes, I'm going to read that and wonder why offline = true is in there all the time as there are no comments or explanation. Myself, I'd try and find another way of getting offline=true to happen so that the docs can actually remain actual docs without test cruft strewn throughout them. I agree. A sneaky way to do this would be to change the setup code to set a HOME environment variable to a temporary directory containing .buildout/default.cfg with: [buildout] newest = false Jim -- Jim Fulton Zope Corporation ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zc.zope3recipes : set offline tests everywhere
On Mon, Aug 11, 2008 at 3:27 PM, Jim Fulton [EMAIL PROTECTED] wrote: On Aug 11, 2008, at 5:17 AM, Chris Withers wrote: Christophe Combelles wrote: Is this change ok? It seems to solve the previous failures in the 3.4 kgs, and speeds up the test. I don't have a problem with the change, but this damages the usefulness of README.txt as documentation. As someone who's never used zope3recipes, I'm going to read that and wonder why offline = true is in there all the time as there are no comments or explanation. Myself, I'd try and find another way of getting offline=true to happen so that the docs can actually remain actual docs without test cruft strewn throughout them. I agree. A sneaky way to do this would be to change the setup code to set a HOME environment variable to a temporary directory containing .buildout/default.cfg with: I'll throw out another option: you can add doctest examples in reST comments to enable offline mode. Something like this: .. Set offline mode so the tests run correctly (or whatever). DO THING HERE Now we foo the bar with the baz baz.foo(bar) When rendered to HTML (or any other target) the first part won't be visible, but the second part will be. If you have to do this much a global approach (like the one Jim suggested) would likely be better, but I wanted to demonstrate this approach because it can be useful when you don't want to pollute otherwise good documentation. -- Benji York Senior Software Engineer Zope Corporation ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-PAS] Lack of user enumeration a problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Behrens Matt - Grand Rapids wrote: I've been playing with making an extraction/authentication plugin that takes a cryptographically signed cookie (shared secret and a SHA hash, for the curious) from an external script, with username and expiry derived from the cookie. Basically, I'm trusting the external script has authenticated the user in the cookie up until the expiry time ticks over. That part works. What I'm missing is the ability to manage groups and roles with ZODB managers of each. If I hit the assignments link for either I have no available users. Since I can't actually enumerate my users in the scenario I'm looking at, am I looking at patching/subclassing both managers to accept arbitrary principal IDs? Or is there a better way? You need to have plugins registered which implement IUserEnumeration and IGroupEnumeration for your site. Probably you are going to need to share the set of valid users with that external program, though. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIoNjZ+gerLs4ltQ4RAjYUAKDE8YO9gTxW+ViAym4vv0u8LNnHeACfXx+G Fd92apjNpjsLGUsaQKTCsow= =Py2x -END PGP SIGNATURE- ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
[Zope] Re: Page Template help
Garito wrote: Could someone point me where the page template code decide if an expression is a path expression or a string or python one, please? I'm studying the zope page template classes and I would like to understand where this decision is taken Products.PageTemplates.Expressions.createZopeEngine(): for pt in ZopePathExpr._default_type_names: e.registerType(pt, ZopePathExpr) ZopePathExpr._default_type_names contains, among others, the name 'standard', which makes this expression type the default expression type. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Thesaurus / ontology / taxonomy support in Zope-Plone
Hi, (I'm new to Zope and Plone, so don't hesitate to indicate me a more appropriate mailing-list if necessary) I am curently looking for a library (idealy, ready-for-Plone3.x-Zope2.10) allowing the creation and management of a thesaurus. Our requirements are the following: - creation of our own thesaurus (that is, terms AND relations between terms), and indexing (and retrieving) documents with terms defined in our thesaurus, - thesauraus management facilities, such as batch editing of content items (e.g. for all documents indexed by keyword A and B, replace keywords A and B by keyword C). - user-friendly interface. This could a be tree-like structure (with - ideally - several levels of indexing), such as: Shape - TS: Square + TS: Triangle - TS: Scalene triangle + TS: Equilateral triangle - [...] - [...] - [...] - [...] After some - basic - searches, it appears that there are not many thesaurus management developed for Plone/Zope (and maybe even in python) yet, but as I'm new to Zope-Plone, I may be mistaking: - PloneOntology looked interesting (http://plone.org/products/ploneontology) but is it still maintened (no release for one year)? - icSemantic / pyThesaurus (http://plone.org/products/icsemantic-thesaurus http://www.platecom.com/) looks promising but there isn't much documentation and the website is only in Spanish for the moment). - Tabajara (http://plone.org/products/tabajara) looks like a dead project (only works for Plone 2.1??). - I don't think Portal Taxonomy (http://plone.org/products/portal_taxonomy) or AT Vocabulary Manager (http://plone.org/products/atvocabularymanager) are suited for thesaurus - pyWordNet (http://osteele.com/projects/pywordnet/index.html) appears to be more a back-end to WordNet thesaurus than a thesaurus mangement tool. - so far, TextIndexNG3 (http://www.zopyx.de/projects/TextIndexNG3) looks the most promising, event if it doesn't appear to offer thesaurus management tools yet... What do you think of it and/or is there already a discussion on this topic? Thank you in advance, Benjamin Michiels -- Software AG Benelux ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thesaurus / ontology / taxonomy support in Zope-Plone
On Aug 11, 2008, at 14:26 , Benjamin Michiels wrote: Hi, (I'm new to Zope and Plone, so don't hesitate to indicate me a more appropriate mailing-list if necessary) You may get better Plone-related answers on the Plone list(s). See plone.org. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] ZClasses deprecation and upgrades
I am wondering about is the nature of the problems with ZClasses that led to their deprecation. If I move a 2.5.1 installation to 2.11, are my several existing ZClass-based products going to break in any known way I should be aware of? Should I consider a last-known-good upgrade target instead? Not really looking for ironclad assurances so much as general experience here. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Hi Philipp! Thank you so much for your response but in this lines is were the engine loads the possibilities but not were evaluate the current expression I would like to evaluate some condition before to load the class who resolves the expression (and witch is loaded in the code you point me) More clear? Thanks! 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED] Garito wrote: Could someone point me where the page template code decide if an expression is a path expression or a string or python one, please? I'm studying the zope page template classes and I would like to understand where this decision is taken Products.PageTemplates.Expressions.createZopeEngine(): for pt in ZopePathExpr._default_type_names: e.registerType(pt, ZopePathExpr) ZopePathExpr._default_type_names contains, among others, the name 'standard', which makes this expression type the default expression type. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZClasses deprecation and upgrades
--On 11. August 2008 08:44:21 -0500 Behrens Matt - Grand Rapids [EMAIL PROTECTED] wrote: I am wondering about is the nature of the problems with ZClasses that led to their deprecation. If I move a 2.5.1 installation to 2.11, are my several existing ZClass-based products going to break in any known way I should be aware of? Should I consider a last-known-good upgrade target instead? Nobody can tell you or promise that your code will work in Zope 2.11. So you have to try it yourself. It it won't work, try with an older major release. Upgrading worked for some users, not for others..so you must investigate yourself. Andreas pgpEvDMYdOO3w.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thesaurus / ontology / taxonomy support in Zope-Plone
For the spanish website try google translate I wonder how difficult is for a english person to read something isn't in his/her language If non english do the same... 2008/8/11 Jens Vagelpohl [EMAIL PROTECTED] On Aug 11, 2008, at 14:26 , Benjamin Michiels wrote: Hi, (I'm new to Zope and Plone, so don't hesitate to indicate me a more appropriate mailing-list if necessary) You may get better Plone-related answers on the Plone list(s). See plone.org. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
--On 11. August 2008 15:48:21 +0200 Garito [EMAIL PROTECTED] wrote: Hi Philipp! Thank you so much for your response but in this lines is were the engine loads the possibilities but not were evaluate the current expression I would like to evaluate some condition before to load the class who resolves the expression (and witch is loaded in the code you point me) Sounds strange to me. Usecase? -aj pgp144f2ndoz3.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Use: /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way You could do that converting the path above to python: path(path('string:' + '/path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way')) or in a generic way: python: path(path('string:' + expr)) No more than 5 o 6 lines changed and a lot of code saved 2008/8/11 Andreas Jung [EMAIL PROTECTED] --On 11. August 2008 15:48:21 +0200 Garito [EMAIL PROTECTED] wrote: Hi Philipp! Thank you so much for your response but in this lines is were the engine loads the possibilities but not were evaluate the current expression I would like to evaluate some condition before to load the class who resolves the expression (and witch is loaded in the code you point me) Sounds strange to me. Usecase? -aj -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Garito wrote: Use: /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way Path expressions already support this. tal:define=pathel some/magic/variables; objpath/to/the/object/with/?pathel/to/solve/some/... So basically in TALES path expressions you can say foo/?bar and the value of the 'bar' variable will be used to traverse the next step from 'foo'. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Considere this case: I have the sking value in the variable at args/Yanged/Skin How can I do the equivalent to args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url ? In the python way it will be: path(path('string:' + 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url')) That's returns the expected value but I can't see how to do with your propossed way Thanks! 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED] Garito wrote: Use: /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way Path expressions already support this. tal:define=pathel some/magic/variables; objpath/to/the/object/with/?pathel/to/solve/some/... So basically in TALES path expressions you can say foo/?bar and the value of the 'bar' variable will be used to traverse the next step from 'foo'. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Finally it's possible to do what I need without the need to declare any variable? If not my change will be 4-6 lines of code and it's ok for me to make this change I only need to understand were the code decides if the expression is standard, string or python Could you help me? Thanks! 2008/8/11 Garito [EMAIL PROTECTED] Considere this case: I have the sking value in the variable at args/Yanged/Skin How can I do the equivalent to args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url ? In the python way it will be: path(path('string:' + 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url')) That's returns the expected value but I can't see how to do with your propossed way Thanks! 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED] Garito wrote: Use: /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way Path expressions already support this. tal:define=pathel some/magic/variables; objpath/to/the/object/with/?pathel/to/solve/some/... So basically in TALES path expressions you can say foo/?bar and the value of the 'bar' variable will be used to traverse the next step from 'foo'. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Garito wrote: Considere this case: I have the sking value in the variable at args/Yanged/Skin How can I do the equivalent to args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url ? In the python way it will be: path(path('string:' + 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url')) That's returns the expected value but I can't see how to do with your propossed way a tal:define=skin args/Yanged/Skin; file args/Yanged/raiz/Skins/?skin/arbolYanged.css tal:attributes=href file/absolute_url ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Yes, it's ok but I can save n variable definitions with 4 lines of code in 1 point Seems quite interesting for me Could someone point me were the page template decides if the expression is a standard, string, python, etc one, please? ;) 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED] Garito wrote: Considere this case: I have the sking value in the variable at args/Yanged/Skin How can I do the equivalent to args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url ? In the python way it will be: path(path('string:' + 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url')) That's returns the expected value but I can't see how to do with your propossed way a tal:define=skin args/Yanged/Skin; file args/Yanged/raiz/Skins/?skin/arbolYanged.css tal:attributes=href file/absolute_url ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Garito wrote: Finally it's possible to do what I need without the need to declare any variable? Not that I know of. If not my change will be 4-6 lines of code and it's ok for me to make this change I only need to understand were the code decides if the expression is standard, string or python I already pointed you to the code where the different expression types are registered. From there you should be able to deduce where these registrations are used. I don't know this by heart and would have to search for myself. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Page Template help
Sure Philipp! I'm searching for some days and I still searching but if someone else knows the point perhaps he/she accelerate me ;) Thank you so much for your interest, Philipp! 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED] Garito wrote: Finally it's possible to do what I need without the need to declare any variable? Not that I know of. If not my change will be 4-6 lines of code and it's ok for me to make this change I only need to understand were the code decides if the expression is standard, string or python I already pointed you to the code where the different expression types are registered. From there you should be able to deduce where these registrations are used. I don't know this by heart and would have to search for myself. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )