[Zope-dev] HTTP Traceback Style
Evan Simpson wrote: Christian Theune wrote: Hmm. Is it possible to implement some option to turn this off? I just checked in the ability to use HTTP_TRACEBACK_STYLE to control the appearance of tracebacks in non-debug mode errors: '' (default): Place it in an HTML comment 'none': Omit it 'plain': Include it as plain text just as in debug mode. 'js': Show a sect; that expands into the traceback when clicked. I thought Shane was working on this in his 'better tracebacks' branch? The fact is that the tracebacks should _never_ be appended by some process outside standard_error_message. If people want tracebacks, and there's _lots_ of different ways people want tracebacks, the should add them explicitly in standard_error_message. That said, the default standard_error_message may want to include the options you have above. cheers, Chris - DWIM never does what you want ;-) ___ 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] HTTP Traceback Style
Hi. * Chris Withers [EMAIL PROTECTED] [020316 09:40]: I thought Shane was working on this in his 'better tracebacks' branch? The fact is that the tracebacks should _never_ be appended by some process outside standard_error_message. granted. ;) If people want tracebacks, and there's _lots_ of different ways people want tracebacks, the should add them explicitly in standard_error_message. That said, the default standard_error_message may want to include the options you have above. Yes. But actually (I took a look in the LoginManager code - and it seems as if he is not directly guilty that the traceback shows up, when the login screen is raisen) having a commented traceback in all pages is better then having an uninfluencable sect; dangling around, which actually makes applications unsellable. (I am currently involved in a kind of competition between web application tools at my university, and i want to let zope blink and shine in its best manner.) cheers, Chris - DWIM never does what you want ;-) So it should be called IDWYM, otherwise it is right ... it does what it means ... ;) Greetings Christian -- Christian Theune - [EMAIL PROTECTED] gocept gmbh co.kg - schalaunische strasse 6 - 06366 koethen/anhalt tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981 reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b']) ___ 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] Restricting Sub-Objects in Folders DYNAMICALLY?
I would like to restrict the types of objects (from a python-based product) that may be placed in Folders, or any other dumb container, based on certain conditions. For example: I'd like to restrict the number of a certain type of object that may appear in a folder. The end-user can add up to the limit, and afterwards the object type should NO LONGER APPEAR in the Add List. I've thought about building a specialized folder, but I'd rather not. Zope already has a good folder with all the things I need. What Zope 2.4+ really needs to do is callback a provided function to determine if a particular class is allowed in a specified container instance (or class) Using the implements parameter of the registerClass method is not enough as it only permits static checking. Any help would be greatly appreciated. Regards -- Brian _ Send and receive Hotmail on your mobile device: http://mobile.msn.com ___ 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: SV: [Zope-dev] Small Alert - Temp Solution - more...
Stefane Fermigier (www.nuxeo.com) sent this answer this morning. -- Message transmis -- Subject: [[EMAIL PROTECTED]: Apache Week issue 287] Date: Sat, 16 Mar 2002 08:12:53 +0100 From: Stefane Fermigier [EMAIL PROTECTED] To: [EMAIL PROTECTED] - Forwarded message from Apache Week [EMAIL PROTECTED] - Proxy users thinking of upgrading to Apache 1.3.23 should be aware that there is a bug ([5]PR#9655) in the handling of responses which set more than one cookie, and may wish to wait for the 1.3.24 release before upgrading. - End forwarded message - -- Stéfane Fermigier, Tel: +33 (0)6 63 04 12 77 (mobile). http://nuxeo.com/ http://portalux.com/ http://aful.org/ Amazon: we patent the dot in .com --- -- Jean-Paul Smets-Solanes [EMAIL PROTECTED] - Nexedi (CEO) GPG Fingerprint: 40FF FA78 75AA 680D 8BB4 EEF9 539A 79CC CB8E 5F01 ___ 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] Restricting Sub-Objects in Folders DYNAMICALLY?
Does OrderedFolder do what you want? See http://demo.iuveno-net.de/iuveno/Products/OrderedFolder (item 3 in the list of features). It may or may not be a standard folder feature in 2.6 as well. Gary ___ 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] manage frame change
anyone object to changing the text at in the top ZMI frame to Logged in as user on machine? Or is there a better place to put that info? I find it useful when I've got several windows open to different servers. 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 )
Re: [Zope-dev] Multiple Database Connections Same Zsql method
Thanks for the assist. This worked very well. Definitely have to delete the db connection which lies in the directory with the zsql method. Thanks much!! Rob - Original Message - From: Adrian Hungate [EMAIL PROTECTED] To: senkr [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, March 10, 2002 11:53 PM Subject: Re: [Zope-dev] Multiple Database Connections Same Zsql method The easiest way to do this is probably (As I think you are describing) put the ZSQL Method in a folder, and put one database connection in each sub-directory, and have all the database connectors with the same name. The problem with this will be that you will have to create a database connection in the folder with the ZSQL Method just so you can write the method (ZSQL Methods insist on giving you your database connection). Then you will have to delete the connection BEFORE you can use the others via acquisition. Not tested, but in theory it should work. Adrian... -- The difficulty of tactical maneuvering consists in turning the devious into the direct, and misfortune into gain. - Sun Tzu - Original Message - From: senkr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 09, 2002 12:10 AM Subject: [Zope-dev] Multiple Database Connections Same Zsql method Is it possible to iterate though multiple databases with the same zsql method? Have multple identical databases with different data. Want to maintain only one method. Can i do this in DTML or do I have to use pythonscripts? I guess what I want to do is to have the query in one folder, call it from another folder and pass the database connection info to it. Not sure how well this would work with multiple users though... Any advice is appreciated. ___ 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] Restricting Sub-Objects in Folders DYNAMICALLY?
Brian Oliver wrote: For example: I'd like to restrict the number of a certain type of object that may appear in a folder. The end-user can add up to the limit, and afterwards the object type should NO LONGER APPEAR in the Add List. If you put this in your product: def all_meta_types(self): What types can you add to this objectManager? allowedMetaTypes = ('DTML Document', 'DTML Method') result = [] for metaType in Products.meta_types: if metaType['name'] in allowedMetaTypes: result.append(metaType) return result You can probably modify it to your needs. regards Max M ___ 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] HTTP Traceback Style
Chris Withers writes: The fact is that the tracebacks should _never_ be appended by some process outside standard_error_message. The tracebacks are very helpful in debug mode. I would like they stay as default in this mode. Dieter ___ 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] Replaceable types?
Hi, I'm still fighting with making my QuotaFolder work with some (imho) buggy code in Zope (mainly caused by exceptiontype-less try: except: constructs) (of course, I could patch the problems in Zope, but I'd still like my product to work without patches) The ObjectManager seems to have support for 'replaceable objects', i.e. when looking at checkValidId: if not allow_dup: obj = getattr(self, id, None) if obj is not None: # An object by the given id exists either in this # ObjectManager or in the acquisition path. flags = getattr(obj, '__replaceable__', NOT_REPLACEABLE) if hasattr(aq_base(self), id): # The object is located in this ObjectManager. if not flags REPLACEABLE: raise BadRequestException, ('The id %s is invalid--' 'it is already in use.' % id) First of all, is allow_dup ever set to true? Does zope support duplicate id's in an ObjectManager anywhere at all? Secondly, can someone give me an example of a Replaceable object? Thanks, Ivo -- Drs. I.R. van der Wijk -=- Brouwersgracht 132 Amaze Internet Services V.O.F. 1013 HA Amsterdam, NL -=- Tel: +31-20-4688336 Linux/Web/Zope/SQL/MMBase Fax: +31-20-4688337 Network Solutions Web: http://www.amaze.nl/Consultancy Email: [EMAIL PROTECTED] -=- ___ 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] Moving forward on Zope 2.6
I think that this needs to happen Real Soon. I propose that this friday (the 15th) is the deadline for adding/volunteering for the 2.6 plan. Okay, I'm a bit late but I'd like to integrate what's currently in NuxUserGroups, a bit updated maybe. http://www.zope.org/Members/nuxeo/Products/NuxUserGroups There will be a merge conflit with Lennart's Local roles blacklists, it it's chosen for 2.6, but I'm familiar enough with both code sets to manage the merge. I'm adding this proposal to the wiki. Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 10 http://nuxeo.com mailto:[EMAIL PROTECTED] ___ 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 )