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 )
Re: [Zope-dev] Re: Grrr... Python Scripts
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?
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?
> "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
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
Hi ya'll, I have created a product with a zclass that contains a zclass; classA contains classB. Both use '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: Where 'template' is a property of the object that has a 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: 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: Why does the "_.getitem(index_object, 1)" not return the rendered object? Thanks, Jeff
[Zope-dev] zope.org Product Release
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 )
Re: [Zope-dev] Object dereferancing Question
On Tue, 8 May 2001, Jeff wrote: > I have created a product with a zclass that contains a zclass; classA contains >classB. [...] > 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: > > > > 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. '1' means "call the object if it is callable". ZClasses are not callable. Therefore you get the object back. See the Renderable Product if you want to fix this . --RDM ___ 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 )