Re: [Zope] ZPT tutorial

2005-06-21 Thread Andreas Jung
--On 21. Juni 2005 23:04:12 +0100 Mark Barratt <[EMAIL PROTECTED]> wrote: or there's PHP, where the communities are probably more newbie-friendly and there are loads of tutorials. Don't compare PHP with Zope. PHP is a tiny language compared to the fat Zope frameworks. Working with Zope on th

[Zope] Zope crashing after movin Plone site to RHEL 4

2005-06-21 Thread Mário Gamito
Hi, I have this 1.0.2 Plone site running for about two years, or so. It always ran smoothly. Recently, i've moved it to a new server running Red Hat Enterprise Linux 4. I've compiled Python 2.1.3 and start Zope with: exec /usr/local/python-2.1.3/bin/python $cwd/z2.py -L 'pt_PT' -u zope "$@" No

Re: [Zope] ZPT tutorial

2005-06-21 Thread Jens Vagelpohl
On 21 Jun 2005, at 23:23, Tamas Hegedus wrote: Hi, In addition, Zope is heading fast into even less friendly territory. DTML, which is technically 'mucky' but reasonably easy to grasp for non-programmers, > is increasingly deprecated. I just started to learn Zope recently. I choose dt

Re: [Zope] ZPT code sample

2005-06-21 Thread Paul Winkler
On Tue, Jun 21, 2005 at 09:58:32PM +0100, John Poltorak wrote: > I got the impression that DTML and ZPT make some aspects of HTML > redundant... redundant? no. DTML and ZPT are better understood as languages that you use "on top of" HTML. (Or on top of XML, as the case may be.) -- Paul Win

Re: [Zope] ZPT tutorial

2005-06-21 Thread Paul Winkler
On Tue, Jun 21, 2005 at 10:10:06PM +0100, John Poltorak wrote: > 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

Re: [Zope] accessing session data error

2005-06-21 Thread Paul Winkler
On Mon, Jun 20, 2005 at 05:20:29PM -0400, Leticia Larrosa wrote: > Hi: > > I follow the steps to replicate the error in zope2.7 for Debian and i get > the error to. fwiw, I have not been able to reproduce this following your instructions (zope 2.7.6 running on gentoo linux; browser is IE 6.what

Re: [Zope] ZPT tutorial

2005-06-21 Thread Tamas Hegedus
Hi, In addition, Zope is heading fast into even less friendly territory. DTML, which is technically 'mucky' but reasonably easy to grasp for non-programmers, > is increasingly deprecated. I just started to learn Zope recently. I choose dtml over page templates to learn as it => seemed to me

Re: [Zope] TypeError: Cache values must be persistent objects.

2005-06-21 Thread Nikko Wolf
Nikko Wolf wrote: Help! I'm trying to develop a filesystem-based Product (here 'ABCD') and unless I remove the "ABCD" folder from my Products directory, I get the following error IN THE MANAGEMENT INTERFACE. Is it possible to determine what's causing the problem? After multiple restarts, I

Re: [Zope] ZPT code sample

2005-06-21 Thread Andreas Pakulat
On 21.Jun 2005 - 21:39:34, John Poltorak wrote: > On Tue, Jun 21, 2005 at 10:25:24PM +0200, Andreas Jung wrote: > > but when you work with ZPT you should have > > a certain knowledge in HTML and finding unmatched tag ends is something I > > consider really basic and which is support by nearly eve

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-21 Thread Andreas Pakulat
On 21.Jun 2005 - 21:59:41, Jim Vine wrote: > Say, for example that my Zope App in some way has a > "House" object, which records the address, the owner, > and a short description. Later on, I may wish to add > further fields to record, say, the number of bedrooms, > but the system is already in use

Re: [Zope] ZPT tutorial

2005-06-21 Thread Mark Barratt
John Poltorak wrote: If I spend a couple of days on something and make no progress, I'd say it's 'too much work'. Wouldn't you. Yes 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

Re: [Zope] ZPT & contents slot

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: 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

[Zope] Re: Problem with keep-alive timeout (zope: addressed to exclusive sender for this address)

2005-06-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralph wrote: > On Tuesday 21 June 2005 19:16, Dieter Maurer - [EMAIL PROTECTED] wrote: > >>Ralph wrote at 2005-6-20 22:36 +0200: >> >>The easiest way would be to use a different browser ;-) >> >>I think IE can be customized to use a different timeout

Re: [Zope] ZPT tutorial

2005-06-21 Thread David H
John, If you spent more time just *learning* Zope and HTML, etc and less time rationalizing your lack of progress everyone would be happy. David John Poltorak wrote: On Tue, Jun 21, 2005 at 03:15:33PM -0400, Paul Winkler wrote: On Tue, Jun 21, 2005 at 07:29:20PM +0100, John P

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?

[Zope] TypeError: Cache values must be persistent objects.

2005-06-21 Thread Nikko Wolf
Help! I'm trying to develop a filesystem-based Product (here 'ABCD') and unless I remove the "ABCD" folder from my Products directory, I get the following error IN THE MANAGEMENT INTERFACE. Is it possible to determine what's causing the problem? After multiple restarts, I did a global "Find

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-21 Thread Jim Vine
Thanks to those who posted suggestions - certainly gave me a few things to think about. Unfortunately I was left with one "use Zope 2", one "use Zope 3" and a "use Plone", but maybe that's just a reflection of the fact that there's more than one Zope way to skin a cat! (yeah, I know I've over-simpl

Re: [Zope] ZPT code sample

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 01:50:25PM -0500, J Cameron Cooper wrote: > John Poltorak wrote: > > You're not learning HTML at the same time as ZPT, are you? I'm learning about all sorts of things at the same time. Aren't we all? My HTML knowledge is much further advance than my knowledge of ZPT, but

Re: [Zope] accessing session data error

2005-06-21 Thread Michael Dunstan
On 22/06/2005, at 4:50 AM, Leticia Larrosa wrote: Hi: Thanks to Michael Dunstan. I test with the recomendation of Michael but I still get the error. In pages where I get the error, if I wait some seconds and refresh the pages, I obtain the correct information (no get the error). I thin

[Zope] Re: New External Editor release 0.9

2005-06-21 Thread Simon Michael
Chris - I and my windows users thank you! Some little notes are gathered at http://zopewiki.org/ExternalEditor . The biggest gotcha for EE on windows seems to be that the ZopeExternalEdit.ini in the \program files directory has no effect, it needs to be moved to the user's profile. ___

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 cr

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

Re: [Zope] ZPT code sample

2005-06-21 Thread Andreas Jung
--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 to understand them, the last thing you need when you are going th

Re: [Zope] ZPT & contents slot

2005-06-21 Thread J Cameron Cooper
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 a structure text file, in each of the folders A B C and have it automatically loa

[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 sl

Re: [Zope] Problem with keep-alive timeout (zope: addressed to exclusive sender for this address)

2005-06-21 Thread Ralph
On Tuesday 21 June 2005 19:16, Dieter Maurer - [EMAIL PROTECTED] wrote: > Ralph wrote at 2005-6-20 22:36 +0200: > > The easiest way would be to use a different browser ;-) > > I think IE can be customized to use a different timeout (I do not > know as I use Mozilla -- by default without timeout). N

Re: [Zope] Zope External Editor Problem

2005-06-21 Thread Chris McDonough
Yeah, apparently 0.8 (and 0.9) writes some defaults into the homedir file if it doesn't find it there instead of copying over what exists. Maybe it should not do this. On Tue, 2005-06-21 at 13:06 -0600, [EMAIL PROTECTED] wrote: > Hi Chris. The ini that I was editing is located at: > > c:\progra

Re: [Zope] ZPT tutorial

2005-06-21 Thread Paul Winkler
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? Granted, zopelabs.com has flaws. It's harder to find stuff than it should be

Re: [Zope] ZPT tutorial

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: 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

Re: [Zope] Zope External Editor Problem

2005-06-21 Thread hpinson
Hi Chris. The ini that I was editing is located at: c:\program files\zopeexternaleditor Which is where the previous versions had been looking. I looked in: C:\Documents and Settings\me and yes there is another ZopeEdit.ini Editing that resolves the problem I wonder if this should be in the

Re: [Zope] Zope External Editor Problem

2005-06-21 Thread Chris McDonough
Where is the ZopeEdit.ini file you're editing? According to the 0.8 code it should pick up the editor defined in the config file up and use it exclusively in preference to any extension- or content/type- related executables. The code first looks in: os.path.expanduser('~\\ZopeEdit.ini') (which

Re: [Zope] ZPT code sample

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: 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/

Re[2]: [Zope] Factory-based Type Information

2005-06-21 Thread Denis Mishunoff
Hello, J. You wrote 21 èþíÿ 2005 ã., 20:27:50: > Denis Mishunoff wrote: >> I have a problem with my product. >> I use Zope 2.7.5 and Plone 2.0.5. >> >> I need to create the copy of Document content-type on my product's >> install the same way as it is done in portal_types via >> "Factory-based

[Zope] Zope External Editor Problem

2005-06-21 Thread hpinson
Hello. I am having a problem with Zope External Editor 0.8 - the helper app running on W2K. This problem occurred on upgrade from the previous version. When I lauch the external editor, by clicking the pencil, MS Word lauches (and if I save, badly mangles the HTML. In ZopeEdit.ini my editor s

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

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 ar

Re: [Zope] Problem with keep-alive timeout

2005-06-21 Thread Dieter Maurer
Ralph wrote at 2005-6-20 22:36 +0200: > >I made a small and simple database applikation with some reports on a large >database. But surprise, IE 6.0 (WinXP,SP2) is getting always a timeout after >60seconds, because IE communicates with Zope through the HTTP1.0-protocoll. >My reports needing alwa

Re: [Zope] installation problem

2005-06-21 Thread Dieter Maurer
tyson wrote at 2005-6-20 16:43 -0500: >I got zope 2.8 installed on fedora core 4. Whenever I execute this >command to start zope /usr/local/zope/instance/bin/runzope, I get this >error: > ... >from AccessControl import ImplC as impl > File "/usr/local/zope/lib/python/AccessControl/Imp

Re: [Zope] ZMYSQLDA 2.0.9 lock problem

2005-06-21 Thread Dieter Maurer
Dennis Allison wrote at 2005-6-20 11:31 -0700: > ... >* Module Shared.DC.ZRDB.TM, line 59, in tpc_finish >* Module Products.ZMySQLDA.db, line 376, in _finish > >error: release unlocked lock When I remember right, I have seen such problem reports in the mailing list. You have checked the a

Re: [Zope] ZPT tutorial

2005-06-21 Thread Peter Bengtsson
> > 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 interested in putting up some bookshelves. > > What I did find useful, t

[Zope] Set sort variables with nice url

2005-06-21 Thread David Pratt
Hi. I have a nice scheme for my ordering, sorting and batch paging my summary columns for objects and sql data but I have been using urls like employee_edit_form?employee_id=42&start:int=2&sort=employee&reverse:int= 0 in my lists up till now. These would be tal:attributes in my zpt, (a s

Re: [Zope] Factory-based Type Information

2005-06-21 Thread J Cameron Cooper
Denis Mishunoff wrote: I have a problem with my product. I use Zope 2.7.5 and Plone 2.0.5. I need to create the copy of Document content-type on my product's install the same way as it is done in portal_types via "Factory-based Type Information" option of dropdown. I just need to have the copy

Re: [Zope] accessing session data error

2005-06-21 Thread Leticia Larrosa
Hi:    Thanks to Michael Dunstan. I test with the recomendation of Michael but I still get the error. In pages where I get the error, if I wait some seconds and refresh the pages, I obtain the correct information (no get the error).   I thinks that the problem maybe are similar to the guess of

Re: [Zope] ZPT tutorial

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: Does a ZPT tutorial exist anywhere? How about: http://www.zope.org/Documentation/Articles Specifically: http://www.zope.org/Documentation/Articles/ZPT1 http://www.zope.org/Documentation/Articles/ZPT2 There's something odd about the rendering of the second one, but it's

Re: [Zope] ZPT code sample

2005-06-21 Thread Andreas Jung
--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/article_ZPTintro_code.h tml I get this error message when trying t

Re: [Zope] ZPT code sample

2005-06-21 Thread Fred Drake
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/article_ZPTintro_code.html > > I get this error message when trying to save it:- > > HTMLParser.HTMLParseError: malformed start tag, at l

[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 David H
John Poltorak wrote: 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 boo

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 tut

Re: [Zope] New External Editor release 0.9

2005-06-21 Thread Chris McDonough
Sorry, it was indeed corrupted. The file has been corrected... On Tue, 2005-06-21 at 09:13 -0400, Allen Schmidt wrote: > Same here. Chris?? > > > Peter Bengtsson wrote: > > > Chris, > > I had problems with the .exe on a windows machine. When I downloaded > > it everything got downloaded of the

Re: [Zope] New External Editor release 0.9

2005-06-21 Thread Allen Schmidt
Same here. Chris?? Peter Bengtsson wrote: Chris, I had problems with the .exe on a windows machine. When I downloaded it everything got downloaded of the 1.7Mb (or whatever it was exactly) but when I tried doubleclicking it it complained about being corrupt. Has anybody else had similar probl

Re: [Zope] New External Editor release 0.9

2005-06-21 Thread Peter Bengtsson
Chris, I had problems with the .exe on a windows machine. When I downloaded it everything got downloaded of the 1.7Mb (or whatever it was exactly) but when I tried doubleclicking it it complained about being corrupt. Has anybody else had similar problems? On 6/21/05, Chris McDonough <[EMAIL PROT