[Zope] Re: StructuredDocument size reduced after 2.5.1 to 2.7.5 upgrade

2005-08-30 Thread Maik Jablonski

John Schinnerer wrote:

I am using StructuredDocument objects in the custom products I am
migrating to 2.7.5 from 2.5.1.

In 2.7.5 I am now getting an error

Value Error
Maximum content length exceeded


...


...

Attached is a zexp of the StructuredDocument object I just used to get
the estimate of where it breaks.


I cannot reproduce the problem with 2.7.7... I can store 100KB or more 
without any problem. So I guess something in your python/zope-install is 
going mad.


Just a hint: The problem should also occur if you try to store much 
content in a DTML-Document with your setup...


Cheers, Maik

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: StructuredDocument size reduced after 2.5.1 to 2.7.5 upgrade

2005-08-30 Thread Jaroslav Lukesh
Dne úterý, 30. srpna 2005 20:33 Dieter Maurer <[EMAIL PROTECTED]> napsal(a):
> John Schinnerer wrote at 2005-8-30 00:09 -0700:
> > ...
> >For any StructuredDocument object I have, it breaks at approximately
> >4490 chars (seems to vary by a few chars - maybe due to how many line
> >breaks...?).  Less works OK; more returns the above error.
>
> Some Zope version may have introduced a few new configuration options
> to control the size of uploaded objects (I see them
> in Zope 2.8.1 after I upgraded from Zope 2.7.1) -- maybe some of them
> are responsible...

maybe form trasport method too, see POST vs. GET.

-- 

Jaroslav Lukesh
  ---
  This e-mail can not contain any viruses because I use Linux
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: StructuredDocument size reduced after 2.5.1 to 2.7.5 upgrade

2005-08-30 Thread Dieter Maurer
John Schinnerer wrote at 2005-8-30 00:09 -0700:
> ...
>For any StructuredDocument object I have, it breaks at approximately
>4490 chars (seems to vary by a few chars - maybe due to how many line
>breaks...?).  Less works OK; more returns the above error.

Some Zope version may have introduced a few new configuration options
to control the size of uploaded objects (I see them
in Zope 2.8.1 after I upgraded from Zope 2.7.1) -- maybe some of them
are responsible...


PS: I was unable to reproduce the problem: I got an
"The object *broken* does not support this operation".
Apparently, the reproduction needs something unavailable in Zope 2.8.1.

-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Where to authenticate during traversal

2005-08-30 Thread Dieter Maurer
Chris Withers wrote at 2005-8-29 22:21 +0100:
> ...
>> a single state workflow should not control permissions
>> (but allow them to be controlled by the environment).
>
>Now THAT is a good point...

I forgot to mention that you need to reindex the index "allowedRolesAndUsers"
for descendants when you change the permissions and descendants inherit
them.

-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope 2.8 command line tracebacks

2005-08-30 Thread Dieter Maurer
Ed Colmar wrote at 2005-8-29 15:38 -0700:
>The 2.8 version of zope no longer displays tracebacks in the terminal 
>window (after excecuting ./runzope). It just stops execution at any 
>errors.

Do you speak of "startup errors"?

I was able to analyse them with "bin/zopectl fg".
They came on the console as before (though a bit later...)

-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: passing a parameter - namespace and dtml-with

2005-08-30 Thread John Eikenberry
Alexander Limi wrote:

> 
> Wow, I had forgotten how incredibly ugly DTML can be. That just looks  
> wrong, like you stumbled on your keyboard. Maybe I should go hang out on  
> the perl lists and build up some tolerance for "interesting" syntax. :^)
> 
 
Yes. DTML is ugly, which is why its bee superseded by page templates. ZPTs
are much nicer and just about the best way to do html-embedded display
code that I've seen. At least compared to the alternatives.

-- 

John Eikenberry [EMAIL PROTECTED]
__
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
  --B. Franklin
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] passing a parameter - namespace and dtml-with

2005-08-30 Thread John Eikenberry
Peter Bengtsson wrote:

> Better
> 
> 
> 
> 
> 
> 
> 
> Use dtml-let and notice the extra _ in the parameters. I doubt that
> DTML methods accept plain arguments except self, REQUEST and RESPONSE.
> All other things must be passed with keyword arguments.
 
Opps. Yes. dtml-let is what you should use. Been awhile since I've done to
much with dtml.

-- 

John Eikenberry [EMAIL PROTECTED]
__
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
  --B. Franklin
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] NauScheduler problem

2005-08-30 Thread Barry Drake
Thank you.  I certainly will check those out.

Barry

--- Chris Withers wrote:

> Barry Drake wrote:
> > 
> > NauSchedule is a very cool product for scheduling
> > automatic tasks, though there are only three
> sentences
> > of documentation for installation.
> 
> You may wish to have a look at Stepper and/or ZASync
> ;-)
> 
> cheers,
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
> 
> 

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: adding property to new Folder: can't pickle module objects

2005-08-30 Thread Maik Jablonski

Roman Klesel wrote:
newaddr.manage_addProperty("test", "test", string) 


should be ("string" instead of string):

newaddr.manage_addProperty("test", "test", "string")

-mj

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] adding property to new Folder: can't pickle module objects

2005-08-30 Thread Roman Klesel
Hello everyone,

again I'm stuck :-(

I have a python script that looks as follows:

results=[]
for ids in context.objectIds('Folder'):
results.append(ids)

newid = str(int(max(results)) + 1)

context.manage_addProduct['OFSP'].manage_addFolder(newid, title="person")

newaddr=getattr(context, newid)

newaddr.manage_addProperty("test", "test", string)

return 0


When I run it it returns the error:

Error Type: TypeError
Error Value: can't pickle module objects



It looks like as if the Folder doesn't get created when the
manage_addProperty() function tries to modify it.

If I comment out the line with the manage_addProperty() function the
folder however gets created and newaddr has as sensible value.

Please help me to clarify this.

Thanks in advance

Roman





___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] passing a parameter - namespace and dtml-with

2005-08-30 Thread Chris Withers

Sean Kelley wrote:
Only problem is I am using a dtml-in inside the category_results method 
which calls a sql method and it now gives me an error:


...

 Perhaps its not finding the title1 value I am trying to pass to it?


Honestly, thes emore explicit nature of ZPT would leave you with a LOT 
less trouble here. It's not that often you find me agreeing with Alex 
Limi ;-)


Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] NauScheduler problem

2005-08-30 Thread Chris Withers

Barry Drake wrote:


NauSchedule is a very cool product for scheduling
automatic tasks, though there are only three sentences
of documentation for installation.


You may wish to have a look at Stepper and/or ZASync ;-)

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] passing a parameter - namespace and dtml-with

2005-08-30 Thread Peter Bengtsson
On 8/30/05, Sean Kelley <[EMAIL PROTECTED]> wrote:
> Only problem is I am using a dtml-in inside the category_results method
> which calls a sql method and it now gives me an error: 
> 
> ... 
>  
>   
> Perhaps its not finding the title1 value I am trying to pass to it? 
> 
That's got nothing to do with 'title1'. The error tells you that
category_match1 doesn't exist.
If you think it should exist, it's because you haven't called the
"parenting" dtml method correctly. I.e. with the wrong namespace.

Why can't you just use Page Templates?

> Error Type: NameError
> Error Value: global name 'category_match1' is not defined
>  
>  
> On 8/29/05, Peter Bengtsson <[EMAIL PROTECTED]> wrote: 
> > Better
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> > Use dtml-let and notice the extra _ in the parameters. I doubt that
> > DTML methods accept plain arguments except self, REQUEST and RESPONSE. 
> > All other things must be passed with keyword arguments.
> > 
> > 
> > On 8/30/05, Sean Kelley <[EMAIL PROTECTED]> wrote:
> > > I tried using orig_title in the format  in the
> called 
> > > dtml-method (category_results) and I get a zope error which I don't
> > > understand:
> > > Error Type: TypeError
> > > Error Value: sequence index must be integer
> > >
> > > When I call it in the orignal page which I want the title for it works
> fine. 
> > >
> > >
> > > John Eikenberry jae-zope at kavi.com
> > > Mon Aug 29 16:05:37 EDT 2005
> > >
> > >
> > >
> > > Previous message: [Zope] passing a parameter - namespace and dtml-with 
> > > Next message: [Zope] zope 2.8 command line tracebacks
> > > Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > > 
> > >  Sean Kelley wrote:
> > >
> > > > I am trying to pass the title of a page to a dtml method which is in 
> > > another
> > > > folder named links. If I pass the actual title like below everything
> > > works.
> > > > However, when I try to pass the value of the current title to
> > > > category_results using various other methods it does not. 
> > > > What is the syntax so that I can pass the current value of  > > title>
> > > > to the method? Would the dtml-with block change the namespace it pulls
> the
> > > > title variable from to the context of the method category_results in
> the 
> > > > links folder?
> > >
> > > Yes.
> > >
> > > Here's a quick hack that will work.
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > > 
> > > > This line works 
> > > > 
> > > > 
> > >
> > >
> > >
> > >
> > > ___ 
> > > 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
> > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > >
> > >
> > >
> > 
> > 
> > --
> > Peter Bengtsson,
> > work www.fry-it.com
> > home www.peterbe.com
> > hobby www.issuetrackerproduct.com
> > 
> 
> 
> 
> -- 
> Sean Kelley
>  


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: StructuredDocument size reduced after 2.5.1 to 2.7.5 upgrade

2005-08-30 Thread John Schinnerer
Hello,

> John Schinnerer wrote:
> > I am using StructuredDocument objects in the custom products I am
> > migrating to 2.7.5 from 2.5.1.
> > 
> > In 2.7.5 I am now getting an error
> > 
> > Value Error
> > Maximum content length exceeded
> ...
> > Anyone have any idea why I'm getting this size-related error with
> > StructuredDocument only after migrating to 2.7.5?
> > And how to fix it, of course... :-?
> 
> Sorry, but I cannot reproduce this problem with Zope 2.7.7 and large 
> amounts of text in a StructuredDocument... can you send me a 
> .zexp-Export of a StructeredDocument created with 2.5.1 which shows
> the 
> behavior in 2.7.x? Maybe I'll can reproduce it and find the problem,
> but 
> I don't think that it is related to StructuredDocument, because
> nearly 
> all code is acquired from DTML-Document...

For any StructuredDocument object I have, it breaks at approximately
4490 chars (seems to vary by a few chars - maybe due to how many line
breaks...?).  Less works OK; more returns the above error.

My sysadmin did some serious digging and says the error message I get
appears in

/usr/lib/python2.3/cgi.py, lines # 142,272, and 511

he didn't find anything in the Zope code base that has this message.
So may be a python thing...?
Also says it looks like maxlen is getting mangled somehow (though the
default is unlimited?).

Attached is a zexp of the StructuredDocument object I just used to get
the estimate of where it breaks.

thanks,
John S.




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

artist_statements.zexp
Description: 1104408661-artist_statements.zexp
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )