[Zope] constructor product in Zope 2.8.1
Hi, I have the following constructor for an external product I build. def manage_addEba(dispatcher, id='eba', title='Title here',REQUEST=None): Add a Basis element to a folder. nEba=eba(id,title) dispatcher.Destination()._setObject(id, nEba) if REQUEST is not None: dispatcher.manage_main(dispatcher,REQUEST) manage_addEbaForm = DTMLFile('dtml/manage_addEbaForm', globals()) We are upgrading to Zope 2.8.1. Now I get the follwing error when I try to add the product (eba). Error Type: TypeError Error Value: unbound method manage_addEba() must be called with eba instance as first argument (got str instance instead) Can anyone shed some some light on this? Thanks, Henny ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] constructor product in Zope 2.8.1
- Original Message - From: Peter Bengtsson [EMAIL PROTECTED] To: Henny van der Linde [EMAIL PROTECTED] Cc: zope@zope.org Sent: Thursday, October 13, 2005 7:33 PM Subject: Re: [Zope] constructor product in Zope 2.8.1 Can you show us your __init__ stuff? Yes Here it is: from eba import eba from ImageFile import ImageFile def initialize(context): context.registerClass( eba, constructors = ( eba.manage_addEbaForm, eba.manage_addEba ), icon=www/eba.gif ) misc_ = {inst.gif: ImageFile(www/inst.gif,globals()), k1.png: ImageFile(www/k1.png,globals()), k2.png: ImageFile(www/k2.png,globals()), k3.png: ImageFile(www/k3.png,globals()), lock.png: ImageFile(www/lock.png,globals()), unlock.png: ImageFile(www/unlock.png,globals()), vink_16.gif: ImageFile(www/vink_16.gif,globals()), kruisje_16.gif: ImageFile(www/kruisje_16.gif,globals()), image.gif: ImageFile(www/image.gif,globals()), print_icon.gif: ImageFile(www/print_icon.gif,globals()), up.gif: ImageFile(www/up.gif,globals()), pre.gif: ImageFile(www/pre.gif,globals()), toolbar.gif: ImageFile(www/toolbar.gif,globals()), nieuw_32.png: ImageFile(www/nieuw_32.png,globals()), wis_32.png: ImageFile(www/wis_32.png,globals()), hernummeren_32.png: ImageFile(www/hernummeren_32.png,globals()), basis_32.png: ImageFile(www/basis_32.png,globals()), specifiek_32.png: ImageFile(www/specifiek_32.png,globals()), editors_32.gif: ImageFile(www/editors_32.gif,globals()), site_32.png: ImageFile(www/site_32.png,globals()), bewaren_32.png: ImageFile(www/bewaren_32.png,globals()), annuleren_32.png: ImageFile(www/annuleren_32.png,globals()), } Henny van der Linde ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope Projects in NL/Europe?
Hi, From the Netherlands, - Original Message - From: "Jonathan" [EMAIL PROTECTED] To: "Zope Mailinglist" [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 12:43 AM Subject: [Zope] Zope Projects in NL/Europe? Just wondering: are there any Zope projects are available in the Netherlands/Benelux/Europe? What do you mean by 'available'? We did one last year but they seem hard to find. What do you mean by 'hard to find' ? Where did you look? I'ts a matter of analyzing your clients needs/wishes etc. and matching the outcome of this process with the right tools, platform etc. When in comes down to interactive, database driven web applications in combination with decentralized content management we think Zope is the best platform around (btw it's our firm believe that these kind of websites will be very much in demand, so there is money to be made). It's a matter of convincing the client. Basically your client has to find Zope with your aid. Are there commercial projects available or is Zope mostly used on internal projects? I guess you mean projects developed inhouse versus outhouse. It's my impression that most Zope projects are at this moment developed inhouse (BeNeLux). That doesn't mean that there isn't room for commercial enterprises. It has more to do with 'playing safe', and lack of creativity from the commercial perspective. Is there any demand for Zope expertise around here? You have to create the demand (based on ... see above). Reason I'm asking is that I'd love to continue working with Zope, but it's hard to justify in a company focused on Microsoft and Oracle, especially if there is no money to be made. I think there is (lots of) money to make, but if your company has no strategy for Zope (only a, short sighted, strategy based, only on the major brand names) you are going nowhere with your Zope expertise within your company. Btw, if you have Zope knowledge you know that Zope has no problems with Microsoft and Oracle. I can learn Perl on company time and Linux is our internet server OS of choice, but JSP/Java and .NET (the latter is not that bad, uses SOAP/XML-RPC) is next if we don't find a use for our Zope expertise. (Repeat myself) What did you do to find it? Btw Zope can be integrated with JSP/Java, SOAP/XML-RPC and Perl. My background, I''m co-president/owner of a Dutch based ICT consultancy firm (founded in 1987). Our strategy is now focussed on Zope webapplications based on our 'crystal ball' (content management is the keyword) and input from our clients. Besides that I'm one of the keymembers of a small team that developes webapplications, with Zope, for the Faculty of Social Sciences of the Leiden University. Part of this system is an advanced webbased learning system. Thnx Jonathan regards, Henny van der Linde ___ 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] trapping login errors/exceptions
Hi, - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Henny van der Linde" [EMAIL PROTECTED] Cc: "Zope mailing list" [EMAIL PROTECTED] Sent: Monday, October 30, 2000 11:50 AM Subject: Re: [Zope] trapping login errors/exceptions Henny van der Linde wrote: Thanks. I already thought about using Loginmanager but we still use Zope 2.1.6. Why? ;-) Just careful. Not every Zope release is realy that stable at first. Products are not always upward compatible. The sudden change in the security model with Zope 2.2.0 scared us a bit. Maybe these are minor things but we realy can't afford to experiment a lot in the organization where I (and my co Zopistas) work. BTW I can't get Login Manager installed in a very fresh Zope 2.2.2 installation. See my earlier posting. Any ideas? greetz, Henny van der Linde ___ 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] problem installing login manager
Hi,I just installed Zope 2.2.2 and tried to install the latest version of LoginManager.It failed:LoginManager Import TracebackTraceback (innermost last): File "C:\Program Files\WebSite22\lib\python\OFS\Application.py", line 397,in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\ProgramFiles\WebSite22\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\ProgramFiles\WebSite22\lib\python\Products\LoginManager\LoginManager.py", line 8,in ? from Products.ZPatterns.Specialists import Specialist File "C:\ProgramFiles\WebSite22\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders,SheetProviders File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\Rack.py",line 9, in ? from DataSkins import DataSkin File "C:\ProgramFiles\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersistImportError: No module named DynPersistWhat 's happening?ThanksHenny van der Linde
Re: [Zope] problem installing login manager/Zpatterns
Hi, - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: "Henny van der Linde" [EMAIL PROTECTED]; "Zope mailing list" [EMAIL PROTECTED] Sent: Saturday, October 28, 2000 11:58 PM Subject: Re: [Zope] problem installing login manager Henny, You also need the ZPatterns product, which you then have to compile to get the dynpersist.pyd file. hth I know. It's included in the latest install of Login Manager (Zpatterns 0-4.3b1). The funny thing is that Zpatterns shows itself in the control panel/product management as installed product and Login Manager as an broken product. However when Zope boots up it also mentiones that it can't import the dynpersist.pyd file (belonging to Zpatterns). Interesting question is why Zpatterns isn't listed as a broken product as well. I tried to install the separate Zpatterns install but with the same results. Still a problem with dynpersist.pyd. Anyone? cheers, Henny van der Linde. ___ 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] problem installing login manager
Hi, I just installed Zope 2.2.2 and tried to install the latest version of Login Manager. It failed: LoginManager Import Traceback Traceback (innermost last): File "C:\Program Files\WebSite22\lib\python\OFS\Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\LoginManager.py", line 8, in ? from Products.ZPatterns.Specialists import Specialist File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\Rack.py", line 9, in ? from DataSkins import DataSkin File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist What 's happening? Thanks Henny van der Linde ___ 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] trapping login errors/exceptions
Hi, Henny van der Linde wrote: In this construction the call to do_login always raises the exception Unauthorized instead of presenting the standard login screen. How do I trap login errors in an elegant way? You can't, with the standard Zope acl_users. IIUC, LoginManager allows you to do exactly what you're talking about. cheers, Chris Thanks. I already thought about using Loginmanager but we still use Zope 2.1.6. I'm very commited, to and happy with Zope but I was amazed that you can't trap Unauthorized exception like that. I'ts seems such a basic functionality. cheers, Henny ___ 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] trapping login errors/exceptions
Hi, This should be very simple but I can't get it to work. I have a method called do_login. This method can't be viewed by anonymous users. When I call this method just with dtml-call do_login a standard login screen is presented as expected. Now I want tot trap login errors with a try construction such as this: dtml-try dtml-call do_login dtml-except pLogin error, please try again (etc.) /p dtml-else pLogin ok/p /dtml-try In this construction the call to do_login always raises the exception Unauthorized instead of presenting the standard login screen. How do I trap login errors in an elegant way? Is there an elegant way to trap login errors resulting from an URL? URL link to a secured object, standard login screen presented, wrong input etc. Thanks Henny van der Linde ___ 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] Am I getting the idea correctly?
Hi, But here's what worries me about Zope: it looks I will do a whole lot of typing and get caught up in the syntax and repetitive nature of things like dtml-var -- and dtml-this - and dtml-that - . OK, so it's not made for the faint-of-heart at this point - I can handle that. But I also am not an HTML maven, and it looks like I need to have full HTML expertise to make this work also. GUI tools take the drudge out of a href="something"something and h2this is a heading/h2 pretty well, but I don't see how to get out of this stuff with Zope, especially since it looks like everything is stored internally in a data file that I can't access from the outside. I've been there. Before I came across Zope I builded websites with Frontpage and later on with Dreamweaver (I still do in certain cases). Dropping these kind of pure document oriented sites in Zope is possible but then you are missing the point of Zope. Zope requires another way of thinking about websites. A real GUI working with Zope isn't there yet. I don't think that's a real problem. Zope forces you often to go to nitty gritty details of HTML programming. I think that's a good thing (for me). GUI tools tend to make you very lazy and often produce horrible HTML (for example Frontpage). In my opinion you can't be a serious website builder without extensive knowledge about HTML. With Zope or another platform. That said. You can use Dreamweaver's FTP fascilities to edit documents/methods in Zope. However I don't think that that is very useful (I have never tried this) because Dreamweaver is document oriented and is not aware of your object design/dependecies in the ZODB (the Zope Object Database). I still use Dreamweaver and Fireworks in combination with Zope however. My aproach is: designing the thing in Fireworks (with slices), exporting from Fireworks to Dreamweaver. Then using the HTML result in Dreamweaver for designing/programming my DTML methods (copy/paste) Henny van der Linde Leiden University. ___ 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] M$soft
Hi, Henny, thanks for your answer. In fact, my problem is another thing. I have Zope works fine with PostgreSQL, I want to do the oposite direction, I want that the SQL-server send information to the PostgreSQL. After that Zope will have to access de SQL-server to input information. You got me lost there. What are you trying to do? Besides that: questions about trying to establisch some sort of communication between PostgreSQL and SQL-server seems, in my opinion, offtopic in this forum. It has nothing to do with Zope. Well, I'm in the first step and I fighting with the pgsql to able some odbc conection. Your tip will help me in the second step (hehe). I'm glad to be of some help. Thanks again, and if you know something to help me, please mail me. I know nothing about PostgreSQL, and I haven't the faintest idea what you'r trying to accomplisch. So for the moment I doubt that I can help you futher in your quest. Regards, Heny van der Linde Leiden University ___ 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 )