[Zope-dev] Problems with EMarket
Hi, I'm discovering the EMarket Product and test it to with it in our Firm. I'm working with Zope 2.2.0 and i have 2 problems. First I added a MarketItemsFolder to MarketItems then a added 2 MarketItems in the MarketItemsFolder but none of the 2 MarketItems shows on the website. The Items are enabled and have a quantity of 500. When i check the option sell as auction nothing happens. Whats the problem ? Second when i try to sign in the after i submit the siginform i get a http-authentication request and no login works with it. Whats the problem ? I'm searching for everything in the source but i don't find anything please help thanks as ___ 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] RFC: page contracts
Petru Paler wrote: Hi eveyone. While playing around with the development version of ACS (ArsDigita Community System), I noticed a very nice feature they introduced, namely page contracts. I've been working with the ACS quite a bit lately (day-job:). its a nice a system that offers a lot utility functions that would be nice to see ported over to zope. most of its value lies in its data models. zope and the acs have vastly different semantic models. i honestly see a lot of the acs work as hacks around some of the problems of the programming paradigms enforced by aolserver, that have little meaning in a system as expressive and customizable as zopes(object publishing v. page publishing sql apps). with regards to the page_contract. IMO its def. useful from the standpoint of documentation and error checking for your variables. implementing this as a folder of utility methods and simply calling them from any doc that acquires from them, passing in the request and optional args (props of doc?a nd this()?), achieves the needed effect without much effort, and offering quite a bit by way of customization. its also possible to do this as a python mixin class for objects. but it would require a alot more work to do it transparently to the developer. Kapil In ACS, this means that every tcl page starts with a call to ad_page_contract. In the parameters passed, you specify: - general page documentation (what it does) - author(s) - creation date (not needed for Zope since we have bobobase_modification_time) - CVS ID (not quite applicable for Zope (yet?)) - the expected input variables (from forms) along with their default values (where applicable) and types (having a couple of types like "integer" and "string" predefined and an easy-to-use plugin system to add custom types) - an optional validation block in which you can check the input data ranges and validity (you can also make validation rules depend on each other so if one fails, the rules which depend on it aren't tried) - an optional custom error messages section (to use when one of the required input variables is not there or does not match the format, or when a validation block fails). If you don't provide this some reasonable defaults are provided. IMHO, such a feature would be very useful for Zope too. I find myself quite often doing input validation and error handling in DTML, which is (to say the least) painful. I would be interested to give a try at implementing this, but before starting I wanted to hear community's opinion on: - whether this would be useful - how this should be aproached (the two possibilities I have in mind until now are either a separate manage tab for the page contract, and there a HTML-based interface for building it, either a dtml-contract tag which surrounds the page contract (written in python probably) and placed at the top of DTML documents/methods). -- Petru Paler, mailto:[EMAIL PROTECTED] http://www.ppetru.net - ICQ: 41817235 ___ 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] New version of PortalMembership likely coming within 24 hours
If you said you had patches for me, now is the time. I have some fairly significant improvements and fixes ready (missing a deluser function at the moment, can't even find delItem in my tree anywhere...) (I've been working at it for the last 5 hours straight, my brain is a bit too fizzeled to remember who had patches for me) Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] Problems with EMarket
On Thu, 31 Aug 2000, Andre Schubert wrote: I'm discovering the EMarket Product and test it to with it in our Firm. I'm working with Zope 2.2.0 and i have 2 problems. EMarket is not yet 2.2-safe, as Steve mentioned. If you come up with bug fixes, let us know grin. That said, I don't have any problem adding MarketItems in 2.2, or signing in. I don't *think* I hacked anything to get me to that point, but I could be misremembering as it was about a month ago I last had time to work on it. I did fix a little bug in the previous verison of EMarket that kept items from appearing after you added them, but that fix should be in the current version. I have not played with the auction support, so I can't speak to that at all. The login problem might be a result of permissions on the eMarketMailHost object; this needs to be usable ('use mailhost services') by Anonymous for registration to work. I have a feeling that that's not it, though, since if it were, logging in as a manager would probably have allowed it to complete the transaction. If giving anonymous 'use mailhost services' doesn't fix it, then when you get the page with an authorization error, do a view source and see what object it is that you don't have authorization to access. Where I'm running into problems with 2.2 is viewing the shopping cart. I haven't figured out how to get zope to let me grant permission to view 'basket' objects, which are objects stored in a property on a 'shopper'. Unless the meeting with our client tomorrow goes differently than I expect, I will be working on EMarket again this month. If that happens, I'll coordinate with Steve and maybe we can produce some sort of interim release that at least plays nice with 2.2. Since I don't yet know the client's requirements, though, I can't promise that. --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 )
Re: [Zope-dev] New version of BTreeFolder
On Mon, 28 Aug 2000 20:41:05 -0700, Kapil Thangavelu [EMAIL PROTECTED] wrote: i ran some basic tests comparing a btree folder against a folder. i'm not sure about my testing methodology but here are the results. the test code is at the end of this email. Im not sure this benchmark is measuring the things that a BTreeFolder should excel at One advantage of a BTreeFolder is that you can access *one* if its contained items without having to load *all* of the others. All of your tests iterate through the whole content. Secondly, it should be possible to add two items simultaneously without causing a conflict, however your creation test has no concurrency. Toby Dickenson [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] Re: ANNOUNCE: Zope 2.2.1 released - breaks my zclass instances too.
I'm absolutely sure that NONE of the things which were broken in the original Data.fs had the slightest/faintest connection with any of the products I expunged. It was removing the cruft alone which fixed the problem. Doesn't this (and the other episode reported by Andy) raise the issue of what we can do to ensure that a broken product or piece of a product doesn't stop a healthy product and its instances (completely independent in the sense of not using any of the broken product's base classes or classes) from working? I havent been able to reproduce Andy's issue yet either (though we're working to figure it out). At this point the only common thread seems to be "nested ZClasses", though it is apparently not as simple as that. Anyone seeing this problem who can provide me with a zipped up Data.fs and a _complete_ description of what (Python) products are installed in the affected installation would help greatly in being able to reproduce the problem... Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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 )
[Zope-dev] ZPatterns 0.4.2a1 released
Mostly bugfixes and internal reorganizations, some very minor feature additions. This thing is finally beginning to stabilize a bit. Wish me luck on getting some time to document SkinScript... :) Meanwhile, my department is about to embark on a significant production product using ZPatterns, and I hope to funnel some of its design and/or code out as a ZPatterns example. Wish me luck on that, too. Anyway, 0.4.2a1 can be found in its usual place at: http://www.zope.org/Members/pje/ZPatterns/ ___ 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] ANNOUNCE: OracleStorage 1.0.0 beta 1
The initial beta release of an Oracle-based storage for ZODB is available at: http://www.zope.org/Products/OracleStorage The Oracle storage provides full ZODB storage capabilities, including undo and versions, by storing serialized objects and meta data in Oracle tables. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! Technical Director (888) 344-4332http://www.python.org Digital Creationshttp://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Re: ANNOUNCE: OracleStorage 1.0.0 beta 1
Jim Fulton wrote: The initial beta release of an Oracle-based storage for ZODB is available at: http://www.zope.org/Products/OracleStorage The Oracle storage provides full ZODB storage capabilities, including undo and versions, by storing serialized objects and meta data in Oracle tables. Chris McDonough pointed out that I had left some specific table names in some SQL statements rather than using "prefix" specific names. This would lead to pack failures (unless you chose the prefix "jim_" foy your Oracle objects. :) Thanks Chris. I've fixed this and made beta 2 available at the location above. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! Technical Director (888) 344-4332http://www.python.org Digital Creationshttp://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] MailHost, 2.2.1, and tracebacks
OK, I've bee trailing this bug for quite some time, and haven't found a solution other than not use 2.2.1 :( In PortalMembership's acl_users folder's MailPassword Process ... We have mailPasswordTemplate. == dtml-var standard_html_header dtml-call "REQUEST.set('MailHost', MailHost)" dtml-sendmail mailhost="MailHost" From: "dtml-email_from_name;" dtml-email_from_address To: dtml-var email Subject: Membership reminder Your password: dtml-var password Request made by IP dtml-var "REQUEST.REMOTE_ADDR" at dtml-var ZopeTime /dtml-sendmail pYour password has been mailed. It should arrive in your mailbox momentarily./p dtml-var standard_html_footer = And when called via the mailPassword method I get: === Traceback (innermost last): File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 187, in publish File /local/ZopeSites/TestBed/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Transactional) File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 171, in publish File /local/ZopeSites/TestBed/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: mailPassword) File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: mailPassword) File /local/ZopeSites/TestBed/lib/python/Products/PythonMethod/PythonMethod.py, line 168, in __call__ (Object: mailPassword) (Info: ((LoginManager instance at 8689058, 'Bill2',#Isnippedformcontents#), {}, None)) File string, line 10, in mailPassword (Object: Transactional) File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: mailPasswordTemplate) File /local/ZopeSites/TestBed/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: mailPasswordTemplate) File /local/ZopeSites/TestBed/lib/python/Products/MailHost/SendMailTag.py, line 182, in render (Object: MailHost) File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 194, in validate (Object: mailPasswordTemplate) File /local/ZopeSites/TestBed/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /local/ZopeSites/TestBed/lib/python/AccessControl/ZopeSecurityPolicy.py, line 178, in validate File /local/ZopeSites/TestBed/lib/python/AccessControl/Owned.py, line 152, in getOwner (Object: mailPasswordTemplate) ValueError: (see above) === The exact same code (copy-paste, also prior product) works under 2.2.0. Also, for some reason, I have to have a MailHost in the acl_users folder, and that shouldn't be...I have one in root. Grumpily, Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] _setObject error - urgent!
Hi, I think I have traced my error with cut and paste, I am getting an error on _setObject. If the object is not registered with Zope properly this will be a problem. Basic synopsis: Im importing an object from a script so Im getting a handle to the folder I would like the object to be in: this is obj. Then I call add and set object: obj._setObject(id, globals()[doctype](id, m)) This rather unusual syntax allows me to use a constructor for man different objects. The type is specified in 'doctype', I then get this error: 2000-08-31T16:56:57 PROBLEM(100) ASPNDoc Error: [exceptions.NameError: cat] Any ideas? Thanks in advance ___ 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 )