Re: [ZPT] Added Python code blocks to ZPT

2005-05-18 Thread Chris Withers
Sorry, but -as-many-as-I'm-allowed. this is horrible :-( Chris Ian Bicking wrote: Well, ZPT is pretty slow moving these days, but there's a feature that I'd be interested in. It's inspired by Kid (http://lesscode.org/projects/kid/), which is very similar to ZPT. In it, you can have Python code

Re: [ZPT] Designing a simpe web page with zope

2005-07-23 Thread Chris Withers
Nuray Dedeoglu wrote: "ZEXPf((U'Products.PageTemplates.ZopePageTemplateqUZopePageTemplateqtqNt.}q(UtitleqUU content_typeqU text/htmlqU_textqTÐ The title Welcome to Zope. We've collected some example applications that demonstrate simple Zope features. You can examine how these appli

Re: [ZPT] calling a python script from ZPT

2005-07-23 Thread Chris Withers
Kenneth Gonsalves wrote: final folder. It could be shortened if i could find the python equivalent to the string $plone_url string:$plone_url can be replaced with python:plone_url(). Any chance you could go and bother the plone list with all these questions that could easily be answered by RE

Re: [ZPT] accessrule.py?

2005-07-23 Thread Chris Withers
Nuray Dedeoglu wrote: Hi, While I was trying to change the language of my plone portal from turkish to enlish I created a python script named accessrule and placed it in the root directory in my ZMI,then set the access rule with the one I created. I inserted the following code in to the python sc

Re: [ZPT] Installing Zope 3 ZPT

2005-09-28 Thread Chris Withers
Have a google for a post I made a while back to the zope3-dev@zope.org list saying thankyou for the amazing packaging work they did for the new ZPT. There were a few mails in the thread and one of them showed the exact steps I used to produce the tarballs and windows installers I worked with..

Re: [ZPT] News (only) Folders

2005-10-04 Thread Chris Withers
[EMAIL PROTECTED] wrote: Hi, I want to have number of news folders and news subfolders, which contains only news. I want to achieve that when I'll add news to one folder this news will be only display in this folder. I've changed in /portal_skins/plone_templates/news: Does your portal_c

Re: [ZPT] How to getId() of pt from a Script (Python)

2005-10-04 Thread Chris Withers
Chris Miles wrote: How do I get the Script (Python) to fetch the id of the Page Template it was called from? _.getitem('template').getId() and make sure you've bound _ to the namespace using the Bindings tab. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [ZPT] Error from ZPT processing

2005-10-05 Thread Chris Withers
Please don't cross post like this, this is likely an Archtypes problem, so the AT mailing list is the right place... Chris Michael Rowley wrote: Hello, I am recieving a wierd error from the default archetypes/ base_edit.cpt page with the following error... using Archetypes 1.3.4 final, Plo

Re: [ZPT] I really need feedback on this topic... FW: On ZPT designer...

2005-10-05 Thread Chris Withers
Re-posting like this is a sure fire way to get people to ignore you ;-) Chris - often ignored himself, apparently... Manuel Vázquez Acosta wrote: Hi all, Yesterday I post a message and I have not received any feedback yet. Please I really need someone to tell if there's already a similar proje

[ZPT] xpath: expression type?

2005-10-05 Thread Chris Withers
Hi Paul, Just rad your excellent blog post at: http://radio.weblogs.com/0116506/2005/10/05.html#a351 ...and it made me wonder: what if ZPT had an xpath: expression type? Your examples could become: Item ID Item ID I don't reckon this is gonna be that hard to implement... comments anyone? C

[ZPT] Re: xpath: expression type?

2005-10-10 Thread Chris Withers
Paul Everitt wrote: No, I just meant that I'm not subscribed to the zpt list. So, I would have replied to all, there would have been a bounce. Oh well, I shall bounce away then... ;-) Indeed, that was kind of the direction I was going towards. I've been told that ZPT in Zope 3 is more

[ZPT] Re: xpath: expression type?

2005-10-11 Thread Chris Withers
Tonico Strasser wrote: OTOH I would love a ZPT implementation with less expression types; e.g. without 'python:', 'string:' and 'exists:' expressions. Read only templates. I don't think truly read-only templates would be very useful ;-) Maybe a subclass in Zope 3 would let you disable all the

Re: [ZPT] ZPT and ZSqL question

2005-10-12 Thread Chris Withers
Tom Twyman wrote: Hello all! I am trying to construct a login page. Look for SimpleUserFolder and CookieCrumbler ;-) I have users registering on the site using ZPT, python script, and ZSQL methods, and their account information is held in a table ("clients") in a psql database. Now, I w

Re: [ZPT] sending email

2005-10-12 Thread Chris Withers
Tom Twyman wrote: Hello all! I am trying to send an email from a login page as a form of confirmation. I have the following script inserted into the python script that performs the login: MailTemplates are your friend: http://www.simplistix.co.uk/software/zope/mailtemplates Look at the exa

Re: [ZPT] How to create a file "on the fly" ?

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: I have a page that users fill info and a button to submit that info. When the button is pressed I want to create a file with some text content. 1.How can I create a file to send it by mail ? 2.When I have send the file by mail I want the file to be deleted. How I

Re: [ZPT] How to create a file "on the fly" ?

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: I have a page that users fill info and a button to submit that info. When the button is pressed I want to create a file with some text content. 1.How can I create a file to send it by mail ? 2.When I have send the file by mail I want the file to be deleted. How I

Re: [ZPT] How to create a file "on the fly" ?

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: It is a text file that I want to create . Like I say it I want to create it -> mail it -> and delete it when it have been mailed... Okay, now where can I find a brick wall to go and smash my head into? LOOK! Just because you want to mail a file attachment, doesn

Re: [ZPT] How to create a file "on the fly" ?

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: Okay, now where can I find a brick wall to go and smash my head into? Are you mad ? :-( Only since trying to help you out ;-) OK for the mail but for the file I think this is the right list , doesn't ? NO. This is the Zope Page Template list, for ZPT, and ZPT

Re: [ZPT] Emacs mode for ZPT

2005-11-02 Thread Chris Withers
Rakotomandimby Mihamina wrote: What Emacs mode do Emacs users use for ZPT editiion? I mostly think about syntax highlighting. Just SGML-mode, or what? Yup. Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [ZPT] Bug in ZPT ?

2005-11-15 Thread Chris Withers
Dieter Maurer wrote: Rumours say that Python will finally (probably with Python 2.5) grow a conditional operator -- lately overdue... Yeah, sadly, IIRC, the spelling is horrible :-( Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___

Re: [ZPT] CDATA section in zpt

2005-11-25 Thread Chris Withers
The TAL interpretter parses the source of hte ZPT as XML, and so doesn't do anything with CDATA sections. Annoying, isn't it? ;-) Chris Jürgen R. Plasser wrote: How can I accomplish a CDATA section in page templates? The following does not work: What am I missing here? -Jürgen __

Re: [ZPT] CDATA section in zpt

2005-11-28 Thread Chris Withers
Dieter Maurer wrote: Chris Withers wrote at 2005-11-25 12:48 +: The TAL interpretter parses the source of hte ZPT as XML, and so doesn't do anything with CDATA sections. But XML knows about "CDATA" sections and an XML compatible parser should handle them correctly. Yes,

Re: [ZPT] Re: Suggestion about commenting for future TAL versions

2005-12-15 Thread Chris Withers
Mikko Ohtamaa wrote: Do you know who is working with TAL engine? I'd like to be sure that the suggestion reached the correct person =) Don't worry, it reached all none of them ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [ZPT] Strange session behavior with macro-call

2006-06-27 Thread Chris Withers
Jeff Peterson wrote: I have a page template that calls a couple of scripts at the beginning, they are setting session objects and redirecting to a login screen if certain session objects don't exist. Why not just use PAS or Cookie Crumbler? ;-) the content for this page. When the macro is r

Re: [ZPT] Strange session behavior with macro-call

2006-07-02 Thread Chris Withers
Jeff Peterson wrote: Why not just use PAS or Cookie Crumbler? ;-) I guess I could look at that...I am having to authenticate against an existing database of usernames and passwords so I just wrote it myself. Eee gads, if your existing database is relational, SimpleUserFolder makes it trivia

Re: [ZPT] Re: Setting i18n:domain to a variable

2006-11-24 Thread Chris Withers
Josef Meile wrote: Wrong selection Wrong selection I think if you find yourself needing to do something like this, your application logic is flawed. i18n:domain should never need to be dynamic in this fashion... Chris -- Simplistix - Content Management, Zope & Python C

Re: [ZPT] Re: Setting i18n:domain to a variable

2006-11-27 Thread Chris Withers
Josef Meile wrote: that manner. Anyway, I guess the only way is to translate the message programatically instead. This sounds like the correct thing to do here... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _

Re: [ZPT] Proposal: add a 'prolog' property to templates

2007-03-22 Thread Chris Withers
Tres Seaver wrote: Thoughts? What about where you want the prolog to be dynamically computed? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ ZPT mailing list ZPT@zope.org htt

Re: [ZPT] Dreamweaver, ZPT, and design workflow

2008-03-20 Thread Chris Withers
S Paschall wrote: a TAL plug-in for Dreamweaver that handles macros intelligently? Or a design, implementation, and site maintenance workflow that allows your designers to have a fair level of control over your templates? I gave up and wrote Twiddler for this reason: http://www.simplistix.co.u