[Zope-dev] Add a user to zope
Hello, I need your help. I'm trying to add all users from of our company in zope. I don't want enter all users and all passwords. I would like make a dtml-method which select all users and passwords in my (SQL) table and create automatically these users. I have created this dtml-method but I don't succed to redirect the page to acl_users/manage_users (method that create users) so that I don't need to press add button for each users. Do you Have a answer or another best solution ? Thanks ... Johan. form action=acl_users/manage_users method=post table input type=text name=name value=totoTest input type=password name=password value=test input type=password name=confirm value=test input type=text name=domains:tokens value= select name=roles:list size=5 multiple option value=ManagerManager option value=MemberMember option selected value=OwnerOwner option value=ReviewerReviewer option value=publisherpublisher /select input type=submit name=submit value=Add /table /form ... or ... dtml-call self.Users.acl_users._addUser('testToto','toto','toto','Owner',0) ___ 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] update Zcatalog
Hello, I use Zcatalog to index my file. This file change often. They are deleted, added or modified. I have two choices to update my ZCatalog : first when I add a file, I add the file to the catalog (but it doesn't work) dtml-let docAdding=_.getattr(PARENTS[0], idName) dtml-call companyDoc.catalog.catalog_object(docAdding,_.string.join(docAdding.getPhys icalPath(),'/')) /dtml-let when I delete a file, I delete the file from the catalog (but it doesn't work) dtml-let docAdding=_.getattr(PARENTS[0], idName) dtml-call companyDoc.catalog.uncatalog_object(_.string.join(docAdding.getPhysicalPath (),'/')) /dtml-let second clear the catalog, and create all indexes in catalog again. dtml-tree dtml-if objectValues(['File']) dtml-call companyDoc.catalog.catalog_object(id,_.string.join(docAdding.getPhysicalPat h(),'/')) /dtml-if /dtml-tree Can you help me to this two solutions work please ? ___ 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] COPY/PASTE problem
Hello, I would like to copy and paste file in my site. I created copy button with this code : dtml-let objCopy=_.getattr(PARENTS[0], idChk) dtml-call expr=objCopy.manage_copyObjects([idChk]) /dtml-let this code don't make an error, but I'm not sure that's work! I suppose that manage_copyObjects() reference the file in the clipboard, but how can I use the function paste, maybe like that but it doesn't work ... dtml-let objPaste=_.getattr(PARENTS[0],) dtml-call objPaste.manage_pasteObjects() /dtml-let how can I view the content of its clipboard ? thanks, Johan. ___ 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] problem to rename folder
Hello, I have a little problem. I use this function to rename an object in my site (file or folder). It work perfectly with file but I have an error when I try to rename a folder I think the error is from PARENT[0], so do you have a solution ??? dtml-let objRename=_.getattr(PARENTS[0], _['idName']) dtml-call objRename.manage_renameObjects([idName],[newId],getWay(REQUEST.PATH_INFO)) /dtml-let Thanks a lot, Johan. -- -- This email and any files transmitted with it are CONFIDENTIAL and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised copying, disclosure, or distribution of the material within this email is strictly forbidden. Any views or opinions presented within this e-mail are solely those of the author and do not necessarily represent those of Odyssey Asset Management Systems SA unless otherwise specifically stated. An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. If you have received this email in error, please notify the sender immediately and delete the original. ___ 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 )