[Zope] Building a Zope based site

2006-12-15 Thread John Poltorak
How much do people charge for building a Zope based site? I've given up on trying to understand Zope myself as it's just too difficult, but suspect it can provide more functionality than other CMS systems. -- John ___ Zope maillist -

[Zope] Finding stylesheet

2006-03-20 Thread John Poltorak
I would like to set up a page template to use the stylesheet my.css if it is in the current folder, but if not to use the one in the root folder. How do I specify this? -- John ___ Zope maillist - Zope@zope.org

Re: [Zope] Finding stylesheet

2006-03-20 Thread John Poltorak
On Mon, Mar 20, 2006 at 11:04:03AM -0500, Paul Winkler wrote: On Mon, Mar 20, 2006 at 03:44:02PM +, John Poltorak wrote: I would like to set up a page template to use the stylesheet my.css if it is in the current folder, but if not to use the one in the root folder. How do I specify

[Zope] Sample Zope Page Templates

2006-03-18 Thread John Poltorak
Is there such a thing as a repository of sample Zope Page Templates? I don't mean sample code snippets but ZPT's that people use in real websites. -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No

[Zope] Using folder name in macro

2006-03-13 Thread John Poltorak
How do I use a folder name in a macro? ie I want to change this metal:macro metal:use-macro=context/abc.pt/macros/page which is in the folder 'abc' to metal:macro metal:use-macro=context/[folder_name].pt/macros/page I don't know where to look this sort of thing up. -- John

Re: [Zope] Using folder name in macro

2006-03-13 Thread John Poltorak
On Mon, Mar 13, 2006 at 11:27:19AM +0100, Andreas Jung wrote: --On 13. März 2006 10:21:15 + John Poltorak [EMAIL PROTECTED] wrote: How do I use a folder name in a macro? ie I want to change this metal:macro metal:use-macro=context/abc.pt/macros/page which

Re: [Zope] METAL macros

2006-03-13 Thread John Poltorak
On Mon, Mar 13, 2006 at 07:37:38AM +0100, Andreas Jung wrote: --On 12. März 2006 18:00:27 -0800 David [EMAIL PROTECTED] wrote: John Poltorak wrote: I'm having difficulty figuring out how to make METAL macros reusable. Hi John, This is about as simple as it gets (sorry if i

[Zope] METAL macros

2006-03-12 Thread John Poltorak
I'm having difficulty figuring out how to make METAL macros reusable. Is it standard practice to put macros into a common folder where they can be used by numerous different websites? I just can't get a handle on how they are supposed to be used. According to:-

[Zope] Help needed to simplify some code

2006-03-07 Thread John Poltorak
Several months ago someone provided me with me with some sample code which did exactly what I wanted, but looking at it again it looks a little unwieldy and could do with tidying up. It consists of:- span tal:define=opts python:here.lib.parse_file(file=here.news,sepr=',',clone=1)

[Zope] How do I do this using Zope?

2006-03-06 Thread John Poltorak
I would like to create a folder (news) which contains several news items, lets say news1, news2, news3. I would like to set up a menu box which lists all the news items in the news folder which when clicked on would load each one up. How do I code this up? (Hope someone understands what I'm

Re: [Zope] How do I do this using Zope?

2006-03-06 Thread John Poltorak
On Mon, Mar 06, 2006 at 02:20:56PM +0100, Andreas Jung wrote: --On 6. März 2006 14:17:05 +0100 Lennart Regebro [EMAIL PROTECTED] wrote: On 3/6/06, John Poltorak [EMAIL PROTECTED] wrote: I would like to create a folder (news) which contains several news items, lets say news1, news2

Re: [Zope] How do I do this using Zope?

2006-03-06 Thread John Poltorak
On Mon, Mar 06, 2006 at 02:37:05PM +0100, Andreas Jung wrote: --On 6. März 2006 13:29:14 + John Poltorak [EMAIL PROTECTED] wrote: Never heard of Inungo. Is it easier to use than Plone? Google is your friend - iungo.org I know that Google is quite clever but Googling for Inungo

[Zope] TAL tutorial

2006-03-06 Thread John Poltorak
Can anyone point me to a good TAL tutorial for people who have difficulty getting to grips with it? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Mailman Zope

2005-12-12 Thread John Poltorak
How do I configure a Mailman list for a website which is Zope based? I guess some entries in Apaches configuration file need to distinguish between Zope based pages and Apache pages for a given virtual host, but I've no idea how to do this. Can anyone give me an example? -- John

Re: [Zope] Re: zdsock

2005-12-09 Thread John Poltorak
On Fri, Dec 09, 2005 at 10:48:49AM +, Chris Withers wrote: John Poltorak wrote: Are you saying that Zope cannot be restarted through ZMI on Windows? Who does that anyway? Even on unix, I use zopectl restart, That is the point - zopectl uses a socket - 'zdsock'. At the moment

[Zope] Remote Calendar Server

2005-12-09 Thread John Poltorak
What do I need to do to set up Zope as a remote calendar server for Mozilla? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Re: zdsock

2005-12-08 Thread John Poltorak
On Wed, Dec 07, 2005 at 09:02:11AM -0500, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Tres Seaver wrote: You have confused the server socket (which is set in the http-server section) with the daemon control socket (set in runner in the

Re: [Zope] zdsock

2005-12-06 Thread John Poltorak
On Tue, Dec 06, 2005 at 09:51:12AM +, Chris Withers wrote: John Poltorak wrote: Zope itself works fine when started via runzope, so what is the problem in trying to provide an alternate socket name? zdctl is supposed to accept an alternative socket name:- -s/--socket-name

Re: [Zope] Re: Zope Calendar

2005-12-05 Thread John Poltorak
On Mon, Dec 05, 2005 at 01:17:06PM +0800, Bakhtiar A Hamid wrote: I wanted something which looks like Plone Calendar - http://www.zope.org/Members/teyc/CalendarTag this has a howto (or is it in the readme), and with the necessary css, can look pretty much like plone's I'd like to

Re: [Zope] zdsock

2005-12-05 Thread John Poltorak
On Mon, Dec 05, 2005 at 08:50:30AM +, Chris Withers wrote: John Poltorak wrote: Because 'zdsock' is not an acceptable name. I am running on OS/2 and the path name must start with '\\socket\\'. Oooo, ow, that's gonna hurt... Zope itself works fine when started via runzope, so

Re: [Zope] Re: Zope Calendar

2005-12-05 Thread John Poltorak
On Mon, Dec 05, 2005 at 05:08:19PM +0100, Lennart Regebro wrote: On 12/5/05, Lennart Regebro [EMAIL PROTECTED] wrote: I think this would be easier if you were more specific of what kind of features you want. Or you can just use CalZope. ;-) It is the most superfantasticmegacool calendar

[Zope] zdsock

2005-12-04 Thread John Poltorak
How do I override the default name of zdsock for the socket used by Zope? I see socket-name defined in Zope/lib/python/zdaemon/sample.conf but have no idea what this sample.conf is used for. -- John ___ Zope maillist - Zope@zope.org

Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 09:51:22AM +0100, Andreas Jung wrote: --On 4. Dezember 2005 08:36:06 + John Poltorak [EMAIL PROTECTED] wrote: How do I override the default name of zdsock for the socket used by Zope? I see socket-name defined in Zope/lib/python/zdaemon/sample.conf

Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 11:13:29AM +0100, Andreas Jung wrote: At the top of sample.conf it says # Sample config file for zdctl.py and zdrun.py (which share a schema). This sounds like something other than zope.conf. Is there a real need for you to touch the configuration. Also

Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote: WHY? Because 'zdsock' is not an acceptable name. I am running on OS/2 and the path name must start with '\\socket\\'. --On 4. Dezember 2005 10:26:03 + John Poltorak [EMAIL PROTECTED] wrote: On Sun, Dec 04, 2005 at 11:13

Re: [Zope] Re: zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 09:15:34AM -0500, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Poltorak wrote: On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote: WHY? Because 'zdsock' is not an acceptable name. I am running on OS/2 and the path

[Zope] Which Zope version is installed?

2005-12-03 Thread John Poltorak
How do I tell which Zope version is installed by looking at the file system? Is there anything like a 'version' file which would identify it? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

[Zope] Zope Message Board

2005-12-03 Thread John Poltorak
What Message Board product is recommended for use with Zope? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Importing an image

2005-12-03 Thread John Poltorak
Is there any way to import an image file using a url? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Zope Calendar

2005-12-03 Thread John Poltorak
Is there a Zope Calendar app available which looks and works like Plone Calendar? I can't use Plone because it is too heavy for the avialable resources. -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

[Zope] zForum installation

2005-12-03 Thread John Poltorak
Where can I find some installation notes for zForum? I haven't found anything in the package which tells me what to do. -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] Re: Zope Calendar

2005-12-03 Thread John Poltorak
On Sat, Dec 03, 2005 at 08:37:31PM +0100, Michael Haubenwallner wrote: John Poltorak wrote: Is there a Zope Calendar app available which looks and works like Plone Calendar? I can't use Plone because it is too heavy for the avialable resources. Depends on what you need: I

Re: [Zope] zForum installation

2005-12-03 Thread John Poltorak
On Sat, Dec 03, 2005 at 09:05:08PM +0100, Andreas Jung wrote: --On 3. Dezember 2005 19:50:34 + John Poltorak [EMAIL PROTECTED] wrote: Where can I find some installation notes for zForum? I haven't found anything in the package which tells me what to do. MAybe you should use

[Zope] here/content

2005-11-29 Thread John Poltorak
Can someone tell me how 'here/content' is translated in these lines? span tal:define=stx python:modules['Products'].PythonScripts.standard.structured_text; the_text here/content tal:content=structure python:stx(the_text) The structured text goes here. /span

[Zope] Unable to start Zope

2005-10-05 Thread John Poltorak
Following a server reboot, I can't get Zope to run. I get a socket error - permission denied. How do I identify and delete this open socket? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross

Re: [Zope] Unable to start Zope

2005-10-05 Thread John Poltorak
Sorry about this... the email was from yesterday and escaped by mistake. My problems were relalted to mismatches of permissions and userids being used. On Mon, Oct 03, 2005 at 12:48:00PM +0100, John Poltorak wrote: Following a server reboot, I can't get Zope to run. I get a socket error

[Zope] Zope restart fails

2005-10-03 Thread John Poltorak
Following a server restart in the last couple of days I have been unable to get Zope started. Is there anything in particular I should check for? Until the reboot Zope had been running for months without a problem, although it may not have been stopped correctly before the reboot. Should I

Re: [Zope] Zope restart fails

2005-10-03 Thread John Poltorak
On Mon, Oct 03, 2005 at 03:38:52PM -0400, Eric Banford wrote: At 03:21 PM 10/3/2005, John Poltorak wrote: Following a server restart in the last couple of days I have been unable to get Zope started. Is there anything in particular I should check for? Until the reboot Zope had been

Re: [Zope] Starting a search from the correct folder

2005-07-02 Thread John Poltorak
On Sat, Jul 02, 2005 at 05:03:06PM +0200, Andreas Jung wrote: --On 2. Juli 2005 15:52:52 +0100 John Poltorak [EMAIL PROTECTED] wrote: When you are ready to look up (in the hierarchy), then obj.aq_inner.aq_parent is the hierarchy parent of obj. Well that would

[Zope] Starting a search from the correct folder

2005-06-30 Thread John Poltorak
I have some code which here:- divtal:loop tal:repeat=item python: request.PARENTS[-2::-1]gt; a href=ABSOLUTE_URL tal:attributes=href item/absolute_url tal:content=item/title_or_idPARENT TITLE OR ID/a /tal:loop/div ul tal:condition=python:

Re: [Zope] Sequencing pages

2005-06-29 Thread John Poltorak
On Tue, Jun 28, 2005 at 03:45:01PM -0500, J Cameron Cooper wrote: John Poltorak wrote: If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders? I presume

[Zope] Calendar for Zope

2005-06-29 Thread John Poltorak
I quite like Plone's Calendar, but need something similar for Zope. Any recommendations? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Calendar for Zope

2005-06-29 Thread John Poltorak
On Wed, Jun 29, 2005 at 01:15:39PM +0200, Lennart Regebro wrote: On 6/29/05, John Poltorak [EMAIL PROTECTED] wrote: I quite like Plone's Calendar, but need something similar for Zope. Any recommendations? For those daring to be on the (b)leeding edge, there is CalZope, which is the non

[Zope] Generating links from a list

2005-06-27 Thread John Poltorak
The other week someone provided me with this snippet of code for generating links from a list containing a description and a link:- span tal:define=opts python:here.lib.parse_file(file=context.links,sepr=',',clone=1) tal:block repeat=opt opts lia

[Zope] Debugging a python routine

2005-06-27 Thread John Poltorak
Can anyone suggest how I would go about debugging a Python routine like this through Zope? span tal:define=opts python:here.lib.parse_file(file=here.members,sepr=',',clone=1) tal:block repeat=opt opts lia tal:content=python:opt[1] tal:attributes=href

Re: [Zope] Generating links from a list

2005-06-27 Thread John Poltorak
On Mon, Jun 27, 2005 at 10:03:08AM -0600, Nikko Wolf wrote: John Poltorak wrote: My links list consists of simple lines such as org-1,First link org-2,Second Link org-x,Another Link How do I prepend a hardcoded path to org-1 instead of what is getting generated? I would

[Zope] Sequencing pages

2005-06-25 Thread John Poltorak
If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders? I presume that under normal circumstances that sequence would be in alphabetical order of object ID. --

[Zope] Why the hell hasn't Page Templates taken over the world?

2005-06-24 Thread John Poltorak
I found the question posed on the subject line whilst searching for information about ZPT's on a website called ZopeZen which appears now to have expired - I only found the reference in Google's cache. The question was posed about a year ago and seemed to be correctly answered by this post:-

Re: [Zope] Why the hell hasn't Page Templates taken over the world?

2005-06-24 Thread John Poltorak
On Fri, Jun 24, 2005 at 12:09:32PM +0200, Andreas Jung wrote: --On 24. Juni 2005 10:56:12 +0100 John Poltorak [EMAIL PROTECTED] wrote: It seems that I'm not the only one who woul like to see more examples of ZPTs. Is there a repository for examples of what you can do with ZPT's

[Zope] Search path for objects

2005-06-23 Thread John Poltorak
Does Zope look anywhere apart from the current folder for objects which are specified like this:- ? link rel=Stylesheet type=text/css href=ploneCustom.css / I've cobbled together a website and can't work out where certain CSS tags are being specified. Is there a simple way to

[Zope] External editor for ZMI

2005-06-23 Thread John Poltorak
What alternatives are there to editing objects through ZMI? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] External editor for ZMI

2005-06-23 Thread John Poltorak
On Thu, Jun 23, 2005 at 11:49:19AM -0400, Paul Winkler wrote: On Thu, Jun 23, 2005 at 04:27:50PM +0100, John Poltorak wrote: What alternatives are there to editing objects through ZMI? ExternalEditor. Do you mean this? http://plope.com/software/ExternalEditor Are there any screen shots

[Zope] Problems changing from DTML to ZPT

2005-06-23 Thread John Poltorak
I'm attempting to convert a page which uses DTML into one which uses ZPT but can't get it to look the same. Can some kind person quickly check over my poor attempt to utilise ZPT to see what I've done wrong? -- John ___ Zope maillist -

Re: [Zope] Batch folder creation

2005-06-23 Thread John Poltorak
a Zope File object On Wed, Jun 22, 2005 at 10:49:07AM -0700, David H wrote: John Poltorak wrote: Is there any way to create folders in batch? I need to create around 50 but don't fancy doing this manually. John, Put this in a python script and test. for n in range(10

[Zope] Reading lines from a Zope File object

2005-06-23 Thread John Poltorak
What function is used to read lines from a Zope File object using Python? Is there any example of this anywhere? Doing a search for 'python read zope object' is just too generic to find any python code to do this. -- John ___ Zope maillist -

Re: [Zope] Batch folder creation

2005-06-23 Thread John Poltorak
with something *like* for n in yourDictionary: container.manage_addFolder(id = n, title = yourDictionary[n]) David John Poltorak wrote: Thanks David, That works fine although it is a little crude. What I'd like to be able to do is create folders with names and titles derived from

Re: [Zope] ZPT contents slot

2005-06-22 Thread John Poltorak
On Tue, Jun 21, 2005 at 04:46:55PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Is 'stxfile' the actual filename? I'm not concerned about it being structured initially - just want to see it working in principle with any file containg some text. It's the name of an object. I

Re: [Zope] ZPT tutorial

2005-06-22 Thread John Poltorak
On Tue, Jun 21, 2005 at 11:04:12PM +0100, Mark Barratt wrote: John Poltorak wrote: I was on a course over the weekend where ordinary people in their 70's with no technical ability were knocking together websites in just a few hours with no prior training and no understanding

[Zope] ZopeZoo

2005-06-22 Thread John Poltorak
In my quest to get to grips with the basics of ZPT I eventually stumbled across ZopeZoo which I found very useful. Looking at it again, there seem to be several variations of the same examples. I used this one:- http://www.plope.com/Books/2_7Edition/SimpleExamples.stx#2-10 but find there

[Zope] Batch folder creation

2005-06-22 Thread John Poltorak
Is there any way to create folders in batch? I need to create around 50 but don't fancy doing this manually. -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] ZPT tutorial

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 01:24:18AM +0200, Andreas Pakulat wrote: On 20.Jun 2005 - 23:45:34, John Poltorak wrote: Does a ZPT tutorial exist anywhere? How about the 2 chapters in the Zope book? I just don't find this book very helpful at all. It's written as a manual rather than tutorial

[Zope] ZPT code sample

2005-06-21 Thread John Poltorak
Is there anything wrong with this ZPT code sample? http://www.zopemag.com/Issue003/Section_Articles/article_ZPTintro_code.html I get this error message when trying to save it:- HTMLParser.HTMLParseError: malformed start tag, at line 8, column 37 -- John

Re: [Zope] ZPT tutorial

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 07:04:48PM +0100, Peter Bengtsson wrote: How about the 2 chapters in the Zope book? I just don't find this book very helpful at all. It's written as a manual rather than tutorial and reminds me of a book which explains how to chop down a tree if you are

Re: [Zope] ZPT code sample

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 06:07:36PM +0200, Andreas Jung wrote: --On 21. Juni 2005 11:58:52 -0400 Fred Drake [EMAIL PROTECTED] wrote: On 6/21/05, John Poltorak [EMAIL PROTECTED] wrote: Is there anything wrong with this ZPT code sample? http://www.zopemag.com/Issue003/Section_Articles

[Zope] ZPT contents slot

2005-06-21 Thread John Poltorak
If I create a macro which defines a slot called 'content', is there any way to have that slot populated by a file with a specific name if it exists in a folder? What I'd like to do is create a structure text file, in each of the folders A B C and have it automatically loaded into a content

Re: [Zope] ZPT code sample

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 10:25:24PM +0200, Andreas Jung wrote: --On 21. Juni 2005 19:37:35 +0100 John Poltorak [EMAIL PROTECTED] wrote: On Tue, Jun 21, 2005 at 06:07:36PM +0200, Andreas Jung wrote: It may well be obvious to anyone familiar with these things, but when you are struggling

Re: [Zope] ZPT contents slot

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 03:16:11PM -0500, J Cameron Cooper wrote: John Poltorak wrote: If I create a macro which defines a slot called 'content', is there any way to have that slot populated by a file with a specific name if it exists in a folder? What I'd like to do is create

Re: [Zope] ZPT tutorial

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 03:15:33PM -0400, Paul Winkler wrote: On Tue, Jun 21, 2005 at 07:29:20PM +0100, John Poltorak wrote: re. zopelabs.com: It probably is very useful, but I know I'd get hopelessly lost because there is just so much stuff on it. So you prefer to ignore it? Just how

Re: [Zope] Passing parameters using DTML

2005-06-20 Thread John Poltorak
On Fri, Jun 17, 2005 at 05:39:23PM -0500, J Cameron Cooper wrote: I'm assuming the above line comes from a page template. You neglected to mention what the calling DTML looks like, but I *guess* that it was something like this: dtml-var some_template(parm='ABC') yes? no? This is what

[Zope] ZPT tutorial

2005-06-20 Thread John Poltorak
Does a ZPT tutorial exist anywhere? -- John ___ 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

[Zope] Graphical front end for Zope?

2005-06-19 Thread John Poltorak
I don't suppose there is such a thing as a graphical front end for building Zope sites... I've just been trying out a Flash based product called SiteMaker http://www.moonfruit.com/ which made designing web pages a doddle. Just wish there was something which would simplify the building of a

[Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
Can someone provide an example of passing parameters using DTML? I'm sure this must be doable, but don't see an example in the Zope Book. I assume it would go something like dtml-var var1 parm1 parm2 but how would var1 pick up parm1 parm2? -- John

[Zope] Picking up a parameter in a ZPT

2005-06-17 Thread John Poltorak
I'm trying to work out how to pass parameters between various modules running under Zope and have got stuck. In the line below, I need to replace the word 'links' with a variable passed by the calling program python:here.parse_file(file=context.links,sepr=',',clone=1) I know I can pass the

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
On Fri, Jun 17, 2005 at 07:09:04PM +0200, Dieter Maurer wrote: Tino Wildenhain wrote at 2005-6-17 10:57 +0200: ... Not at all. You could either have tried it out ;) Or looked at the DTML documentation in the Zope book *wink* ;) dtml-var expr=somemethod(parm1=value1,parm2=value2) Be

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
On Fri, Jun 17, 2005 at 09:31:44PM +0200, Andreas Jung wrote: --On 17. Juni 2005 20:24:23 +0100 John Poltorak [EMAIL PROTECTED] wrote: Is there also something which explains how to call ZPTs from a DTML object? Do you have a good reason for mixing ZPT and DTML? Yes. I have

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
On Fri, Jun 17, 2005 at 05:07:32PM -0400, Paul Winkler wrote: On Fri, Jun 17, 2005 at 08:24:23PM +0100, John Poltorak wrote: Is there also something which explains how to call ZPTs from a DTML object? I'm unable to pick up a passed parameter. This is what I've conjured up

[Zope] IE v. Firefox for viewing Zope sites

2005-06-16 Thread John Poltorak
I've just put together a simple Zope website, but whilst it renders properly under Firefox, it looks dreadful using IE. Can anyone explain why? Could it be the CSS? -- John ___ Zope maillist - Zope@zope.org

Re: [Zope] IE v. Firefox for viewing Zope sites

2005-06-16 Thread John Poltorak
On Thu, Jun 16, 2005 at 08:30:15PM +0200, Andreas Jung wrote: --On 16. Juni 2005 19:15:58 +0100 John Poltorak [EMAIL PROTECTED] wrote: I've just put together a simple Zope website, but whilst it renders properly under Firefox, it looks dreadful using IE. Can anyone explain why

[Zope] Deconstructing a Zope site

2005-06-15 Thread John Poltorak
I have looked at numerous examples of Zope websites, but have no idea about how to go about creating anything similar. Is there any way to deconstruct a Zope site to see all the elements of its makeup? An example of how to build a professional looking site would be nice. Are there any

[Zope] Repository for common python scripts

2005-06-15 Thread John Poltorak
Can anyone recommend a way of setting up a library of common python scripts? I'd like to put such scripts in a shared area. If I created a folder called common and move parse_file there, how should I recode this line? python:here.parse_file(file=context.links,sepr=',',clone=1) -- John

Re: [Zope] Repository for common python scripts

2005-06-15 Thread 'John Poltorak'
On Wed, Jun 15, 2005 at 02:48:32PM +0200, Pascal Peregrina wrote: here.common.parse_file() should work. Indeed it does. Many thanks! Pascal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Poltorak Sent: 15 June 2005 13:37 To: zope@zope.org

[Zope] How to overlay one column of a page

2005-06-05 Thread John Poltorak
I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a standard header and footer, and three columns - the left and right ones also being standard, with only

Re: [Zope] How to overlay one column of a page

2005-06-05 Thread John Poltorak
. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote: I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a standard header and footer

Re: [Zope] How to overlay one column of a page

2005-06-05 Thread John Poltorak
On Sun, Jun 05, 2005 at 08:05:10PM +0200, Andreas Jung wrote: --On 5. Juni 2005 12:11:50 +0100 John Poltorak [EMAIL PROTECTED] wrote: Andreas, All you ever say is RTFZB! Which Zope Book are you referring to? There is only one official documentation to which almost people

Re: [Zope] How to overlay one column of a page

2005-06-05 Thread John Poltorak
On Sun, Jun 05, 2005 at 09:12:58AM -0700, David H wrote: Andreas Jung wrote: --On 5. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote: I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what

Re: [Zope] Calling a page template from a DTML document

2005-06-04 Thread John Poltorak
On Fri, Jun 03, 2005 at 11:26:40AM -0500, J Cameron Cooper wrote: John Poltorak wrote: Is there any way of getting a DTML document to use a page template to build part of a page? Some sample code would be handy as an illustration if what I want to do is possible. Just call

[Zope] Calling a page template from a DTML document

2005-06-03 Thread John Poltorak
Is there any way of getting a DTML document to use a page template to build part of a page? Some sample code would be handy as an illustration if what I want to do is possible. -- John ___ Zope maillist - Zope@zope.org

[Zope] How to read a file object

2005-06-01 Thread John Poltorak
How do I go about reading a Zope file object in Python? I'd appreciate it if anyone could point me to a repository of small code snippets which illustrate some simple techniques usable in Python scripts running under Zope. -- John ___ Zope

Re: [Zope] How to read a file object

2005-06-01 Thread John Poltorak
On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a Zope File object means? You mean you want the body of an upload file

Re: [Zope] Creating links dynamically

2005-06-01 Thread John Poltorak
On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links

Re: [Zope] Creating links dynamically

2005-06-01 Thread John Poltorak
On Wed, Jun 01, 2005 at 11:05:04AM -0500, J Cameron Cooper wrote: John Poltorak wrote: On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: Well, it's really easy. Create 'linkList' (Python Script) in the folder where you page lives or somewhere

[Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links, but would like to load them from an external source which I can add to independently, but I have no idea as to how to set about it. Any ideas? I'd be quite happy to have the links in a

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links, but would like to load them from an external source which I can add to independently, but I

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 08:54:30PM +0200, Dieter Maurer wrote: John Poltorak wrote at 2005-5-31 16:39 +0100: ... Many thanks for your suggestion. Is there a worked example of doing this anywhere? The CMF's ActionsTool is a prime example for such a link factory. CMFDefaults

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 02:51:18PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Well, it's really easy. Create 'linkList' (Python Script) in the folder where you page lives or somewhere higher in folder hierarchy: ## Script (Python) linkList return [ ('http://www.google.com

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 03:08:36PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Why did you put it in a File? Why not a Script (Python)? I'm using a remote site and only have access via Zope's ZMI. Can I create a script through that? Certainly. It's in the dropdown. In fact

[Zope] No ZMI - panic!!!!

2005-05-25 Thread John Poltorak
I'm trying to update a Zope site which I set up some time ago but can't get the ZMI to start up. Any ideas on what to do? When I try to acccess http://mysite:8080/ I get - Zope Site Error. How do I force a login prompt or include a login in the URL? If this is a FAQ, please tell me which Q