RE: [Zope] how to invalidate an object in the cache?

2000-07-01 Thread Marc Boschma

Sounds like you need to manipulate the expiry time for the objects. I'd
suggest that that can either be done in the RESPONSE or via meta tags in the
standard_html_header to mark the page and the image as non-cacheable.

I'm actually interested in a Guru's response on this as I will need to set
the expiry explicitly to save load on the server for content that is
dynamically generated but doesn't change often.

Marc

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Marco
> Mariani
> Sent: Sunday, 2 July 2000 9:08 AM
> To: [EMAIL PROTECTED]
> Subject: [Zope] how to invalidate an object in the cache?
>
>
>
> I am working with photo rotating/resizing, via PIL on external
> method.
>
> All the images are kept on LocalFS.
>
> There is a thumbnail bonanza page, when I select a thumbnail a
> form is shown, and I can adjust rotation/contrast/brightness.
> Upon submit, the new image+thumbnail is calculated and written
> to the filesystem.
>
> Then the method calls RESPONSE.redirect to show the index page again.
>
> When I go back to the index thumbnail page, the
> image I've just rotated is displayed with the right size (which means
> that Zope gets it right), but not rotated (which means that Netscape
> reads the old image from the cache). I mean, if it was 320x200 and is
> now 200x320, the browser displays the old 320x200 image stretched to
> 200x320.
>
> I'm not digging into contrast and brightness, but the same happens.
>
> Is there a way to force the browser to discard the cache for that
> image? If I go "right-button, view image, shift+reload" the new
> image is displayed.
>
> Any idea? I'm not very knowledgeable on this matter, I don't design
> pages for a living.
>
> Might javascript help?
>
>
> Thank you.
>
> --
> "This company has performed an illegal operation and will be
> shut down.
>  If the problem persists, contact your vendor or appeal to a
> higher court."
>  - Signal11 on slashdot
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] When does Zope become single-threaded?

2000-07-01 Thread Hung Jung Lu

Hi,

I seem to remember that in the old days, if one uses Zope with PCGI, it 
would only run single-threaded. Is the correct? Or is Zope now always 
multi-threaded?

(I know one can control the number of threads via the -t option in the start 
script.)

regards,

Hung Jung


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Zope dumps core while querying on id

2000-07-01 Thread Luke Tymowski

Hello,

Actually I suppose it's Python that's dumping core.

The following query causes a core dump:

   
 
   
 
   


The following query works as expected:

   
 
   
 
   



Any idea why?

I'm using 2.1.6.

The other day I posted a question asking why my bobobase_modification_time 
was off by 1 day. I got no answer. But upgrading from 2.1.4 to 2.1.6 seems 
to have fixed that issue. The core dump happened in 2.1.4, so I upgraded to 
2.1.6, but the core dump issue remains.

thanks,

Luke


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] how to invalidate an object in the cache?

2000-07-01 Thread Marco Mariani


I am working with photo rotating/resizing, via PIL on external
method.

All the images are kept on LocalFS.

There is a thumbnail bonanza page, when I select a thumbnail a
form is shown, and I can adjust rotation/contrast/brightness.
Upon submit, the new image+thumbnail is calculated and written
to the filesystem.

Then the method calls RESPONSE.redirect to show the index page again.

When I go back to the index thumbnail page, the
image I've just rotated is displayed with the right size (which means
that Zope gets it right), but not rotated (which means that Netscape
reads the old image from the cache). I mean, if it was 320x200 and is
now 200x320, the browser displays the old 320x200 image stretched to
200x320.

I'm not digging into contrast and brightness, but the same happens.

Is there a way to force the browser to discard the cache for that
image? If I go "right-button, view image, shift+reload" the new
image is displayed.

Any idea? I'm not very knowledgeable on this matter, I don't design
pages for a living.

Might javascript help?


Thank you.

-- 
"This company has performed an illegal operation and will be shut down.
 If the problem persists, contact your vendor or appeal to a higher court."
 - Signal11 on slashdot

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Patch to allow expression syntax for attribute 'sort' in tag. Very please, test it !

2000-07-01 Thread Adam Karpierz

Dear community

Please check out and test this patch that I would send it to Collector.
I suppose that this feature is very usefull for us and would be good
thing if will be insert in next beta of Zope2.2.0.
This patch is crude, without any checks (because my Zope needs reinstall),
but very simple and I not quess that is so buggy.

PS: Second little patch I have attached is only cosmetic and not important.

(apologies for my 'english'..)
--
Regards
Adam Karpierz
[EMAIL PROTECTED]



begin 666 DT_In.py.patch
M*BHJ(&QI8B]P>71H;VXO1&]C=6UE;G1496UP;&%T92]$5%]);BYP>2YO2 R-2 Q,CHS,SHT,R R,# P"BTM+2!L:6(O<'ET:&]N+T1O8W5M
M96YT5&5M<&QA=&4O1%1?26XN<'D)4W5N($IU;" P,B P,#HQ.3HU.2 R,# P
M"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@,S@U+#,Y," J*BHJ"BTM+2 S.#4L,SDQ
M("TM+2T*("!?7W)C'!R7V=L;V)A;',*("!F'!R/7-O0H@( H@(" @(" @(" @:68@
M:&%S7VME>2@G0H@( H@(" @(" @(" @:68@:&%S7VME>2@G&-E<'0@4WEN=&%X17)R;W(L('8Z"B$@(" @(" @(" @(" @(" @(" @("!R
M86ES92!087)S945R6YT87@@97)R;W(\+W-T
M2@G'!R(&ES(&YO="!.;VYE.B!S;W)T/7-E
M;&8N3(@"B @(" @(" @("!M=6QT71H;VXO1&]C=6UE;G1496UP;&%T92]$5%],970N<'DN;W)G
M"51H=2!*=6P@,CD@,3$Z-38Z,CD@,3DY.0HM+2T@;&EB+W!Y=&AO;B]$;V-U
M;65N=%1E;7!L871E+T147TQE="YP>0E3=6X@2G5L(# R(# P.C(U.C(W(#(P
M,# **BHJ*BHJ*BHJ*BHJ*BHJ"BHJ*B Q,3(L,3$X("HJ*BH*(" @("!A"P@http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Arrg! dtml-in can't handle lists of pairs!

2000-07-01 Thread Luis Cortes

I have confirmed that this is strange behavior can be reproduced on 2.1.6 --
why I don't know.  A work around may be to convert your tuples to lists (easy to
do in python)  sample working code:




Iterate over 3.tuples





 



Iterate Over 2-tuples













Why can't I do this!




Iterate Over 1-tuples




   
 







On Sat, 01 Jul 2000, Cary O'Brien wrote:
> Ok.  I get a list of rows from a database query.  I want
> to iterate over the rows.  If there are 3 or more
> columns in the table, everythin is fine.  If there are 2 
> columns, it doesn't work.
> 
> It seems as if dtml-in handles lists of pairs specially. 
> Not a good thing.  Can I supress this behavior?
> 
> Here is an example of this:
> 
> ---
> 
> Iterate over 3.tuples
> 
>
>   
>   
>  > 
> 
>
> 
> Iterate Over 2-tuples
> 
>
>   
>   
>   
>  > 
>   
>   
> Why can't I do this!
>
>
> 
> Iterate Over 1-tuples
> 
>
>   
>   
>  > 
> 
>
> 
> 
> ---
> 
> -- cary
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] calling standard_html_header from external methods

2000-07-01 Thread Andy McKay

It sounds like it needs some arguments... the most obvious one I would try
is request.

HEADER=self.standard_html_header(REQUEST)
- Original Message -
From: "Marco Mariani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 01, 2000 6:33 AM
Subject: [Zope] calling standard_html_header from external methods


> How may I access standard_html_header through acquisition
> form foo.py?
>
> I've tried
>
> HEADER=self.standard_html_header()
>
> It acquires, but gives me an error on title_or_id, on PARENTS,
> on whatever. What arguments should I pass to it?
>
> Thanks
>
>
> --
> "This company has performed an illegal operation and will be shut down.
>  If the problem persists, contact your vendor or appeal to a higher
court."
>  - Signal11 on slashdot
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Arrg! dtml-in can't handle lists of pairs!

2000-07-01 Thread Cary O'Brien


Ok.  I get a list of rows from a database query.  I want
to iterate over the rows.  If there are 3 or more
columns in the table, everythin is fine.  If there are 2 
columns, it doesn't work.

It seems as if dtml-in handles lists of pairs specially. 
Not a good thing.  Can I supress this behavior?

Here is an example of this:

---

Iterate over 3.tuples

   
  
  
 > 
  
   

Iterate Over 2-tuples

   
  
  
  
 > 
  
  
Why can't I do this!
 
   

Iterate Over 1-tuples

   
  
  
 > 
  
   


---

-- cary

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] sort=id, _.map, _.lambda woes

2000-07-01 Thread Marco Mariani

Hi all!

I need the following:



where "id" is a filename representing a number.
Of course, sort uses it like a string and sorts it wrong.

Maybe, since sortexpr= is not implemented (yet?) I could
get away with:



but _.map doesn't exist (nor _.lambda. Why?)


What is the Right Thing to do?

I already know the easy answer (external method) :-)

Of couse I cannot add an order property to the file objects,
as they're in LocalFS.


Thanks

-- 
"This company has performed an illegal operation and will be shut down.
 If the problem persists, contact your vendor or appeal to a higher court."
 - Signal11 on slashdot

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] RE: Every user should have the Anonymous role everywhere

2000-07-01 Thread Alan Capesius, MCSE

My suggestion for splitting the role or allowing an "anyone" or "public" role would 
allow "anonymous" to be maintained and used to identify users that are not 
authenticated. (This seems to be the norm now for DTML.)
The new role would basically be defined as "ignore all security and allow access"

Placing the alternate User Folder at the root and using hierarchical roles defined at 
the root level would make it more manageable, but it would have several drawbacks I 
can think of off hand: more complex management, shared security model in virtual 
servers, and difficult for newbies to implement security without locking themselves 
out of the entire system.

Perhaps a flag for "use security"/"don't use security" on this folder/object would be 
useful?

I haven't seen this submitted to the Bug Collector yet..

> > --
> > From:   Chris Withers[SMTP:[EMAIL PROTECTED]]
> Dieter Maurer wrote:
> > In Zope, each user has a set of roles.
> > Any user has the "Anonymous" role. Log-in users may have
> > additional roles.
> 
> I'm not convinced this is true...
> 
> Quoting from the LoginManager CHANGES.TXT file:
> > Generic User Source, like the GenericUserFolder product it was 
> inspired by,
> > gave all users the Anonymous role. This seems to be incorrect 
> according to 
> > what other user folders do, including the standard Zope 
> version, so GUS now 
> > no longer does this.
> 
> ...which is why Alan experiences this problem. I've also run into it
> just using a normal acl_users folder and I've been mentioning every few
> months since I bumped into it back in March. Here's my opriginal post:
> 
> http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/82AE22A20C7E88AE
> 
> I wish this could get sorted out as it makes security a nightmare unless
> you use a web of local roles, which is painful and messy to maintain.
> 
> Is there any reason why every user shouldn't have the anonymous role for
> every accessible page/object/thing visitable through a protocol?
> 
> cheers,
> 
> Chris
> 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] 2.2b3 and INSTANCE_HOME problem

2000-07-01 Thread Ty Sarna

In article <003901bfe321$e744b990$c7da5e3f@mozart>,
Evan Simpson <[EMAIL PROTECTED]> wrote:
> It's a bug.  I've been tracking down and squishing a few in corners where
> INSTANCE_HOME wasn't properly taken into account, but I hadn't gotten to
> XMLDocument yet.  This should be fixed in CVS shortly (and the next release
> of Zope).

You may have already gotten to this, but ISTR that manage_readme on
products has this problems. You might also want to verify that the new
help system works with INSTANCE_HOME too (I forget).

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Question

2000-07-01 Thread Oleg Broytmann

On Sat, 1 Jul 2000, Jonathan Desp wrote:
> Do you know any software, for creating mailing list, under Zope ?

   Zope is web-sever (mostly), how do you think it could handle mailing
lists?
   Use mailman (www.list.org) for good python mailing list manager.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: Copy/Paste problem

2000-07-01 Thread Oleg Broytmann

Followup to myself...

On Sat, 1 Jul 2000, Oleg Broytmann wrote:
>I (and some my friends) have problem with Copy/Paste. Sometimes it's
> wotking, but often Paste button does not appeared after Copy/Cut.

   After investigating I found that the problem is mostly related to
SiteAccess. I can copy FROM a folder with SiteRoot object, but cannot paste
INTO such folder. After removing SiteRoot object copy/paste worked. After
reinstalling SiteRoot copy/paste stopped working again.

   Both 2.1.4 with SiteAccess and 2.2.0b3 with SiteAccess2...

   I said "mostly" because sometimes Zope stops copy/pasting in random
folders without SA at all.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: ZClass in ZClass problem

2000-07-01 Thread Oleg Broytmann

Followup to myself...

On Sat, 1 Jul 2000, Oleg Broytmann wrote:
>Then the problems begin. All management URLs for inner ZClass contain
> %20, so URLs look like
> "propertysheets/methods/RandomZItem%20/manage_workspace" and
> "propertysheets/methods/RandomZItem_add%20/manage_workspace".

   I found that not only my ZClassess do this way. I imported SiteSummary -
and got the problem. Something broken in my installation?

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Question

2000-07-01 Thread Jonathan Desp

Hi,

Do you know any software, for creating mailing list, under Zope ?

-- 
Very truly yours,

<><><><><><><><><><><><><><>
Jonathan Desp
Atoma
Matter will become Software
http://www.atoma.f2s.com
<><><><><><><><><><><><><><>

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] calling standard_html_header from external methods

2000-07-01 Thread Marco Mariani

How may I access standard_html_header through acquisition
form foo.py?

I've tried

HEADER=self.standard_html_header()

It acquires, but gives me an error on title_or_id, on PARENTS,
on whatever. What arguments should I pass to it?

Thanks


-- 
"This company has performed an illegal operation and will be shut down.
 If the problem persists, contact your vendor or appeal to a higher court."
 - Signal11 on slashdot

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] (pas d'objet)

2000-07-01 Thread moch taufik

I have 1(one) sequence_item in a object and I was success insert them to
the database.
I have problem with 2 sequence_item. Anyone help me ??


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Every user should have the Anonymous role everywhere (was :Re: [Zope]Authentication, Anonymous and Public)Authentication, Anonymous and Public)

2000-07-01 Thread Chris Withers

Dieter Maurer wrote:
> In Zope, each user has a set of roles.
> Any user has the "Anonymous" role. Log-in users may have
> additional roles.

I'm not convinced this is true...

Quoting from the LoginManager CHANGES.TXT file:
> Generic User Source, like the GenericUserFolder product it was inspired by,
> gave all users the Anonymous role. This seems to be incorrect according to 
> what other user folders do, including the standard Zope version, so GUS now 
> no longer does this.

...which is why Alan experiences this problem. I've also run into it
just using a normal acl_users folder and I've been mentioning every few
months since I bumped into it back in March. Here's my opriginal post:

http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/82AE22A20C7E88AE

I wish this could get sorted out as it makes security a nightmare unless
you use a web of local roles, which is painful and messy to maintain.

Is there any reason why every user shouldn't have the anonymous role for
every accessible page/object/thing visitable through a protocol?

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] XMLRPC error

2000-07-01 Thread Sin Hang Kin

Hi,

After failing to use wxLoadSite, which report

wxloadsite.py, line 164, in onPressCopy
AttributeError: host


I try to test it by hand, I start up python and

>>> zs =
xmlrpclib.Server('http://localhost:8080',username='kentsin',password='passwo
rd')
>>> t = zs.objectIds()
Traceback (innermost last):
  File "", line 1, in ?
  File "wxLoadSite\xmlrpclib.py", line 550, in __call__
return self.__send(self.__name, args)
  File "wxLoadSite\xmlrpclib.py", line 644, in __request
request
  File "wxLoadSite\xmlrpclib.py", line 596, in request
headers
wxLoadSite.xmlrpclib.ProtocolError: 

I am using Win32 zope 2.2b1 on the same win98. The xmlrpc client is using
the same python with the binary zope. (I have the zope1.5.2 install in same
box).

Can anyone help me with these? Moreover, it seems that it is not using the
BasicAuthTransport which is mentationed in articles in xml.com, are there
some changes in the xmlrpc code?

Rgs,

Kent Sin
-
kentsin.weblogs.com
kentsin.imeme.net


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Copy/Paste problem

2000-07-01 Thread Oleg Broytmann

Hi!

   (Nobody dared to answer, trying to do some research...)

   I (and some my friends) have problem with Copy/Paste. Sometimes it's
wotking, but often Paste button does not appeared after Copy/Cut.

   I put debug DTML method on a site - just  and found
browse always pass __cp cookie, so it is not a cookie problem.

   I copied the cookie value and tried to _cb_decode it myself:

from marshal import loads, dumps
from urllib import quote, unquote
from zlib import compress, decompress

def _cb_decode(s):
print unquote(s)
return loads(decompress(unquote(s)))

print 
_cb_decode('x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%01%E2%16%83%B9%CC%20%16%07%03%1C0%21q%D8%95%919%B3%20%92%9D%04%29')

error: MemoryError: Out of memory while decompressing data.

   I did experimets with by copying just one DTML document in a folder 1
level below the root, so this is not a problem with too many object or too
long path. What is it?

   Sun Sparc, Solaris 2.5.1, python 1.5.2 compiled by me from sources, Zope
(both 2.1.4 and 2.2.0b3) compiled from sources; gcc 2.7.2.3.

   I did some experiments on Linux. Paste works a little better there, but
not much - often Paste button does not appeare.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZClass in ZClass problem

2000-07-01 Thread Oleg Broytmann

Hello!

   (Nobody dared to answer, retrying...)

   I started to learn ZClasses. I created a product, added a Zclass in it,
and added a Zcalss inside outer ZClass - I want to create ZClass that's
addable only inside outer ZClass.

   Then the problems begin. All management URLs for inner ZClass contain
%20, so URLs look like
"propertysheets/methods/RandomZItem%20/manage_workspace" and
"propertysheets/methods/RandomZItem_add%20/manage_workspace".

   If I click on the link I got the AttributeError (of course). When I
manually remove the offending %20, I can manage the object, but it's
tiresome to remove it every time.

   The problem manifested on both 2.1.4 and 2.2.0b3. What's wrong?

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] ZOracleDA

2000-07-01 Thread Kiran Jonnalagadda

Michal Bukovjan wrote:
> 
> Avoid using Oracle 8.1.5 at all costs. It has mislinked executables and
> libraries, I can't believe Oracle could have released such a shit.
> 
> Instead, download and try Oracle 8.1.6 R2 - the current release.
> It fixes a number of issues (though not all of them) and at least it works.

I've downloaded Oracle 8.1.6, but the 8.1.5 setup file doesn't work
anymore. Does anyone have the 8.1.6 setup file? I'm not sure how to make
it myself.

-- 

Kiran Jonnalagadda
http://lunateks.com

baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/';
sync; sync; sleep 15; done

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Removing part of a string (in an URL)

2000-07-01 Thread T. J. Mannos

Walter,

Try a little trick I use with _.string.split().  split() splits a string into two (or 
more) parts based on a delimiter.  In this case, the delimiter could be any part of 
the URL directly to the left of /Zorba/busca/...

For example:


This splits the URL into 'http://zorba.com.mx' (which you don't want) and 
'/Zorba/busca/Zorba/...' (which you do want).  The [1] tells Zope to take only the 
second part, the part you want.

If you plan to make this code portable incase you switch servers or use a SiteRoot, I 
believe (and correct me if I'm wrong) you're safer using the 'BASE0' property for your 
delimiter.  For example:



Now, I don't know about the organizational problems that prevent you from dropping the 
/Zorba/busca, but I'd assume you would do the same thing, except replace "BASE0" with 
"BASE0 '/Zorba/busca'".  I'm thinking, though, you'll eventually want to set up a 
separate server and a SiteRoot so that your web address will be 
http://zorba.com.mx/Zorba/cacharrito/prueba -- right?

- T.J.

<<< "Walter A. Aprile" <[EMAIL PROTECTED]>  6/30 11:19p >>>

Hi,
more newbie questions, I am afraid. I have a ZCatalog result form
that boringly forms links this way:



Due to the way my site is organized, the URL I get has an unwanted
part at the beginning. The part is always the same size, and the same string
in fact. How do I remove it ? For example, the URL is

http://zorba.com.mx:8080/Zorba/busca/Zorba/cacharrito/prueba
^
and I would like to cut it here |
and turn it into 

/Zorba/cacharrito/prueba

The problem is that the URL above is still valid, but if I do another
search then the same /Zorba/busca gets added, and it gets longer and longer,
besides messing up my breadcrumb trail.

I tried using a regular expression method, but I do not really know
Python (not yet !), so it did not work. 

Thank you very much
Walter


-- Vita brevis, ars longa, occasio celeris, experimentum periculosum,
judicium difficile. Attention: Un train peut en cacher un autre
-><- Eris aprueba este email ! -><- http://redescolar.ilce.edu.mx


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )