[Zope-dev] tal:define for a dictionary of dictionaries

2002-09-05 Thread Anton Hughes
Further to my earlier question about creating a dictionary of dictionaries (which is working now - thanks very much!), I am now doing the ZPT to draw it. But I'm not sure how to make this d-o-d, which is returned by a PythonScript in the same directory, available. This is what I have so far:

[Zope-dev] Problem with structured-text on RedHat

2002-09-05 Thread Arthur Tomas
i have a big problem using structured-text on Redhat Linux. I need german and french characters, which are not correctly represented. Each word with special character is ignored, for example: **Köln** ist not translated to: Köln. What I get to see is still **Köln**, so it will not be translated.

RE: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Anton Hughes
Thanks Andy, > Error Type: TypeError > Error Value: unsupported operand type(s) for - > resource = row['resource'] - 1 ^^^ That was pretty stupid of me. A hangover from my earlier attempt at a 2D array :( Anton ___

Re: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Andy McKay
> Error Type: TypeError > Error Value: unsupported operand type(s) for - > resource = row['resource'] - 1 You should check that row['resource'] is a data type that supports subtraction. If for example row['resource'] is a string, this will raise the error. Try: resource = int(row['resource'

RE: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Anton Hughes
Hmmm. I posted code on the end of that message. I don't know what happened to it. Anyway, I'll post the code here: #parameters: booking_date # Import a standard function, and get the HTML request and response objects. from Products.PythonScripts.standard import html_quote request = container.

Re: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Andy McKay
> After playing around for too long on it, I can't seem to get it to work. I > even tried pre-filling the d-o-d with empty strings. I just don't understand > what I am doing wrong. Its really rather hard to say if you dont show us some code ;) -- Andy McKay Agmweb Consulting http://www.agmw

Re: [Zope-dev] Speaking of Structured Annoyances

2002-09-05 Thread Max M
Jeffrey P Shell wrote: >Um, how does one escape * in STX-NG? As in - what if one is entering an >equation inline like 2 * 2 * 3 = 12? Or, does one just fall back on using >x? > > I don't remember the inline code markup, but isn't it something like: '2 * 2 * 3 = 12' Or perhaps backticks

[Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Anton Hughes
Hi All, I'm trying to implement a computer booking system for staff members here. At the moment I have a table with date, timeslot (eg 8:00 - 9:00), resource (eg. PC 1) and person. I want to draw a table showing the bookings for the day looking something like this: |Time| PC 1 | PC 2 | PC 3 | +-

[Zope-dev] RE: [Zope-CMF] Performance problem in ZOPE 2.5.1, 'getOwner' in/lib/python/AccessControl/Owned.py

2002-09-05 Thread Arnar Lundesgaard
> What kind of user folder are you using? We are using the extensible User Folder. ZODB Auth BTree Source Basic Membership Source Authentication Type:cookie-based Credential Cache Timeout:600 (We have also tried 0 without much success) Negative Credential Cache:0 memberdata

[Zope-dev] Re: Future of StructuredText

2002-09-05 Thread David Goodger
Simon Michael wrote: >>> My two cents - there are some things in rST I would like to have but I >>> think it has gone too far with it's rules. Richard Jones wrote: >> This seems to be a common argument, and I honestly can't understand it. I'm >> not going argue it here, I'll just point you all to

[Zope-dev] Re: [Zope-CMF] Performance problem in ZOPE 2.5.1, 'getOwner' in/lib/python/AccessControl/Owned.py

2002-09-05 Thread Chris McDonough
What kind of user folder are you using? On Thu, 2002-09-05 at 09:25, Arnar Lundesgaard wrote: > Hi, > > as I have written on this list before, we have had serious > performance problems on one of our CMF based sites. > ___ Zope-Dev maillist -

Re: [Zope-dev] SWAP issue

2002-09-05 Thread Dieter Maurer
Ahsan Imam writes: > After starting zope eveything works fine for a while. Slowly the swap starts to >swell up and after a few hours the machine has to be rebooted. The funny thing is >that free shows that there is almost a gig of RAM free and swap keeps on growing. >After a while the machi

[Zope-dev] Re: [Zope-CMF] Performance problem in ZOPE 2.5.1, 'getOwner' in /lib/python/AccessControl/Owned.py

2002-09-05 Thread Dieter Maurer
Arnar Lundesgaard writes: > as I have written on this list before, we have had serious > performance problems on one of our CMF based sites. Performance problems are best analysed with Zope's profiling support: Control_Panel --> Debug Information --> Profiling Sorry, I can not say an

Re: [Zope-dev] Speaking of Structured Annoyances

2002-09-05 Thread R. David Murray
On Thu, 5 Sep 2002, Jeffrey P Shell wrote: > Doesn't work. At least, not where I tested it (ZWiki 0.7-ish). :\ Worked for me. Using StructuredText.py from 2.7, I think. --RDM ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailma

Re: [Zope-dev] Future of StructuredText

2002-09-05 Thread Andreas Jung
- Original Message - From: "David Goodger" <[EMAIL PROTECTED]> To: "Richard Jones" <[EMAIL PROTECTED]>; "Max M" <[EMAIL PROTECTED]>; "Andreas Jung" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 05, 2002 06:35 Subject: Re: [Zope-dev] Future of StructuredText > > >

Re: [Zope-dev] Future of StructuredText

2002-09-05 Thread David Goodger
Richard Jones wrote: > [courtesy cc send to David G, so if I make any blatantly errneous statements > he can come chase me with the Big Stick :)] Thanks for being a vocal proponent! > On Wed, 4 Sep 2002 8:01 pm, Max M wrote: >> Andreas Jung wrote: >>> I would be fine to have reStructuredText ins

Re: [Zope-dev] SWAP issue

2002-09-05 Thread Ahsan Imam
The kernel is 2.4.7-10. Zope 2.5 on Red Hat 7.2 python 2.1.3 Here is what I think the problem is: Some object or code was introduced on Tuesday morning. The users are beginners so they could have introduced a never ending loop or something of that sort. I turned on profiling to see if thre was

Re: [Zope-dev] Speaking of Structured Annoyances

2002-09-05 Thread Andreas Jung
I think there is no dedicated escape mechanism...yet another design flaw. -aj - Original Message - From: "Jeffrey P Shell" <[EMAIL PROTECTED]> To: "zope-dev" <[EMAIL PROTECTED]> Sent: Thursday, September 05, 2002 01:06 Subject: [Zope-dev] Speaking of Structured Annoyances > Um, how doe

Re: [Zope-dev] Speaking of Structured Annoyances

2002-09-05 Thread Jeffrey P Shell
On 9/4/02 9:14 PM, "R. David Murray" <[EMAIL PROTECTED]> wrote: > On Wed, 4 Sep 2002, Jeffrey P Shell wrote: >> Um, how does one escape * in STX-NG? As in - what if one is entering an >> equation inline like 2 * 2 * 3 = 12? Or, does one just fall back on using >> x? > > How about '2 * 2 * 3 =

Re: [Zope-dev] Speaking of Structured Annoyances

2002-09-05 Thread R. David Murray
On Wed, 4 Sep 2002, Jeffrey P Shell wrote: > Um, how does one escape * in STX-NG? As in - what if one is entering an > equation inline like 2 * 2 * 3 = 12? Or, does one just fall back on using > x? How about '2 * 2 * 3 = 12'? --RDM ___ Zope-Dev mai

Re: [Zope-dev] Improving product management

2002-09-05 Thread Andy McKay
Thats what ZPM did for a while, the server side stuff on my end is now broken. It would display a list of products and tell you what version needs updating. It would be fairly straightfoward to get that running again I believe if anyone wants to take a gander. -- Andy McKay Agmweb Consulting

Re: [Zope-dev] SWAP issue

2002-09-05 Thread Toby Dickenson
On Thursday 05 Sep 2002 2:58 am, Ahsan Imam wrote: > Hello All, > > I am currently running zope 2.5 and python 2.1.3. Are you actually seeing the zope processes use too much memory? 2.5.x have a ZODB cache mechanism that does not respond well to memory pressure. If your application touches man

Re: [Zope-dev] Improving product management

2002-09-05 Thread Eron Lloyd
Is that code sitting anywhere? I'd like to take a look at it. Thanks, Eron On Thu, 2002-09-05 at 01:37, Andy McKay wrote: > Thats what ZPM did for a while, the server side stuff on my end is now > broken. It would display a list of products and tell you what version needs > updating. It would b

[Zope-dev] Performance problem in ZOPE 2.5.1, 'getOwner' in /lib/python/AccessControl/Owned.py

2002-09-05 Thread Arnar Lundesgaard
Hi, as I have written on this list before, we have had serious performance problems on one of our CMF based sites. For a long time we believed that this was mostly due to load, and differences in our application. Unfortunately the more we searched for answers the less we understood. Recentl

[Zope-dev] SWAP issue

2002-09-05 Thread Ahsan Imam
Hello All, I am currently running zope 2.5 and python 2.1.3. The machine has 2 gigs of rams and is running on Red Hat 7.2. After starting zope eveything works fine for a while. Slowly the swap starts to swell up and after a few hours the machine has to be rebooted. The funny thing is that fre

Re: [Zope-dev] Future of StructuredText

2002-09-05 Thread Casey Duncan
On Thursday 05 September 2002 03:45 am, Max M wrote: [snip] > > In userland indentation is actually a hard problem. > > > regards Max M http://lists.zope.org/mailman/listinfo/zope ) Indeed, most normal humans have trouble with understanding nested hierarchies. Something which we geeks often

[Zope-dev] Re: Future of StructuredText

2002-09-05 Thread Richard Jones
On Thu, 5 Sep 2002 1:23 pm, Simon Michael wrote: > Simon Michael <[EMAIL PROTECTED]> writes: > > The doc I read listed a large number of rules, including many that seemed > > to want to exert more control over my text than they should. (I had a > > I tracked it down - it was the example rST PEP p

Re: [Zope-dev] Future of StructuredText

2002-09-05 Thread Max M
Richard Jones wrote: >One of the big issues is that rest isn't optimised. I don't know what the >scope is for optimising rest, nor have I got any real benchmark numbers. The >emphasis so far has been to build it to spec. It's potentially much slower >than stx because the latter has been around