[Zope-dev] Last-Minute Gifts on Sale!
Title: Mens Health Daily Dose 12/08/07 These are our lowest prices of the year but they won't last long. So take advantage of these incredible savings now and stock up on all your favorite magazines. SAVE BIG on holiday gifts too with gift subscriptions for everyone on your list family, friends and co-workers. At just $5 these are terrific as main gifts or stocking stuffers. Click here to start shopping now and don't forget to pass this offer along and let everyone know what a great deal you've found. Happy saving! Limited-time offer...Act now! MENS HEALTH FITSCHOOLS This program can reform physical education, end childhood obesity, and save a generation. Does your school need our help? SAVING GENERATION XXL 7 ways to reform Americas physical education and transform kids from fat to fit HOW MICHAEL CORY IS SAVING HIMSELF... AND HIS 1,300 KIDS Cory is the principal at Richard H. Gettys Middle School, in Easley, South Carolina, so all of these kids are his responsibility. Theyre also his motivation for change NOMINATE YOUR SCHOOL Mens Health is looking for one elementary or middle school in need of an overhaul of its physical education program. Nominate your school MENS HEALTH NEWS & ADVICE: Get the worlds greatest fitness, diet, and sex advice delivered to your inbox 3 times a week. ABS DIET NEWSLETTER: The latest scientific research, newest abs exercises, meal plans, success stories and cutting-edge advice for getting a 6-pack and keeping it! BEST LIFE NEWSLETTER: Powerful advice from the top doctors, trainers, brokers, career coaches, relationships experts, and entrepreneurs. Its free, its smart, its useful. Tell a friend Find out more at MensHealth.com Mens Health Personal Trainer - get in shape now! Fitness Sex & Relationships Health Guy Wisdom Weight Loss Nutrition Style Video PRIVACY POLICY|CONTACT US|UNSUBSCRIBE COPYRIGHT RODALE, INC. 2007 33 East Minor Street, Emmaus, PA 18098, Attn: Customer Service ___ 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] Documentation on get_transaction().commit(...)
Where would I find API documentation on get_transaction().commit(...)? I am calling get_transaction().commit(1) at various points in my program and it seems like it's not actually committing those transactions. I'd be grateful on a quick explanation for how this works. I'd like to commit sub-transactions as I go, but I don't want to stop the execution of the script (without the 1, it seems to arrest execution). I do not care about the ability to roll back the transaction. Best, Brian Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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] get_transaction().commit() stops execution
In my custom Zope Product (in python), get_transaction().commit() halts execution (without throwing an exception). Is this the proper behavior? If it is, then how do you commit what you've done so far without halting execution? And, if not, what would cause it to halt execution? Thank you in advance, Brian Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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: [Zope-dev] ZCatalog Key Error question
(types of) indexes are involved in your failing queries? -- Dieter Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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] ZCatalog Key Error question
I have a Zope product that relies heavily on a ZCatalog to search for objects within a folder matching certain criteria. The ZCatalog frequently becomes corrupt, and on searching the catalog, the catalog gives me key errors. I'm trying to figure out what causes the corruption so I can stop doing whatever I am doing to corrupt the ZCatalog. Here are the clues: 1. When I re-index the catalog, everything works fine. Unfortunately, I cannot re-index the catalog very frequently because it takes a long time 2. The objects that are indexed are Citation objects, a class I defined. 3. The Citation class extends CatalogAware (as well as Item,Persistent,Implicit, PropertyManager) 4. Every time I change a citation, I call reindex_object() (on the citation) 5. When I add a citation, I call reindex_object() on the citation immediately. 6. I'm using Zope 2.8.4-final, built from source. 7. I'm using python 2.3.5 Thank you in advance. I can provide more information upon request. Best, Brian Rosenthal Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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] ZODB.POSException.ConflictError on attribute assignment
I'm getting a ZODB.POSException.ConflictError in the following code in a Custom Zope Product, and I'm hoping someone can enlighten me on how to fix it. # nd is a folder with a sub-folder Categories # NDCategory is a custom Zope product I wrote that does not have anything called bogus defined. categories = nd.Categories.objectValues('NDCategory') for cat in categories: cat.bogus = [] Can anyone explain this to me? Thank you in advance, Brian Rosenthal Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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: [Zope-dev] ZODB.POSException.ConflictError on attribute assignment
how many categories are there and how often does this code get executed? It's only one user and within one request where this is happening. I'm using ZEO. There must be something I fundamentally don't understand about how I assign an attribute to an object in the ZODB. If you have any insight nere, I'd appreciate it. Best, Brian On Fri, 01 Sep 2006 09:40:24 +0100, Chris Withers [EMAIL PROTECTED] said: [EMAIL PROTECTED] wrote: I'm getting a ZODB.POSException.ConflictError in the following code in a Custom Zope Product, Google for ConflictError Zope and read, a lot. These are to be expected due to Zope's concurrency model, but if end users are seeing them then your application needs restructuring. # nd is a folder with a sub-folder Categories # NDCategory is a custom Zope product I wrote that does not have anything called bogus defined. categories = nd.Categories.objectValues('NDCategory') for cat in categories: cat.bogus = [] how many categories are there and how often does this code get executed? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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: [Zope-dev] ZCatalog Key Error question
Read or Write conflict errors? I'm getting the Key Error traceback on Reads, but my guess is that the actual error happens sometime before the Key Error, when the ZCatalog itself is corrupted. I am not sure what that is, because it does not generate an error. However, I see the error when I call ZCatalogInstance.Search(...), and only when the Search includes objects that are corrupted in the ZCatalog. Are the objects modified at the same time by other threads? I'm not sure about this. I'm running ZEO, and in general, I think I can cause the error when I am the only user on the system, only issuing one request. However, I'm getting another ConflictError when I try to set an attribute value of a ZODB object during the execution of a script, and I'm told that may be because there is a problem accessing the same object from multiple threads. Is there a good article that you know of that I could find out more about thread-safe programming in ZEO? Best, Brian On Fri, 01 Sep 2006 09:27:41 +0200, Andreas Jung [EMAIL PROTECTED] said: --On 1. September 2006 02:54:26 -0400 [EMAIL PROTECTED] wrote: I have a Zope product that relies heavily on a ZCatalog to search for objects within a folder matching certain criteria. The ZCatalog frequently becomes corrupt, and on searching the catalog, the catalog gives me key errors. I'm trying to figure out what causes the corruption so I can stop doing whatever I am doing to corrupt the ZCatalog. Read or Write conflict errors? Are the objects modified at the same time by other threads? -aj Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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: [Zope-dev] ZCatalog Key Error question
Traceback for my Key Error (Dieter, thank you for alerting me on where to find this): Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 11, in to_javascript - PythonScript at /nephron_links/to_javascript used for /nephron_links/news_dtml - Line 11 Module OFS.DTMLDocument, line 128, in __call__ - DTMLDocument at /nephron_links/news_dtml - URL: http://nephron.org/news_dtml/manage_main - Physical Path: /nephron_links/news_dtml Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_In, line 465, in renderwb Module DocumentTemplate.DT_In, line 747, in sort_sequence Module Products.ZCatalog.Lazy, line 158, in __getitem__ Module Products.ZCatalog.Catalog, line 520, in getScoredResult KeyError: -464571725 On Fri, 1 Sep 2006 19:11:12 +0200, Dieter Maurer [EMAIL PROTECTED] said: [EMAIL PROTECTED] wrote at 2006-9-1 02:54 -0400: I have a Zope product that relies heavily on a ZCatalog to search for objects within a folder matching certain criteria. The ZCatalog frequently becomes corrupt, and on searching the catalog, the catalog gives me key errors. I'm trying to figure out what causes the corruption so I can stop doing whatever I am doing to corrupt the ZCatalog. Here are the clues: You forget to provide us with an essential glue: The complete error information (error type, error value and traceback). You find it in your error_log object (in Zope's Root Folder). -- Dieter Brian Rosenthal General Partner, RoboCommerce, LLC [EMAIL PROTECTED] http://www.robocommerce.com 800-644-7626 ___ 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] strange behavior of VirtualHostMonster
I have a zope-behind-an-apache configuration (OpenBSD 3.4, Zope2.7rc1, python 2.3.3, apache 1.3x). Inside the zope root, there's a folder called 'Instances', and inside this there's my custmo object (eLMS) called 'a': /Instances/a. A beforetraverse hook is registered on 'a'. I configured two access paths to this object in apache: VirtualHost 1.2.3.4:443 RewriteRule ^/(.*) http://127.0.0.1:8003/VirtualHostBase/https/test.server.org:443/Instance s/a/VirtualHostRoot/$1 [L,P] /VirtualHost VirtualHost 1.2.3.4:444 RewriteRule ^/(.*) http://127.0.0.1:8003/VirtualHostBase/https/test.server.org:444/VirtualH ostRoot/$1 [L,P] /VirtualHost (I omitted the irrelevant parts) The first one is the 'main entrance' directly to the 'a' object via https://test.server.org, the other one is a 'service entrance' to the root folder via https://test.server.org:444. Problem: if I try to access anything via the 'main entrance', the beforetraverse hook is called two times. Also I have strange things inside BaseRequest.traverse, like '/' on the path. My question: is the first rewrite rule a valid one? If not, how can I achieve the same results with a valid one? A debug shot from the traverse call: /zope/zopestable/lib/python/ZPublisher/BaseRequest.py(257)traverse() (Pdb) path [u'loginUser', u'usermgrFolder', '/', 'VHM'] = this looks weird to me (Pdb) parents [Application instance at 3cdb9fb0, Folder instance at 3cdcc8f0, eLMS instance at 3cdc5260] (Pdb) request.get_header('PATH_INFO') '/VirtualHostBase/https/test.elms.vanth.org:443/Instances/a/VirtualHostR oot/' Regards, Sandor ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
FW: [Zope-dev] strange behavior of VirtualHostMonster
Okay, I debugged a bit more: [u'loginUser', u'usermgrFolder', '/', 'VHM'] = this looks weird to me It seems it's pretty okay, however the last line in VirtualHostMonster.__bobo_traverse__ says: return parents.pop() # He'll get put back on Of course, the popped item is 'a', that's the one with the beforetraversal hook, so if it's really put back on later, than the hook will run again. I think this is the explanation, but the question remains: how can I avoid the second call to the beforetraverse hook? Regards, Sandor ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 maillist - [EMAIL PROTECTED] 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] REAL WORLD!
¸æÂ𣿠cashfiestaºÍCashsurfersÒ»Ñù²»ÒªÇóµã»÷¹ã¸æ¡£µ«ÓÉÓÚ¹ã¸æ¿Í»§ÊǸù¾Ýµã»÷ÂÊÀ´¸¶¿î¸øËûÃǵģ¬Òò´ËÄúµÄµã»÷»áΪËûÃǹ«Ë¾´øÀ´ÊÕÈ룬ҲͬÑù»áΪÎÒÃÇ×Ô¼ºÌá¸ßÊÕÈë¡£ËùÒÔÎÒÍƼö´ó¼Ò»¹ÊǶà¶àµã»÷¡£ 6. ÎҵĹã¸æÌõÎÞ·¨ÏÔʾСÈË£¨»òÕß¹ã¸æÌõ͸Ã÷£©Ôõô°ì£¿ cashfiestaµÚÒ»´ÎÖ´ÐÐʱ»áÏÂÔØÆäËûËĸö¸¨ÖúÎļþ¡£ÒòΪ½Ï´ó£¬µ±ÍøËÙÌ«Âý»ò³öÏÖÎÊÌâÊÇ»áûÏÂÔØÍêÈ«£¬µ«ÈÔ¿ÉÔËÐУ¬¾Í»á³öÏÖÉÏÃæµÄÇé¿ö£¬ÇëÍêȫɾ³ýcashfiestaÖØÐÂÔËÐм´¿É½â¾ö¡£ 7. ËùνÀëÏßÒ²¼ÓµãÊÇÔõô»ØÊ£¿ cashfiesta¹ã¸æÌõÓÐÒ»¸öºÜ´óµÄÌص㣬¾ÍÊÇËüµÄ¼Æµã·½Ê½Óë±ðµÄ¹«Ë¾¹ã¸æÌõ²»Ò»Ñù¡£´ó¶àÊý¹«Ë¾µÄÌõÊÇ10-20Ãë·¢Ò»´ÎÐźŸø·þÎñÆ÷£¬µ«cashfiestaÊÇ14-15·ÖÖÓ¼ÇÒ»´ÎµãµÄ¡£ÔÚÕâ¸öÖÜÆÚÄÚ£¬Äú¾ÍÊǶÏÏßÈ»ºóÔÙÁ¬ÉÏ£¬Ò²Í¬Ñù¿ÉÒԼӵ㡣ËùÒÔÓÐЩÈË»á˵¹ã¸æÌõÀëÏßÒ²¼ÓµãµÄ¡£ÆäʵÀëÏß¼ÓµãÊDz»Ì«ÏÖʵµÄ£¬ÎÒÏëûÓÐÈËΪÁËÕâ¸ö15·ÖÖÓ¿ª¹ØÒ»´Îè°É£¿ 8. ÎÒ´ò¿ª¹ã¸æÌõʱ³öÏÖ¡°Cashfiesta cannot detect your default browser¡±ÊÇʲôÒâ˼£¿ ËüûÕÒµ½ÄúµÄĬÈÏä¯ÀÀÆ÷£¨ÒªÇóIe 4.0»òÒÔÉÏ£©¡£µ«ÎÞ°ÓÚÄúʹÓùã¸æÌõ¼Óµã£¬Ö»ÊÇÔÚµã»÷¹ã¸æÌõʱÎÞ·¨´ò¿ªÐ´°¿Ú¡£ 9. ΪºÎÎÒ´ò¿ª¹ã¸æÌõʱ»òµÇ¼ʱ˵ÎÒÕ˺ÅÃÜÂë´íÎó£¿ÄѵÀÎÒ±»·âÁËÕ˺ţ¿ ²»Óõ£ÐÄ£¬µ±cashfiesta·þÎñÆ÷ÖжÏʱËü¾Í»áÕâÑùÏÔʾ¡£·þÎñÆ÷»Ö¸´ºó¾Í»áÕý³£¡£ 10. Èç¹ûÎÒÍüÁË×Ô¼ºµÄÃÜÂëÔõô°ì£¿ ÊäÈëÄúµÄÕ˺źÍÐÅÏ䣬Äú»áÊÕµ½Ò»·â°üº¬ÄúµÄÕ˺źÍÃÜÂëµÄÐÅ¡£ ´ó¼ÒÊÕµ½ÃÀԪ֧Ʊºó£¬¿ÉÒÔµ½µ±µØÏؼ¶ÒÔÉÏÖйúÒøÐÐÉêÇë֧ƱÍÐÊÕ£¬ÊÖÐø·ÑÊÇ֧ƱÃæ¶îµÄ0.7%£¬ÒøÐлáÒªÇóÄ㿪¸öÃÀÔªÕÊ»§£¬ÄãÒ»¸öÔÂÒÔºó¿ÉÒÔµ½ÒøÐвéѯǮÊÇ·ñµ½ÕÊ£¬Èç¹ûµ½ÕÊÁË£¬ÃÀÔªÄã¾Í¿ÉÒÔ×ÔÓÉÖ§ÅäÁË¡£ Èç¹û´ó¼ÒÓÐÈκκõÄ׬ǮÍøÕ¾½éÉÜ£¬ÎÒÒ²»á³ÉΪÄãÃǵÄÏÂÏß¡£Çë´ó¼Ò¶à¶à°ïæµã»÷ÒÔÏÂÍøÖ·Ö±½Ó½øÈë×¢²áÒ³Ãæ¡£³ÉΪ»áÔ±»áÂíÉÏ¿ÉÒÔ׬ÃÀ½ð¡£ http://www.cashfiesta.com/php/join.php?ref=cblxzy ×îºó×£Ô¸ÔÚ´ó¼ÒÐÄÏëʳɣ¬ÔçÈÕÄõ½ÃÎÃÂÒÔÇóµÄÃÀ½ðÀ²£¡ÎÒ×£´ó¼Ò³É¹¦£¡³É¹¦Á˼ÇסҪºÍÎÒ·ÖÏíÓ´£¡£¡£¡ Ö»ÊÇ°´ÓÎÏ·¹æÔò£¬ÍƼöÈËÒª6¸ö±»ÍƼöÕ߲ſÉÒԵõ½±¨³ê£¬Ð»Ð»Ä㣡£© ÏÂÃæÒª×öµÄ¾ÍÊÇÐû´«ÁË£ÍƼö½éÉÜ£ºÄã¿ÉÒÔÏòÄãµÄÇ×ÅóºÃÓÑÍƼö½éÉܼÓÈ룬Ҳ¿ÉÒÔÔÚÍøÉÏÂÛ̳¡¢ÁÄÌìʱ½øÐÐÍƼö£¬ÍƼö¼ÓÈëÈËÔ½¶à׬ǮԽ¶àÂ Èç¹ûÄã¾õµÃÉÏÃæ½éÉܵÄÐû´«·½·¨Ì«Âý£¬Ò²¿ÉÒÔÏòÎÒÒ»Ñù¡£ÔÚÏÂÃæµÄµØÖ·ÏÂÔØÒ»¸ö×Ô¶¯ËÑË÷ÓʼþµØÖ·²¢×Ô¶¯·¢Ë͵ÄÈí¼þ£¬Ëüÿ·ÖÖÓ¿ÉÒÔΪÄã·¢ËÍ1000·âÓʼþ£¬ http://www.yesgoal.com/finder/eaf.zip ÓÉÓÚÕâ¸öÈí¼þÊÇδע²á°æ±¾£¬Äã±ØÐë´ÓÏÂÃæµÄµØÖ·ÏÂÔØËüµÄ×¢²á»ú£¬ÓÃËüÀ´×¢²áÉÏÃæµÄÕâ¸öÈí¼þ£¬ http://winzheng.jsol.net/0111/o-eafr17.zip ÕâÑù£¬²»ÓÃ3Ì죬Äã½éÉܼÓÈëµÄÈ˾ͻᳬ¹ý100£¬¶øÄãµÄÊÕÈëÂ²»ÓÃÎÒ˵£¬ÄãÒ²»áÖªµÀ£¡£¡ I found a great new Internet company - Cashfiesta.com that has created a product that everyone can benefit from. They pay you while you work or play on your computer. They even pay you when your friends are using their computers. It's free to join and your privacy is completely protected. Their proprietary software - the FiestaBar - displays ads at the bottom or top of your computer screen. Since advertisers want you to view these ads, they pay Cashfiesta to reach you via The FiestaBar and then Cashfiesta shares its advertising revenues with you. Members who use the FiestaBar are paid for their own Web browsing and for referrals. All you have to do is sign up and start making money. It only takes a minute. You can refer your friends, family and co-workers and you will receive a percentage of their earnings in addition to your own. So here is the link, enjoy and happy money making to all of you. http://www.cashfiesta.com/php/join.php?ref=cblxzy Check it out! --- Ææ¼£ÔÚÏß=³É¹¦Ñ§£¬ÍøÂçÓªÏú,³¬¼¶¿áµç×ÓÊé. ±¾ÐżþÓÉSJM¼«ËÙȺ·¢http://www.seekit-online.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 )