[Zope] authenticate and Zope 2.2.4
Is it possible that since 2.2.4 the authenticate-method is no longer allowed?? In an 2.2.0-installation a script to authenticate users it's working perfectly and in two other machines(win98 and Linux) with 2.2.4, Zope doesn't want the user(role as manager) to use it(a pop-up-authentication-window appears). Why??And if authenticate it's no longer allowed(the reasons?), which method can you use to check the correctness of a password?? Thanks Sven -- Sent through GMX FreeMail - http://www.gmx.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] Why GUF or Loginmanager??
Hallo, I'got a fundamental question: Why should you switch from the built-in authentication mechanism to a product like GUF or Login-manager?? Except of the different login interface, I dosn't see any advantage?? Please correct me. What I'm looking for is a product that redirects the authenticated-user to the part of the website where he has got his "home-folder" and also nice wolud be a search-function which gives an administrator a list of all the users with all the roles in the system. -- Sent through GMX FreeMail - http://www.gmx.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] Cloning a ZClass-Instance
Thank you Dieter for your reply, but yout suggestion doesn't solve the problem. This is the traceback: "The object 973677459 does not support this operation " This means to me that x is an instance. That's my script- dtml-in "objectValues(['news'])" dtml-let x="_.getitem('sequence-item')" dtml-if "Jetzt.isCurrentDay()" dtml- call "manage_clone(x,'versuch', [REQUEST])" Kopiert!!! dtml-else dtml- var text /dtml-if /dtml-let /dtml-in -- Sent through GMX FreeMail - http://www.gmx.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] PIL and sizing image
Hallo, that's what I like:the user sends a graphic and we are creating a news-item with a thumbnail and a printable one.So I installed PIL and tried the following: #bildk.py import PIL.Image def bildk(graffik,modus): im = PIL.Image.open(graffik) im.thumbnail((100,100)) #if modus = 'gif': # im.format = 'GIF' #else: #im.format= 'JPEG' return im Error Type: IOError Error Value: [Errno 2] No such file or directory: 'header.gif' That's right cause I pass the image-object from within Zope and not from the local filesystem. Am I forced to save the thumbnail locally and reimport it?? There must be a better solution. Thanks!! -- Sent through GMX FreeMail - http://www.gmx.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] Zope.org
Hallo, have I missed something or why are there no news on the website.The last item was from the 18th of October.Also the mailing-list is not really busy.Any reason? -- Sent through GMX FreeMail - http://www.gmx.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] Working with versions
Hallo, I've got a question concerning versions. The working with versions in the management screen is obvious to me, but what about hiding the management-screen and working with them. I want to add ZClasses programmatically but some users should only be able to add them after a Controller has checked that everything is o.k. What are the right methods to use??? -- Sent through GMX FreeMail - http://www.gmx.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] Mozilla-back button
To support Mozilla I'd like to switch to M18, but in the Zope-Management-Interface the back-button doesn't seems to work. What am I missing?? -- Sent through GMX FreeMail - http://www.gmx.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] Programmatically: zclasses and images
Hallo, I've got two problems cutting my nerves: The site-structure is organized in a way that zclasses can be added programmatically(the user decides by clicking on a tree-list where to add the classes) The 1. problem is that I can't manage to pass the URL of the selected object to add the zclass in the requested place. Therefore I'm not using one script for adding the instances, but every zclass is holding the constructormethod(you're clicking on the tree and the selected zclass is responding with the addFormular and later with the addConstructor). This way is working.I'm not very happy about it because every zclass is created with methods that I think can be avoided. My biggest problem is that I can't manage to add images in the new zclass. That's the script: dtml- with "manage_addProduct['Zzzz']" dtml-call "ZZZsite_add(_.None, _, NoRedir=1)" dtml-call "manage_addImage(pictureName,picture)" /dtml-with This is a zclassMethod and the formMethod(also inside the zclass)passes the 'picture' and 'picturename' variables! The ZZZsite_add method is the usual-one. I think it's an acquisition problem. -- Sent through GMX FreeMail - http://www.gmx.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] Adding ZClass to a folder
Hallo, that's a dumb question. How do you add a ZCLass to a subfolder. That's my try: - dtml- with "SubFolderName.manage_addProduct['MetaTypeName']" dtml-call "ZClass_add(_.None, _, NoRedir=1)" /dtml-with -- Sent through GMX FreeMail - http://www.gmx.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] Displaying all subobjects
The second dumb question today:It's a horrible one How to iterate over all subfolders? "objectValues" shows only the same level, where the method resides. Thanks. -- Sent through GMX FreeMail - http://www.gmx.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] Displaying all subobjects
Hallo Chris, thanks for the quick reply, but the method is displaying all the objects in the folder and I'd like to get only one metatype of objects(i.e.ZClass-cars)but for all levels. -- Sent through GMX FreeMail - http://www.gmx.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] Baseclass:Folder or ObjectManager
Hallo, my ZClass has as base-class Objectmanager and not Folder. When I try to add(let's call it PastaClass)programmatically PastaClass to an instance of Pastaclass I get a mistake.Adding it with the management-interface everythings o.k.Why?? Do I have to subclass folder?? Thanks. -- Sent through GMX FreeMail - http://www.gmx.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] Baseclass:Folder or ObjectManager
This is the traceback I get: When I add the zclass to a normal folder(even with the script)everything is fine.?? Error Type: AttributeError Error Value: seek Traceback (innermost last): File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zop\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: klassenbauer) File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: klassenbauer) File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: klassenbauer) File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: klassenbauer) File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: So) File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: manage_addProduct['LWL']) File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: LwlSeite_add(_.None, _, NoRedir=1)) (Info: _) File string, line 0, in ? File C:\Zop\lib\python\OFS\DTMLMethod.py, line 163, in __call__ (Object: LwlSeite_add) File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: LwlSeite_add) File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: LwlSeite.createInObjectManager(REQUEST['id'], REQUEST)) File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: manage_addImage('grafik',grafik)) (Info: grafik) File string, line 0, in ? File C:\Zop\lib\python\OFS\Image.py, line 338, in manage_addImage (Object: CatalogAware) File C:\Zop\lib\python\OFS\Image.py, line 187, in manage_upload (Object: grafik) File C:\Zop\lib\python\OFS\Image.py, line 220, in _read_data (Object: grafik) AttributeError: (see above) -- Sent through GMX FreeMail - http://www.gmx.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] Organizing huge content
Hallo, my question is about organizing scripting when you have to deal with huge amounts of content. I.e. you have a custom that wants to establish a website .This website should have in the future about 2000 pages but you on your own are building only some pages and a lot of templates that his coworkers can use to build the rest(new pages oder updating old ones). Now the point: I plan to make a ZClass and the new sites are instances of this class. The look (and feel)is individualized by iterating over the properties? Or is it better (in terms of speed)to create a couple of ZClasses and reducing the amount of properties? Many thanks. -- Sent through GMX FreeMail - http://www.gmx.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] change_properties
Hallo, that's the problem: dtml-call "Dict_Test.manage_changeProperties({'Budget[0]': neuesBudget})" This means I'd like to change in a token property only one value but it's not working. Thanks -- Sent through GMX FreeMail - http://www.gmx.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] JobBoard update properties-script problem
Hello, I'm building a JobBoard like Database.Fellows can put in the jobs they have done, the time they need(for scanning or programming) and the budget of the project should be updated depending on the job and the time they needed. Building the instances was no problem but my problem is the budgetupdate. This is the script; Thanks!! - without the if-statement it's working!! dtml-call "REQUEST.set('job', job)" dtml-call "REQUEST.set('time',time)" dtml-call "REQUEST.set('user',_.str(REQUEST['AUTHENTICATED_USER']))" dtml-call "REQUEST.set('title', user +' - '+ TS )" dtml-call "REQUEST.set('value',REQUEST.form['value'])" dtml- if "_.str(REQUEST['job']) == _.str('scanning') dtml-call "REQUEST.set('valueAfter',value - (20*time))" else dtml-call "REQUEST.set('valueAfter',value - (10*time))" /dtml- if dtml-call "REQUEST.set('Budget',valueAfter)" dtml-with "manage_addProduct['DBank']" dtml-call "eingang_DB_add (_.None, _, NoRedir=1)" /dtml-with -- Sent through GMX FreeMail - http://www.gmx.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] Newbie-adding content by form
Hallo, I'd like a user to add content with a form. The website is made with a framest and content should be added and also the navigation should be updated! I think that's a smaller problem but I didn't find an explanation. I'm very happy about every hint! -- Sent through GMX FreeMail - http://www.gmx.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] Newbie:Credit-card question
Hallo, that's my problem: I'd like to build up a shopping-system that's working with credit-cards(it's the customers wish). It's the first time I have to deal with this. How is the checking of the valid credit-card-number being done?? Which institution must be contacted by the server?? In realtime ( I mean is the contact with the client browser being held)?? Is this possible with Zope and in which way?? Thanks for the help Sven -- Sent through GMX FreeMail - http://www.gmx.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 )