Re: [Zope-dev] more on stacked component registries
Philipp von Weitershausen wrote: Sure it is, I'm talking about what basically happens with nested site managers. The problem is that the current nesting implementation seems predicated on zodb-like persistence. I'm looking at storing all data, including site managers, in a relational database. The actual folder structure should remain as static as it does with zodb... Well, each place in the ZODB will still know that it is a site, i.e. that it has a site manager associated, right? Aside from the fact that I'm not using ZODB, yes, that's true. But I'd like to explore not having such a rigid hierarchical structure. In particular, I want to support multiple traveral paths to getting to a site manager, ie: objects with multiple parents where the overal registry at any point is made up of the registries traversed through rather than limiting that traversal to be up one containment path. Because then you can easily track down the same registry over and over again. I'm not sure I follow you 100%, but yes, something like that ;-) You could probably even register them as global utilities for easy access (like it's done with other registries, e.g. the ones from z3c.baseregistry). Not sure what you mean... I think it would be easier to turn on/off registrations by using dynamically directly provided interfaces (via a proxy) or use security. Not sure what you mean by either of these... You can change which adapters are found for a particular object by applying marker interfaces. Eww... Yeah, but this is what happens more static-ly with the existing site managers, right? I'm not sure how the ZODB-based registries do caching. I had to stop looking before my head exploded, but it looked like they based their caching on a static containment path and recomputed if the registry was moved. Well okay, one registry per thread... would that work? So you would basically copy the whole global registry to a thread-local variable at the beginning of the request, Well, hopefully we could come up with something a little cleverer than that ;-) then modify it and then throw it away afterwards? Doesn't sound very clever to me... ..but yes, basically modifying a pristine global registry during the traversal (nb: not request, there may be many traversals during a request) and then bin the results when the traversal is garbage collected... I'm trying to get the code working with just a global registry for now, as I think it'd be easier to try and explain what I'm after with some code to show you :-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 6 OK
Summary of messages to the zope-tests list. Period Thu Feb 7 12:00:00 2008 UTC to Fri Feb 8 12:00:00 2008 UTC. There were 6 messages: 6 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Feb 7 21:02:42 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009071.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Feb 7 21:04:13 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009072.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Feb 7 21:05:43 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009073.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Feb 7 21:07:13 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009074.html Subject: OK : Zope-2.11 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Feb 7 21:08:43 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009075.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Feb 7 21:10:13 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009076.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [ZWeb] Re: [Zope] Zope lists in google
Sascha Welter schrieb: (Thu, Feb 07, 2008 at 09:42:20PM +0100) Michael Haubenwallner wrote/schrieb/egrapse: Chris Withers schrieb: Josef Meile wrote: Today I noticed that google doesn't find anything when giving site:mail.zope.org anymore. It worked before :-( Yeah, I noticed this too. It's a real shame. I wonder who did that and why? (file objects have no history tab and the database has been packed to the point where there's no Undo data) I can't think that mail.zope.org has anything to do with a ZODB or is configured from zope.org (Removed the cross posting, dunno what this has to do with zope@) http://mail.zope.org/robots.txt has: User-agent: * Disallow: / Somebody didn't like the bots to roam the archives? I think Chris wanted to see the undo history to find out who made that change. mail.zope.org is the same service as cvs.zope.org (hosting the subversion repository). cvs.zope.org or svn.zope.org feature the same robots.txt restrictions. i get a really bad feeling when i see all of zope mailing history and the code base disappear from public search archives. michael -- http://www.zope.org/Members/d2m http:/planetzope.org ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [ZWeb] Re: [Zope] Zope lists in google
Sascha Welter wrote: I can't think that mail.zope.org has anything to do with a ZODB or is configured from zope.org (Removed the cross posting, dunno what this has to do with zope@) Because the person originally asking the question posted there... (I'm now CC'ing him in directly...) http://mail.zope.org/robots.txt has: User-agent: * Disallow: / Somebody didn't like the bots to roam the archives? I have a feeling someone didn't want bots spanking some web-subversion front end that's running, but the end result is that we loose all Zope code and mailing list archives from Google :-( I think Chris wanted to see the undo history to find out who made that change. Indeed, yes, brain fart, shouldn't have been looking on www.zope.org... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
AW: [ZWeb] Re: [Zope] Zope lists in google
Sascha Welter wrote: I can't think that mail.zope.org has anything to do with a ZODB or is configured from zope.org (Removed the cross posting, dunno what this has to do with zope@) Sorry, I wasn't aware about this list nor that there were a thread already here; the person who cross-posted to [EMAIL PROTECTED], where I originally posted, didn't mention that. Because the person originally asking the question posted there... (I'm now CC'ing him in directly...) Thanks. http://mail.zope.org/robots.txt has: User-agent: * Disallow: / Somebody didn't like the bots to roam the archives? I have a feeling someone didn't want bots spanking some web-subversion front end that's running, but the end result is that we loose all Zope code and mailing list archives from Google :-( Yes, that's really sad. I really don't like gmane searching function :-( and google is my friend ;-) I think Chris wanted to see the undo history to find out who made that change. Indeed, yes, brain fart, shouldn't have been looking on www.zope.org... I guess it doesn't matter who did it. What matters is if it will continue like that or if somebody in zope.org will repair it. Best regards, Josef ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [ZWeb] Re: [Zope] Zope lists in google
Hi, Today I noticed that google doesn't find anything when giving site:mail.zope.org anymore. It worked before :-( Yeah, I noticed this too. It's a real shame. I wonder who did that and why? (file objects have no history tab and the database has been packed to the point where there's no Undo data) I can't think that mail.zope.org has anything to do with a ZODB or is configured from zope.org I guess he is either making fun of me 'cause I did an OT question here or he just replied to the wrong message. Anayway: If you are having trouble using the lists, please contact [EMAIL PROTECTED] Ok, I already wrote them a message. Anyway, I preffer google to search the list :-( ___ 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] python script, from string to dictionary.
[EMAIL PROTECTED] wrote: I 'serialized' mysql data in order to flat one-to-many related tables. the resulting dictionaries (one per record) are i.e. as: mydict [ brandcode ] = { 'itemcode': 'some value', 'itemsizeavail': [ ('XL',), ('XXL',), ('S',) ], 'keythree': '', 'keyfour': [ ], ... } now then I can index the whole content in order to get it searchable from the Plone quick search form. This is more than a little insane... mydict [ ] records are then saved as strings in a DB table records. ?! 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] ZODB Zope 2.8 ZRDB/TM : raise + except: pass
Pelletier Vincent wrote: Hi. I triggered a bad behaviour in Zope 2.8 Transaction class: You might be better off asking about this on [EMAIL PROTECTED] Also, try and make it a bit clearer about what you'd like help with... I did scan this but couldn't actually see any indication of what you wanted help with... 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] ZODB Zope 2.8 ZRDB/TM : raise + except: pass
Hi. I triggered a bad behaviour in Zope 2.8 Transaction class: try: do something commit - raises conflict error from ZODB's tpc_vote except: cleanup raise Here, cleanup uses a transaction-registered connection which is not used before, hence not registered to transaction manager. So that connection tries to register by calling Shared/DC/ZRDB/TM.py:TP._register. Which ends up calling join on a status = Status.COMMITFAILED transaction, which raises TransactionFailedError in _prior_operation_failed. Note that before raising, Transaction.register did adapter.objects.append(obj) The raise is caught in TM._register, which prevents it from setting self._registered = 1 A second use of the connection will cause TM to call Transaction.register again because if not self._registered: evaluates to True. But this time, Transaction.register will not raise, since if adapter is None: now evaluates to False. As it does not raise, TM will set self._registered = 1 So now there is a connection which is set as registered, but which will not be commited nor aborted by transaction. Worse, as TM checks self._registered before registering to transaction, the connection will never be registered again. -- Vincent Pelletier ___ 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] FAQ Interactive, Video Venture Brings TV Quality to Company Videos as Dobson PR and JHD Studio Link
FAQ Interactive, Video Venture Brings TV Quality to Company Videos as Dobson PR and JHD Studio Link http://www.faqinteractive.com/ 1-866-268-5588 New York, NY (PRWEB) November 16, 2006 -- In business, gaining a competitive edge requires getting key business messages across to carefully targeted audiences and presenting a company and its products and ideas in a creative and professional way to set them apart from the competition. A public relations firm, Dobson Communications, and a top flight film studio, JHD Productions, have combined forces with Business Film Studios to bring their combined expertise to businesses who want a competitive edge and effective means to communicate vital messages. With a new website, , the team outlines their approach to bring entertainment quality video with top scale business and marketing writing Brian Dobson, of Dobson Communications, advises companies across a wide range of industries. He said, Effective communication is at the core of successful organizations. How a company communicates creates the perception of its ability to manage assets and deliver products or services that offer both value and quality. From selling products to raising money for a non-profit, message delivery is key. Dobson, who founded a public relations agency, , headed PR at a Fortune 100 having entered PR at the NYSE and was a journalist at Dow Jones (articles in Wall Street Journal) and Reuters (articles in newspapers worldwide), added, An effective video with great scripting and entertainment quality techniques can get across a message in minutes. Whether setting the stage for a quality meeting, or explaining your message clearly when you are not in the room, video is a vital tool for up-to-date management. Dobson also ran all investor and marketing PR at a Fortune 1000. Hugh Daly of JHD Productions, , a studio that has filmed full length motion pictures as well as corporate and marketing videos, teamed with Dobson to bring entertainment expertise to more businesses. Daly said, In movies or videos, time is precious and how the director, photographer and editor use that time affects audience impact. But first, the message has to be on the page, great scripting is vital. Our new venture combines the best of both, so each minute of a brief video gets the message across. Dobson has advised an international array of clients in industries from pharmaceutical and consumer products to financial services and licensing and marketing. Daly is a Director of Photography who has filmed several internationally released movies and is considered a pioneer in video communication. Dobson and Daly have spearheaded marketing communications, video production and other communications, crisis, marketing, financial and other assignments for many top line companies. Their experience includes Pharmaceuticals and Healthcare, Entertainment, Technology, Consumer Products, Financial, Education and Non-Profit, and others including crisis communications and public affairs campaigns. Dobson Communications, or DobsonPR.com, began in 1988 and is based in New York City and Ridgefield, Connecticut, offering full public relations services. Founded in 1982 in Deer Park, New York, JHD Productions, or JHDproductions.com, is a full service film and video production company. As a joint venture, Dobson and Daly founded Business Film Studios, , in 2005 in New York City, to specialize in entertainment-quality production using video to convey company, marketing and training messages. The new venture more closely aligns the talents of the companies. For more information call Brian Dobson at 203-894-9240 or BD@ DobsonPR.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] python script, from string to dictionary.
Dieter Maurer wrote: It is easy to secure eval: globs = {'__builtins__':{}} eval(s, globs, globs) This ensures that eval cannot use any builtin functions -- especially, it cannot import anything. I'm fairly sure this isn't enough - google for the bugs in python's rexec and bastion modules which lead to them being deprecated... 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] python script, from string to dictionary.
Chris Withers wrote at 2008-2-8 11:14 +: Dieter Maurer wrote: It is easy to secure eval: globs = {'__builtins__':{}} eval(s, globs, globs) This ensures that eval cannot use any builtin functions -- especially, it cannot import anything. I'm fairly sure this isn't enough That you are fairly sure is not enough -- unless you show me an exploit - google for the bugs in python's rexec and bastion modules which lead to them being deprecated... I speak only about eval (not exec or rexec nor bastion). In the eval world, you only have expressions. And with the __builtins__ above, you have no builtin functions, no classes, no types -- you have just the literals the parser can recognize: strings, integer, float, None, lists, tuples, dicts, generators and the typical operators on them. You are able to construct huge objects and can cause denial of service. But this is possible even without eval -- 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] When to use a relational database
Tim Nash wrote at 2008-2-7 19:14 -0800: ... Why does storing a single document lead to close to 120 objects being inserted? Almost surely due to full text indexing. -- 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] When to use a relational database
Jaroslav Lukesh wrote at 2008-2-7 22:40 +0100: JAvascript nor CSS cannot be dynamically generated from ZPT. They can be generated by ZPTs -- though it is not very natural. -- 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] When to use a relational database
Tim Nash wrote at 2008-2-7 13:21 -0800: From what I have read online, the things that slow zope down are primarily the numerous security checks In modern Zope versions you can use Zope 3 views. The corresponding templates are trusted. For earlier Zope versions, there is TrustedExecutables (they do not yet work for Zope 2.10). and the large number of objects that need to be written to the zodb when you save a document. I doubt that the large number of objects is the real reason. The large number of objects result from full text indexing: the object is inserted into the document list for each word it contains. However, full text indexing is slow and expensive - independent from the insertion into the document lists. Obtain a profile and check whether this is really true ... Has anyone rated the performance of say DTML vs ZPT? DTML is likely to be faster: it has a C implementation and is simpler than ZPT. I expect a factor of about 4. However, very often the total time is not dominated by the rendering itself but e.g. determining the values that should be rendered. -- 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] Can Zope do this...?
On Feb 7, 2008, at 2:19 PM, Eric Gorr wrote: I need to create a site that works similarly to php.net...the problem is the same - to document a language. From what I've seen, zope is fully capable of doing nearly everything I need it do, but I am uncertain about one aspect...check out: http://us2.php.net/manual/en/function.fopen.php for an example. The aspects of this page that I like are: 1. It is not frame based 2. The left column shows a list of functions in the same category 3. The left column allows one to move up the function tree (i.e. ^Filesystem function, ^Function Reference, etc.) 4. There is static documentation for every function (Description, Parameters, Return Values, etc. - I'm sure zope could handle this part) 5. Users are allowed to comment on the functions Assuming that Zope can do this, how difficult would it be? Can I get some pointers into the Zope documentation for how to accomplish this? Is it worth starting with something like Plone instead of with 'raw' zope? Thank you. Yes, easily. I'd go with raw zope. ___ 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 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 )