Re: [Zope-dev] Re: Grrr... Python Scripts

2001-05-08 Thread Chris Withers

Evan Simpson wrote:
 
 Use the same security process as providing access to anything Zope doesn't
 already expose.  

Wgh! :~(

 We should expose exceptions like this by default, but we
 haven't yet.  Sorry.

No worries, where should I be looking to implement this? Woudl a patch eb likely
to make it into the next version?
If so, what exceptions should be exposed?

My list so far:
Exception (all the default Python ones would be cool, dunno if theyr'e in there
already...)
CatalogError
sys.exc_type
sys.exc_value

Any others?

cheers,

Chris

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



Re: [Zope-dev] Re: Grrr... Python Scripts

2001-05-08 Thread Chris McDonough

Here Chris, I'll try to solve your pain (untested):

from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('Products').declarePublic('Catalog')
ModuleSecurityInfo('Products.Catalog').declarePublic('CatalogError')

It's not so bad.

- C


- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: Evan Simpson [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 9:02 AM
Subject: Re: [Zope-dev] Re: Grrr... Python Scripts


 Evan Simpson wrote:
 
  Use the same security process as providing access to anything Zope
doesn't
  already expose.

 Wgh! :~(

  We should expose exceptions like this by default, but we
  haven't yet.  Sorry.

 No worries, where should I be looking to implement this? Woudl a patch eb
likely
 to make it into the next version?
 If so, what exceptions should be exposed?

 My list so far:
 Exception (all the default Python ones would be cool, dunno if theyr'e in
there
 already...)
 CatalogError
 sys.exc_type
 sys.exc_value

 Any others?

 cheers,

 Chris

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



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



[Zope-dev] ZEO client-server protocol endian-safe?

2001-05-08 Thread Anthony Baxter


Any known gotchas with running ZEO server and ZEO client on boxes of
different endianness? e.g. the server running on sun solaris/sparc,
while the clients are on x86 linux boxes.

I'd expect it to be fine, but am feeling paranoid...

ta,
Anthony.

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



Re: [Zope-dev] ZEO client-server protocol endian-safe?

2001-05-08 Thread Jeremy Hylton

 AB == Anthony Baxter [EMAIL PROTECTED] writes:

  AB Any known gotchas with running ZEO server and ZEO client on
  AB boxes of different endianness? e.g. the server running on sun
  AB solaris/sparc, while the clients are on x86 linux boxes.

  AB I'd expect it to be fine, but am feeling paranoid...

All the data that ZEO passes between client and server is marshalled
with cPickle, which uses a neutral format.

Jeremy





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



[Zope-dev] clipboard utility

2001-05-08 Thread seb bacon

Just a quick thought - It'd be useful to be able to see what is on
your 'clipboard' when you're copyandpasting.  Would it be a Bad Thing
to factor out the first bit of OFS.CopySupport.manage_pasteObjects into a
separate function, which is callable TTW?  You could then iterate over
the objects on the clipboard in dtml, etc. 

seb

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



[Zope-dev] Object dereferancing Question

2001-05-08 Thread Jeff



Hi ya'll,

I have created a product with a zclass that 
contains a zclass; classAcontains classB. 
Bothuse 'Folder' as bases class.
I want the classB objects to have a 'default 
rendering' capability so I added a DTML Method named index_html to classB with 
the following code:

dtml-var expr="_.getitem(template, 
1)"

Where 'template' is a property of the object that 
hasa method name in it.
So far so good, if I navigate to a classB object 
the correct method is called and the object is rendered.

Now for the part I don't 
understand.
I have a page where I would like dynamically 
display a classB object. I used the following:

dtml-var expr="_.getitem(index_object, 
1)"

Where 'index_object' is the id of a classB object 
within the name space (same folder).
I thought that this would call the 'default 
rendering' for the named object, but instead returns the object.
The following code worked:

dtml-with expr="_.getitem(index_object, 
0)"dtml-var index_html/dtml-with
Why does the "_.getitem(index_object, 1)" not return the rendered 
object?
Thanks,
Jeff


[Zope-dev] zope.org Product Release

2001-05-08 Thread richard

I'm trying to upload a .zexp to a product release (Add Product Release)
and it's not working. The export is only 57k, but all I get is zope.org not
responding...

Any hints? Should I upload something other than a zexp?


Richard

-- 
Richard Jones
[EMAIL PROTECTED]
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)

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