[Zope] Re: How to find out the full URL

2005-05-12 Thread Tonico Strasser
Hong Yuan schrieb: I have a page template, say 'products.pt', which takes traverse_subpath[0] as one of the variables, so e.g. the URL: http://myserver/products/100 will actually call products.pt, which get 100 from the URL and displays it in the template. Now my question is how can I get the

[Zope] Re: [ZPT] Recursive structures

2005-07-01 Thread Tonico Strasser
Nikko Wolf schrieb: Ian Bicking wrote: I'm surprised this has never come up for me before, but now I want to render a recursive data structure and I'm at a loss how I might do that in ZPT. Or, what the best workaround would be. E.g.: ['a', 'b', ['c', ['d', 'e']]] Becomes: ul lia/li

[Zope] Re: best practice, CSS Stylesheets

2006-03-21 Thread Tonico Strasser
Tino Wildenhain schrieb: Peter Bengtsson schrieb: John Huttley wrote: Hi, What is the best way of handling CSS? I've looked at ZStylesheets, but it is buggy and uses depreciated functions that will not be available in 2.10. I recommend a DTML Document as an upgrade to File objects. If

[Zope] Re: best practice, CSS Stylesheets

2006-03-23 Thread Tonico Strasser
Tino Wildenhain schrieb: David Pratt schrieb: Anyone have any idea whether dynamic css via dtml will remain possible as CMF gets more Z3'ish? Or will only possibility be overrides in css itself. What do you expect to change with Z3? Otoh, not using runtime-generated CSS is usually a better

[Zope] Re: CSS Best practises

2006-03-24 Thread Tonico Strasser
Tino Wildenhain schrieb: ... flexibility w/o slow and error prone full dynamic stylesheets. Plain text/css files are slow too if you don't cache 'em. Tonico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No

[Zope] Re: CSS Best practises

2006-03-24 Thread Tonico Strasser
Tino Wildenhain schrieb: Tonico Strasser schrieb: Tino Wildenhain schrieb: ... flexibility w/o slow and error prone full dynamic stylesheets. Plain text/css files are slow too if you don't cache 'em. But you can, thats the whole point. You can cache dynamic stylesheets too, why

[Zope] Re: page templates and python:

2006-07-03 Thread Tonico Strasser
Claudio Battaglino schrieb: Hi, what does exactly happen when I use python: into a zpt? Is it a problem if I have many python: in my page templates? Path expressions are by far better human readable IMHO. I try very hard to avoid Python expressions if possible. To give you an example: I

[Zope] Re: page templates and python:

2006-07-03 Thread Tonico Strasser
Small correction ... option tal:attributes=python: test(foo == bar, 'selected', None) ... Should be: option tal:attributes=selected python: test(foo == bar, 'selected', None) ... ___ Zope maillist - Zope@zope.org

[Zope] Re: nested metal macros

2006-08-22 Thread Tonico Strasser
Antonio Beamud Montero schrieb: Ok... I want to define a template (like a skeleton), other template (like the body of the skeleton) and lot of templates in sections of the body of the skeleton and reuse the skeleton and the body across all my web... How I can do that? It's posible or only one

[Zope] Re: metal:fill-slot and tal:condition

2007-02-22 Thread Tonico Strasser
Dragos Chirila schrieb: Hi everybody, I am stuck with the following problem. I would appreciate it very much if you could help me with it. [snip] If I understand correctly you want to fill a slot if a condition is true else leave the default. A typical slot-modell looks something like

[Zope] Re: returning a macro from a pythonscript

2007-03-02 Thread Tonico Strasser
Gaute Amundsen schrieb: foo = restrictedTraverse('/foo/bar/index.html/macros/mymacro') You can use this macro in a template. div metal:use-macro=foo/ Tonico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No

[Zope-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-27 Thread Tonico Strasser
Jim Fulton wrote: Evan Simpson wrote: Jim Fulton wrote: IMO, if we take this route, we should think of the notation as providing an alternate traversal operator. That is, there is syntax that either modifies or replaces /, so of the examples above, only: context/*dc/title In that case, I'd be

Re: [ZWeb] zope web status report 2006-02-06

2006-02-07 Thread Tonico Strasser
Martijn Faassen wrote: * does anyone know a good web designer who can design a solid looking, serious, but still exciting website for zope? Whether a site is exciting or not is purely subjective I think. I find w3.org very exciting, but I guess many here don't ;) Making a solid design

Re: [ZWeb] V3 Updated

2006-03-23 Thread Tonico Strasser
Tom Von Lahndorff schrieb: - I think fly out menus on Web pages just don't Feel Good (not to mention the debatable usability problems they might introduce[2]). See Mike D.'s comments on that article which pretty much sums up my rationale and implementation. Still not convinced, but