Re: [Zope] Zope PTK Wizard
"Priya Ramkumar" <[EMAIL PROTECTED]> wrote: > I am trying to create a wizard in my portal to enable users to store > information. In addition to the features of the already existing Document > Wizard, I would like my Wizard to have more features like information about > the category of the document, etc. I created a file called "Userdocument.py" > with a method "addUserdocument" which will be called to add a new document. > I have also added the new entry to the PTKBases & PTKDemos __init__.py. But > as soon as Zope starts, it gives this error > > > 2001-01-25T06:07:07 ERROR(200) Zope Couldn't import Products.PTKDemo > Traceback (innermost last): > File /export/usr/local/Zope-2.2.4-src/lib/python/OFS/Application.py, line > 397, > in import_products > (Object: string) > File > "/export/usr/local/Zope-2.2.4-src/lib/python/Products/PTKDemo/__init__.py > ", line 159 > PTKBase.Userdocument = Userdocument > ^ > SyntaxError: invalid token > > Could anyone please tell me how to create custom wizards and to register > them? Priya, First, the PTK has its own mailing list, [EMAIL PROTECTED]; you are much likelier to get useful and timely advice there about PTK-specific issues. Second, I don't think the region of code in which you have injected that line needs it; it exists solely to provide backward-compatibility with portals created before version 0.8 of the PTK. Third, I can't see anything about your code which woudl trigger a syntax error; typically, in this case, the real error would be a line or two ahead (opening but not closing a parenthesis, omitting a comma, etc. Fourth, you would typically add a new content class in a separate product, either on the filesystem or in a "through-the-web" ZClass product; mixing your stuff with PTKBase/PTKDemo means you will be forced to deal with lots of merge conflicts (and these days, I mean *LOTS*). I would recommend creating a new CVS sandbox, as described in my "State of the PTK" message today: http://lists.zope.org/pipermail/zope-ptk/2001-January/002258.html Then, move your 'Userdocument' module into a new Product, a "sibling" of PTKBase and PTKDemo. Register it just as 'PTKDemo.Document' is registered, and create a Wizard for it by cloning the Document wizard and "filing off the serial numbers". Hope that helps, Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope PTK Wizard
Hi I am trying to create a wizard in my portal to enable users to store information. In addition to the features of the already existing Document Wizard, I would like my Wizard to have more features like information about the category of the document, etc. I created a file called "Userdocument.py" with a method "addUserdocument" which will be called to add a new document. I have also added the new entry to the PTKBases & PTKDemos __init__.py. But as soon as Zope starts, it gives this error 2001-01-25T06:07:07 ERROR(200) Zope Couldn't import Products.PTKDemo Traceback (innermost last): File /export/usr/local/Zope-2.2.4-src/lib/python/OFS/Application.py, line 397, in import_products (Object: string) File "/export/usr/local/Zope-2.2.4-src/lib/python/Products/PTKDemo/__init__.py ", line 159 PTKBase.Userdocument = Userdocument ^ SyntaxError: invalid token Could anyone please tell me how to create custom wizards and to register them? Thanks. Priya ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-PTK] Example activity-explicit workflow system
I am very interested in a general, fairly full featured workflow system on top of Zope as opposed to using an external workflow product for a fundamental reason. While one could come up with a way of getting what I need with an external system, it would be messy. I need workflows to be explicit and versioned. We make use of ZODB to version content that end users generate. We don't make use of Zope's versioning but use or own hierarchical version tree which is easy to do in Zope. End users generate new workflows and revisit past workflows. The user sees this versioning as notebook pages using a scientific notebook metaphor. It is much cleaner to use ZODB and ZPublisher to do all this instead of having a version tree in Zope and a bunch of correspondences to outside objects in an external workflow system. Thus, there is a lot of value in having a fairly general workflow system whose representation and publishing uses ZODB and ZPublisher. By the way, if there are other folks interested in such a workflow system let me know. We may just bite the bullet and build one. I have who will do most of the coding in mind. What will be produced is a Zope-based workflow system with a java thin client visual workflow/dataflow editor. Right now I do not have the funding but folks with resources could speak now ;-). Regards, Albert Boulanger CTO vPatch Technologies [EMAIL PROTECTED] http://www.vpatch.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-PTK] mynetscape-like product
On Tuesday 26 December 2000 21:53, albert boulanger wrote: > Dose anyone have a product or modification to the user's page in the > PTK to behave like the user customizable layout you get at sites like > mynetscape.com? This would work with RSS and OCS syndication sources > (as well as others). We at iuveno have something like that from a recent project, but it is not ready for prime time yet. The basic page layout works, but RSS-integration and customization forms are still missing. Keep asking us! Joachim. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZOPE PTK
Hey everyone I am tring to istall the Portal Toolkit The following is the known bug in the PTK's documentation == Known Bugs There is something screwy going on with some of the DemoPortal's ZClasses. The PortalWizard will sometimes appear 'Broken' immediately after installing PortalWizard. Sometimes simply clicking on the 'Contents' view of the 'DemoPortal' product two or three times will solve this, though usually an additional restart is required. == The solution does not seem to be working for me. I have a older version running at home. But I can't get this version install here at work. the error I get is === Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __call__ === Any suggestions? Mohan. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK
Nuno Goncalves <[EMAIL PROTECTED]> wrote: > Hi there ! > I'm trying to use ptk to build a portal in zope ! > Does anyone knows how to add a design scheme ? > initialy it shows onle the generic Portal interface. I wonder > if it is possible to build my own design scheme and how to add one! First, the ZopePTK mailinglist ([EMAIL PROTECTED], see the list info page at http://lists.zope.org/mailman/listinfo/zope-ptk) is the best place for PTK-specific questions. With regard to your question, you have several options: * Edit/replace the DTML which is copied into your portal instance at creation time. This option is the simplest one, but makes accomodating changes to the underlying PTK software (i.e., when we release a new version) somewhat difficult. It also does not allow you to replace DTML methods which are defined in the DemoPortal.Portal ZClass itself (rather than being copied in). If you follow this path, and end up replacing most or all of the DTML (and style sheets, Wizards, etc.), consider copying these files out to a separate folder, exporting it, and uploading it as a new, alternate "interface" (I'll gladly fold in new, complete interfaces). * Create a new ZClass in your own product, deriving from the DemoPortal.Product class. Override only the methods you need to; the others will be inherited. Create any additional methods you need to give the portal your chosen look-and-feel. * Create a new Portal-derivative in your own filesystem product. This option requires a fair amount of tedious work (DTML on the filesystem requires somewhat more effort to create/tweak than DTML in the ZODB). We understand the difficulties these options present, and are actively working on a more satisfactory solution. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK
Hi there ! I'm trying to use ptk to build a portal in zope ! Does anyone knows how to add a design scheme ? initialy it shows onle the generic Portal interface. I wonder if it is possible to build my own design scheme and how to add one ! thanks in advance, Best regards, Nuno __ Nuno Gonçalves [EMAIL PROTECTED] Fundação para a Computação Cientifíca Nacional http://www.fccn.pt TEL: +351-218440127 __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK won't let me add objects
Hi, I'm working on a site based on the PTK DemoPortal. PTK is a great product, so I was happy to see a new release announced recently and took the opportunity (yesterday) to update my PTK installation from CVS. Well, now the Zope management interface won't let me add anything inside the Portal except Document, Link, News Item, Portal File, Portal Folder, and Portal Image. I'm NOT talking about the Portal interface - just the plain old Zope "Available Objects" button. Was this done on purpose? If so, why on earth would you want to prevent anyone from adding so much as a humble DTML method?? We're not talking about the end-user interface here. For now I'm going to revert to an old version of PTK, bugfixes be damned. I can't get any work done in this version. -- .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK good for MyNetscape-style read-only personalised portals?
I'm looking to put together a portal site where members can choose from various content sources and personalise the layout but wouldn't be authoring content, similar to sites like MyNetscape and MyYahoo. Is the PTK good for this? Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ExtensionClass peculiarity(was: [Zope-PTK] Multiple Inheritance and the Portal Base classes.) (was: [Zope-PTK] Multiple Inheritance and the Portal Base classes.)
Steinar Rune Eriksen writes: > In other Python programs, calling Parent.__init__(self) works fine, but when > running through Zope in this context > > Error Type: TypeError > Error Value: unbound method must be called with class instance 1st argument Have a look at the "ExtensionClass" documentation (-> zope.org). ExtensionClass is not completely compatible with Python: if a class "C" inherits from an extension class "E" and from a normal Python class "P", then Python does not recognize "C" as a subclass from "P". The mentioned documentation tells you, that there is a method "InheritedAttribute" to work around this problem. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: [Zope-PTK] Apache + Zserver + SiteAccess + Search portal iconis not appearing is not appearing
Hi all, The portal icon does not appear when I am using the ptk with apache + zserver + siteaccess2. I find it there for all things which I have imported by using .zexp. I have used the How-To on integrating zserver + Apache ...using the virtual host. #ServerAdmin [EMAIL PROTECTED] #DocumentRoot /www/docs/host.some_domain.com #ServerName host.some_domain.com #ErrorLog logs/host.some_domain.com-error_log #CustomLog logs/host.some_domain.com-access_log common ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPass /misc_ http://192.168.81.132:8081/misc_ ProxyPass /p_ http://192.168.81.132:8081/p_ How do I go abt solving the issue. -neeloy -Original Message- From: Tres Seaver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 7:08 PM To: neeloy_saha Cc: [EMAIL PROTECTED] Subject: RE: [Zope-PTK] Apache + Zserver + SiteAccess + Search results fro m the catalog On Wed, 27 Sep 2000, neeloy_saha wrote: > Hi tres, > > I used a very ugly approach to fix that.well it works.. > > / > > I had many problems while installing PTK. I started one month back on zope. > frankly speaking the instructions for the installation that was there for > the PTK never seemed to work for me... I tried many versions and got this > configuration to work for me.At least I do not get an attribute error. I am > working on Win NT sp6 > > I am having another problem all the things that have been imported as > .zexp files... there icons are not visible and they point to > http://192.168.81.132/Control_Panel/Products/DemoPortal/Portal/ziconImage > > How do I go abt that??? First, please post such questions to the PTK list, rather than directly to me -- you'll get the benefit of everyone's knowledge that way. I can't reproduce the symptom you describe on my box: * Fresh Zope 2.2.2. install * CVS checkout of the PTK:: cvs -d :pserver:[EMAIL PROTECTED] co ZopePTK * Symlink ZCallable, PTKBase, and PTKDemo into my Products directory:: cd ~/Zope2/lib/python/Products ln -s ~/ZopePTK/ZCallable . ln -s ~/ZopePTK/PTKBase . ln -s ~/ZopePTK/PTKDemo . * Symlink Wizard.zexp and Demo.zexp into my import directory: cd ~/Zope2/import ln -s ../lib/python/Products/PTKDemo/Wizard.zexp . ln -s ../lib/python/Products/PTKDemo/PTKDemo.zexp . * (Re)start Zope. Notice that ZCallable, PTKBase, and PTKDemo have initialized cleanly (no "broken product" icons). * In Control_Panel/Products, import the ZClass products, 'Wizard.zexp' and 'DemoPortal.zexp'. Again, note no broken objects (if the PortalWizard object in DemoPortal looks broken, restart Zope and log it as a bug in the PTK tracker). * Create a test portal, using the wizard. Note that the portal object has a real "door" icon. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-PTK] Apache + Zserver + SiteAccess + Search results from thecatalogcatalog
neeloy_saha wrote: > > Hi all, > > The href generated for my search results is not resulting in right Links as > a result I am getting the 404 error. > > ** I have followed the "HOW-TO : Using Apache with Zserver(Not Zope.cgi)" > and implemented a complete virtual host:(second example) > > > #ServerAdmin [EMAIL PROTECTED] > #DocumentRoot /www/docs/host.some_domain.com > #ServerName host.some_domain.com > #ErrorLog logs/host.some_domain.com-error_log > #CustomLog logs/host.some_domain.com-access_log common > ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 > ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 > ProxyPass /misc_ http://192.168.81.132:8081/misc_ > ProxyPass /p_ http://192.168.81.132:8081/p_ > > > ** Installed a siteaccess root and in the base of the portal > folder(WebRadar3.0) ,gave the base as >base : http://192.168.81.132/webradar >path : / > > ** everything seems to be working fineBUT the results from the search > has gone astray. >http://192.168.81.132/webradar/Members/pankaj_malhotra/readme.html - I > need this >http://192.168.81.132/WebRadar3.0/Members/pankaj_malhotra/readme.html - I > am getting this >[ WebRadar3.0 is the name of my portal ] > > ** I have seen the "HOW-TO Mix Zcatalog/Zsearch with apache with apache. I > am getting the following > result. > > > xxx > > >I am getting this : http://webradar3.0/Members/neeloy_saha/dfsdf > > Please help. You are using a *very* old version of the PTK (the 'SiteIndex' is a giveaway); try upgrading to the CVS version, or wait to the end of the week for us to release a new tarball. You will then be able to spell your link as:: If that doesn't help, something uglier is going to be needed. I believe we already have Collector issues on funny interactions between SiteRoot-style virtual hosting and the catalog; try a collector search to see what turns up: http://classic.zope.org:8080/Collector Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-PTK] Cannot import DemoPortal.zexp
Bet you can't import Wizard.zexp either and the traceback shows the identical pickled data. I'm battling a very similar problem and so far I think it's subtle corruption of the ZODB having to do with ZDiscussion. Note that the pickled data contains references to ZDiscussion. The pickled data in my traceback also contains references to ZDiscussion, although it's a different oid (\023w) and, therefore, record. There're no ZDiscussion records in DemoPortal.zexp or Wizard.zexp. At one point, after the nth time removing and reinstalling ZDBase, etal; DemoPortal and Wizard appeared *without me importing them*. I removed and reinstalled everything one more time (bad move!). DP and W disappeared and now import gives Duplicate Class Id. I think your import actually worked, but ran over somehow and crashed before the prodcuts could be registered. I'm in the midst of analyzing my Data.fs. Fsrecover doesn't find any problems. Tranalyzer has a couple of bugs with versions that I'm working through. I'll let you know. Bill. On Fri, 22 Sep 2000 [EMAIL PROTECTED] wrote to zope-PTK: > File /usr/local/zope/lib/python/ZODB/Connection.py, line 154, in __getitem__ > (Info: ('\000\000\000\000\000\000\034\315', > >'(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\004cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl_Panel/Products/ZDiscussion > >s/ZDTopic/propertysheets/methods/ZDItem%20/ziconImageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions > >Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_typeq\017U\021ZDiscussions > >Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\034\320q\022(NU\010\000\000\000\000\000\000\034\314q\023Qtq\024tq\025QU\012index_htmlq\026cZClasses.Method\012MW\012q\027NRq\030}q\031U$_ZClassMethodPermissionMapperMethod_q\032(U\010\000\000 > >\000\000\000\000\034\321q\033(U\016OFS.DTMLMethodq\034cOFS.DTMLMethod\012DTMLMethod\012q\035tq\036tq\037QsbU\016manage_optionsq > >(}q!(U\005labelq"U\012Propertiesq#U\006actionq$U\025manage_propertiesFormq%u}q&am! > ! > >p;(U\005labelq\'U\010Securityq(U\006actionq)U\015manage_accessq*u}q+(h\'U\004Viewq,h)U\012index_htmlq-utq.U\012ziconImageq/(U\010\000\000\000\000\000\000\034\322q0(U\011OFS.Imageq1cOFS.Image\012Image\012q2tq3tq4QU\022__ac_permissions__q5)U\011_p_serialq6U > >\010\0030\226a\274;\204\314q7U\012__module__q8U\031*73biqpAI2QDa2iKPitv57g==q9utq:t.N.')) > Could not load oid Í, pickled data in traceback info may contain > clues: (see above) > > --> ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK, INTSANCE_HOME
Richard Moon wrote: > Agree completely. I was very disappointed when saw the latest release of > the PTK needs a compilation of a C program. That's a real backward step. That's not or shouldn't be the case. By 'C program', I presume you mean the dynpersist module requried my LoginManager: 1. LoginManager, AFAIK, is now optional for the PTK. 2. ZPatterns, and hence LoginManager, will no longer need this in the near future. It was only actually needed for Zope 2.1.x compatability, IIUC. That said, Zope could do with a decent product installation management system. There's a proposal for this on dev.zope.org, though :-) > There's also differences in tarballs creeping in - there's one product (is > it SQL Session) which you have to put in the /Products directory under Zope > while others you unpack at the top level Zope directory. This is the 'new' way of doing things that works with INSTANCE_HOME installations. SiteAccess 2 and Squishdot 0.7.2+ are also packaged like this. cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FW: [Zope-PTK] Date Question
Scott Burton wrote: > > This is the correct list :) > > -- > From: Scott Burton <[EMAIL PROTECTED]> > Date: Tue, 19 Sep 2000 14:27:46 -0700 > To: <[EMAIL PROTECTED]> > Subject: [Zope-PTK] Date Question > > OK, I have searched everywhere for the answer to this. It is quite simple > but I can't seem to figure it out. All I want to do is iterate over > cataloged objects() and only > show items who's bobobase_modification_date matches today's date. > > I just can't figure out how to set the fmt="%d" in an if tag. You shouldn't have to. If Zope's DateTime has the today method, you culd do: &dtml-title; was modified today. hmmm ... lemme see if it does ... nope. Well, it works in python. The other day (at a machine I don't have access too right now) I managed to get mxDateTime in the namespace. If it would help, I'll try to post what I did to get it done. In the meantime, if you have mxDateTime installed, you should be able to have an external method called "Today", that returns DateTime.today, and compare as thus: - &dtml-title; was modified today. - still-wishing-mxDateTime-was-available-in-Zope-ly y'rs Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FW: [Zope-PTK] Date Question
This is the correct list :) -- From: Scott Burton <[EMAIL PROTECTED]> Date: Tue, 19 Sep 2000 14:27:46 -0700 To: <[EMAIL PROTECTED]> Subject: [Zope-PTK] Date Question OK, I have searched everywhere for the answer to this. It is quite simple but I can't seem to figure it out. All I want to do is iterate over cataloged objects() and only show items who's bobobase_modification_date matches today's date. I just can't figure out how to set the fmt="%d" in an if tag. TIA Scott B. _______ Zope-PTK maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-ptk See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK/LoginManager/Membership - configuring User Sources
I am currently (one of many probably) inching along towards getting PTK/LoginManager/Membership working and wondered if somebody could point me in the right direction to get the pieces working together. I have installed the PTK, made a portal. I then replaced the acl_users in the portal directory with a loginmanager. Then I added a Portal Membership System, which seemed to replace a bunch of methods and added a bunch of new ones. Looking at my portal [http://entity.ummu.umich.edu:8080/portal] I now get the nice login dialog when I login but it doesn't work. I figure I most likely need to install a usersource. >From this howto [http://www.zope.org/Members/jok/SQL_based_LoginManager] I stole some methods that seem to be the sort of thing I would need to link the login process to a database (in my case a MySQL user table). I put them, as listed below, into my persistant user source. But I am not sure how to link these new methods in my usersource back to my login form. Here is the list of contents from my usersource : MySQL_database_connection (Z MySQL Database Connection) SQL_change_password SQL_check_user SQL_get_password SQL_get_roles userAuthenticate userExists userRoles I have no idea whether these are the correct method names that the loginmanager is looking for to authenticate. Does anyone have any pointers on this ? Also I now have 2 login forms - one in the root of the portal folder and the other in the acl_users folder. Which is the one that I need to edit ? I say edit because I see this line in both of them : http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK - member can reconfigure portal
Hello, I am a beginner on Zope so maybe I'm doing something wrong but... I have installed the Portal ToolKit 0.8.2 complete, and most things seem to work except: I have joined the Portal and when I log in as this member and select 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will let this user/member change things that only the owner/super should be able to do!(?) So what have I done wrong? (.or can it be a bug.) I'm running zope 2.2.1 on a Windows NT 4 workstation (SP6a) -- Best regards, Anders mailto:[EMAIL PROTECTED] The Romans didn't find algebra very challenging, because X was always 10. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-PTK] Re: [Zope] PTK and Membership product
Chris McDonough wrote: > > Forwarding this on from the Zope list to the PTK list > > albert boulanger wrote: > > > > From Friday's 8-25 PTK CVS > > > > PTK has logic to support the Membership product, but it seems to be > > using the old MembershipZ name. I want to use this combination because > > we have own own custom database where user accounting will be stored. > > > > (I am using PortalMembership version 0.7.2. By the way the version > > numbers in the code need updating -- it claims it is 0.7.0) > > > > Error Type: AttributeError > > Error Value: setMemberProperties FYI Membership and the latest CVS PTK have not been made compatible yet. That is why it does not work. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK and Membership product
Forwarding this on from the Zope list to the PTK list albert boulanger wrote: > > From Friday's 8-25 PTK CVS > > PTK has logic to support the Membership product, but it seems to be > using the old MembershipZ name. I want to use this combination because > we have own own custom database where user accounting will be stored. > > (I am using PortalMembership version 0.7.2. By the way the version > numbers in the code need updating -- it claims it is 0.7.0) > > class DemoPortalBaseclass in Portal.py I had to change MembershipZ/LoginMember > > # self.acl_users was magically created by the above call > #'PortalMembership/PortalMember' 'MembershipZ/LoginMember' > for us in self.acl_users.UserSourcesGroup.objectValues(): > if us.meta_type == 'Persistent User Source': > us.__of__(self.acl_users).manage_setStorage( >'PortalMembership/PortalMember' ) > break > > But this was not enough, it breaks at: > > Zope Error > > Zope has encountered an error while publishing >this resource. > > Error Type: AttributeError > Error Value: setMemberProperties > > Troubleshooting Suggestions > > The URL may be incorrect. > The parameters passed to this resource may >be > incorrect. > A resource that this resource relies on >may be > encountering an error. > > For more detailed information about the error, >please refer to > the HTML source for this page. > > If the error persists please contact the site >maintainer. Thank > you for your patience. > > Traceback (innermost last): > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, > line 222, in publish_module > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, > line 187, in publish > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, >line 221, in zpublisher_exception_hook > (Object: RoleManager) > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, > line 171, in publish > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, > line 160, in mapply > (Object: Portal_add) > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, > line 112, in call_object > (Object: Portal_add) > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, >line 172, in __call__ > (Object: Portal_add) > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, > line 528, in __call__ > (Object: Portal_add) > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, > line 146, in render > (Object: Portal.createInObjectManager(REQUEST['id'], REQUEST)) > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, > line 147, in render > (Object: RESPONSE="_.None") > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, > line 337, in eval > (Object: portal_registration.addMember(username, password, > ('Member', 'Manager', 'Reviewer'), '', REQUEST)) > (Info: username) > File , line 0, in ? > File >/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/PTKBase/RegistrationTool.py, > line 174, in addMember > (Object: portal_registration) > AttributeError: (see above) > > Is there any thing I also need to do to make this combination work? Do > I need to use the older MembershipZ stuff? > > Has anyone used the ZSession product with PTK? Again we are storing > sesssion info in our own database and I would liek to uses Zpatterns > for this. > > Regards, > Albert Boulanger > [EMAIL PROTECTED] > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.
[Zope] PTK and Membership product
>From Friday's 8-25 PTK CVS PTK has logic to support the Membership product, but it seems to be using the old MembershipZ name. I want to use this combination because we have own own custom database where user accounting will be stored. (I am using PortalMembership version 0.7.2. By the way the version numbers in the code need updating -- it claims it is 0.7.0) class DemoPortalBaseclass in Portal.py I had to change MembershipZ/LoginMember # self.acl_users was magically created by the above call #'PortalMembership/PortalMember' 'MembershipZ/LoginMember' for us in self.acl_users.UserSourcesGroup.objectValues(): if us.meta_type == 'Persistent User Source': us.__of__(self.acl_users).manage_setStorage( 'PortalMembership/PortalMember' ) break But this was not enough, it breaks at: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: setMemberProperties Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: Portal_add) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: Portal_add) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: Portal_add) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: Portal_add) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: Portal.createInObjectManager(REQUEST['id'], REQUEST)) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: RESPONSE="_.None") File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: portal_registration.addMember(username, password, ('Member', 'Manager', 'Reviewer'), '', REQUEST)) (Info: username) File , line 0, in ? File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/PTKBase/RegistrationTool.py, line 174, in addMember (Object: portal_registration) AttributeError: (see above) Is there any thing I also need to do to make this combination work? Do I need to use the older MembershipZ stuff? Has anyone used the ZSession product with PTK? Again we are storing sesssion info in our own database and I would liek to uses Zpatterns for this. Regards, Albert Boulanger [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK 0.7.1 is _very_ out of date!
David Riggs wrote: > > Having still more problems with this installation of Zope 2.1.6 and PTK > 0.7.1... Can someone please remove the 0.7.1 snapshot, it's broken and incredibly out of date. There is a newer snapshot at http://www.zope.org/Members/taz/PTK but that's also out of date now there have been the huge architectural changes. cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK Member-Folder Object Properties (phew!)
For each member in the Portal ToolKit, a folder is created in the folder 'Members', i.e: ZopeRoot/Portal/Members/member_name I've created a ZClass called Customize that has several properties, and I've added an instance of Customize (and called each instance Customize) in each member's folder. i.e.: /Portal/Members/member_name/Customize What I need is a way to access the value of these properties for any given member that is logged in at the moment. In other words, I can do this... and get the value that I need for member1. I want the equivalent of replacing 'member1' with AUTHENTICATED_USER.getName()...I tried substuting it in and building a string with it, but that causes getattr to complain about strings not having the needed property. Any ideas on how to make this work, or ideas on how to do it a similar (or even completely different) way? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK question ..
Jean Jordaan wrote: > Hmm, "Note: there are big bunches of bugs still." I guess > I shouldn't try to premiere a snazzy intranet on this by > Friday .. Er, no ;-) > Do you know if there are stable core features (basically > users joining and submitting news items) that one could use? > I.e. will I be OK if I stay off the bleeding edge? I suspect > the answer is that the PTK is ALL bleeding edge still .. The PTK is mainly bleeding edge but there are people using it for real worl apps. If you want to do so, you will probably need to be comfortable hacking the PTK python source. There's a big change which I think Shane Hathaway is working on right now which should make a lot of the needs to do this go away. > Actually, looking at > http://www.zope.org//Products/PTK/ZWiki/PTKInstallation > I think I better back off for a bit. I'm still on Zope 2.1.6 > (last I looked Squishdot didn't do 2.2) and it looks like PTK > wants 2.2 .. Don't think the PTK needs 2.2. And I am working on Squishdot ;-) Parting advice would be to join the [EMAIL PROTECTED] mailing list and look out for any interesting developments. cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK binary distribution?
On Wed, Aug 02, 2000 at 01:05:16PM +0200, Jean Jordaan wrote: > Hi Zopers .. > > Using PTKSnap.tgz , I find > > lib\python\Products\ZPatterns\DynPersist.so > lib\python\Products\ZPatterns\DynPersist.o > lib\python\Products\ZPatterns\DynPersist.pyd > lib\python\Products\ZPatterns\DynPersist.c > > in the archive. This looks just fine for Linux use, but > I'm on W2K without a C compiler .. does anyone have the > corresponding .dll (it would be a .dll, wouldn't it?) The .pyd file is a .dll by another name. -Dom ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK binary distribution?
Hi Zopers .. Using PTKSnap.tgz , I find lib\python\Products\ZPatterns\DynPersist.so lib\python\Products\ZPatterns\DynPersist.o lib\python\Products\ZPatterns\DynPersist.pyd lib\python\Products\ZPatterns\DynPersist.c in the archive. This looks just fine for Linux use, but I'm on W2K without a C compiler .. does anyone have the corresponding .dll (it would be a .dll, wouldn't it?) -- jean ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK question ..
Chris Withers wrote: > > Jean Jordaan wrote: > > ZopePTK-0.7.1.tar.gz > > Erk :( > > Theres' a much newer snapshot available at: > > http://www.zope.org/Members/taz/PTK > This is catalogued now. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK question ..
Jean Jordaan wrote: > ZopePTK-0.7.1.tar.gz Erk :( Theres' a much newer snapshot available at: http://www.zope.org/Members/taz/PTK cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK question ..
Hi all I'm trying to get the PTK up and running. Everything works OK, but when I try to review a pending document, this is what I get: Resource not found Sorry, the requested Zope resource does not exist.Check the URL and try again. The document is simply the default index_html document of the user 'test-portal' (a normal member user). I changed a few words and marked it pending. Then I logged out, logged in as the manager user, and tried to access http://roamer/portal/Members/test-portal/index_html This resulted in the above traceback. I notice that index_html was created by 'No owner'. If I create a document as 'test-portal', I can review it successfully as manager. Trying to access http://roamer/portal/Members/test-portal also results in the same traceback (with "Document instance at 0190FC70"). I intend to use the PTK for our company's intranet of 150+ employees, if at all possible. Is is ready for this? I'm running Zope-2.1.6-win32-x86.exe and ZopePTK-0.7.1.tar.gz (the PTK would require Zope 2.2, would it?). Any help would be most appreciated. Regards, -- jean ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK cannot import DemoPortal
Hi, i have a little problem trying to import the DemoPortal.zexp, i use Debian GNU/Linux 2.2 with debian zope package, and the DemoPortal doesn't import, i notice too that there is no "Portal" into the Add list. Any ideas? Thanks, Nestor A. Diaz Ingeniero de Desarrollo Engendro - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK returning th error Invalid date-time string
finally i managed to run PTK. but when i try to add members. The error given is Error Type:Invalid Date-Time String Error value: 2000/07/05 15:57:44.3085 Please help :-( ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] unable to use Zope PTK
hi, this is a newbie trying to get zope PTK to work. I installed PTK on a win2k system. The installation was fine, can see the portal in the available objects lists. but when i use the object ortal, the wizard start up but when i am completing it (after the login creation step)it gives the error Error Type: AttributeError Error Value: 'None' object has no attribute 'setMemberProperties' what does it mean. any solutions. and why are there two products listed at PTK page. thanx ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Question (was on zope-ptk)
Jonathan Desp wrote: > > > > Anyone know another way to upload 900 files in one shot ? > > > > What kind of files are they? What do you want to do with them once > > they're in Zope? > > they are all in .html, I want to publish it inside www.atomasoft.com, as > a website. You should be able to simply FTP these files into Zope. Have you tried this? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Question (was on zope-ptk)
Hi Jonathan, I arbitrarily deem this to be a [EMAIL PROTECTED] rather than a [EMAIL PROTECTED] question, so I'll move it there :-) Jonathan Desp, who wants to upload a lot of files into Zope, wrote: > > someone said me to use load site, but there is a bug with this program. What is the bug in loadsite that is stopping you from using it? You have a couple of options here we haven't explored yet: 1: Fix the bug in loadsite yourself. 2: Describe the bug in sufficient detail that someone else feels moved to spend time fixing it. > Anyone know another way to upload 900 files in one shot ? What kind of files are they? What do you want to do with them once they're in Zope? Is uploading these files a recurring need you have, or is it a one-off? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK questions
Graham Chiu <[EMAIL PROTECTED]> wrote: > > Using the 0.7.1 snapshot First, there is a list dedicated to PTK issues: [EMAIL PROTECTED] You are much more likely to get a knowledgeable answer there. > > I've patched my Members/index_html to read > > > &dtml- > sequence-item; > > > but there's another one of these that says > > 'created by ' > > which gives the wrong url. Where can I patch that? I had a quick > look thru the methods of the portal instance, and in the portal > product, but couldn't find it. Look for a DTML file called "byline" -- I think it is the culprit. > Also, I've deleted a couple of test members I created but they still > show in the members listing. How can I reindex to remove them? -- === Tres Seaver[EMAIL PROTECTED] Digital Creations"Zope Dealers"http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK questions
Using the 0.7.1 snapshot I've patched my Members/index_html to read &dtml- sequence-item; but there's another one of these that says 'created by ' which gives the wrong url. Where can I patch that? I had a quick look thru the methods of the portal instance, and in the portal product, but couldn't find it. Also, I've deleted a couple of test members I created but they still show in the members listing. How can I reindex to remove them? -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )