[Zope] Caveat emptor: Re: [Zope] problem installing login manager
Once you get DynPersist, if you\'re using the latest version of LoginManager you will still get an error about the plugins. (something about registerhelp contexthelp don\'t remember) Quick fix: cd into lib/python/Products/PlugIns edit the file __init__.py at line 7 there is a function called initialize(context): before context.registerHelp(), insert a line with the same indentation that says return so it will be like this . . . def initialize(context): return<- this is your craft context.registerHelp() . . . . because it seems that registerHelp cannot find some required files. Well, this is a hack, not even a solution, but what do you prefer, no plugins or no help in your working plugins? I seize the oppportunity to ask someone knowledgeable with this ZPatterns and Plugins and LoginManager stuff. I can\'t understand it. I\'ve perused all the \"documentation\" in its wiki, to no avail. Thanks in advance. Quoting Henny van der Linde <[EMAIL PROTECTED]>: > 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 > -- Universidad Federico Santa Maria - Campus Guayaquil Enviado por: www.usm.edu.ec ___ 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] New kinds of problems
Which still sucks because most of the software will default to gcc, and compiled RPMs and binaries in other distributions fail sometimes too. but thanks for the tip. I tend to be something of a \"distracted professor\" (is that the way to put it?) sometimes. Quoting Bill Anderson <[EMAIL PROTECTED]>: > MANUEL JOSE AMADOR BRIZ wrote: > > > > Thanks, here are my two cents: > > > > Mini quick howto to connect to a sybase ASA/ASE: > > > > Get any 2.2 linux distro installed, except red hat 7 (compiler > problems, it > > WILL fail). > > Only if you didn\'t read the RELEASE-NOTES. > Use kgcc, it is the same compiler as RH 6.2 has. > > --- > root@darwin in /root > $ cat /etc/redhat-release > Red Hat Linux release 6.2 (Zoot) > root@darwin in /root > $ gcc --version > egcs-2.91.66 > root@darwin in /root > --- > ucntcme@locutus in /home/ucntcme > $ cat /etc/redhat-release > Red Hat Linux release 7.0 (Guinness) > ucntcme@locutus in /home/ucntcme > $ kgcc --version > egcs-2.91.66 > --- > > ... > > exit python and go to the zope folder, then run ./start > > > > if zope starts, you\\\'re all set > > not quite. You should stop zope, open a new terminal, and start zope > from there. More often than not, you will need to set up the $SYBASE > variables in the zope start up script. Running Zope in a \'clean\' > terminal will test the environment. > > > -- > E PLURIBUS LINUX > > > ___ > 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 ) > -- Universidad Federico Santa Maria - Campus Guayaquil Enviado por: www.usm.edu.ec ___ 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] pluggable brains
What is this ZClass binding for? What\'s its purpose? Quoting Philipp Auersperg <[EMAIL PROTECTED]>: > For ZSQL Methods it is possible to bind a ZClass to the records. > > These can be selected from te combo box labeled \'ZClass\' in the > \'advanced\' tab of the SQLMethod\'s management screen, > but there is always listed just one ZClass. > > My question: > Why is there just one ZClass selectable, even if there are many ZClasses > defined? > Is that a bug or a feature? > > thanks > > phil > > -- Universidad Federico Santa Maria - Campus Guayaquil Enviado por: www.usm.edu.ec ___ 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] Zope and Sybase Stored Procedures
Everything works from a SQL method except \"exec sp_xx\" calls. It is driving me insane. ZSybaseDA spits errors about some operation in progress . Quoting [EMAIL PROTECTED]: > Hi, > > I am working with zope and I want to securize my access to > the data stored in a Sybase Server. So I am trying to > do all my SQL requests by using stored procédures. > The only thing that goes wrong is that I don\'t know > how to make a call to a Sybase Stored Procedure within > Zope. > > Can anyone help me ? > > Sincerly, > > Badara POUYE > Infosources > 16, rue Hoche > Tour Kupka B > 92906 Paris La Défense > Tel.: (+33)141028000 > > > ___ > 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 ) > -- Universidad Federico Santa Maria - Campus Guayaquil Enviado por: www.usm.edu.ec ___ 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] New kinds of problems
Thanks, here are my two cents: Mini quick howto to connect to a sybase ASA/ASE: Get any 2.2 linux distro installed, except red hat 7 (compiler problems, it WILL fail). GET from Sybase the RPMs called sybase-common and sybase-openclient, the latest versions. Install them. do a link from /opt/sybase to /opt/sybase- {currentversion} which should exist now. make sure you have $SYBASE set in your profile, to /opt/sybase. Download zope-2.2.2.src.tgz untar as root, then chown -R root.root /path/to/Zopefolder make sure you have python and python-devel RPMs or DEBs. cd to zope folder run \\\'python w_pcgi.py\\\' run \\\'python zpasswd.py access\\\', enter username, password, CLEARTEXT encoding and no domain get ZSybaseDAv2 b2 and place the targz file into the zope folder do a \\\'tar zxvmf ZSybaseDAv2.tar.gz0 in the zope folder Once more do a chown -R root.root * cd into lib/python/Products/ZSybaseDAv2/src cp Setup.linux or Setup.solaris to Setup make -f Makefile.pre.in boot make cd to the parent folder (cd ..) cp src/sy_occ.so . enter python and try to do \\\'import sy_occ\\\' if it works and doesn\\\'t spit errors, you\\\'re set. exit python and go to the zope folder, then run ./start if zope starts, you\\\'re all set now there is an executable called /opt/sybase/bin/dsedit that you will have to use to create network transports. Fill in the appropriate data. Now for the problems. I managed to connect to an ASA 7.0 database, and retrieved successfully a select * from systable, but can\\\'t execute stored procedures, it spits some kind of another operation on progress error or unknown data type returned error. I assume ASA and dsclient are talking incompatible protocols here. Can someone help me? By the way, the data source created with dsedit for our ASE server works fine. Everything runs OK. Please reply and CC: me because I\\\'m kinda lagged behind with the mailing list and I need a reply soon. Thanks. I hope these instructions help people in connecting to Sybase, given the poor support they have in some countries (I\\\'m thinking mine). Manuel -- Universidad Federico Santa Maria - Campus Guayaquil Enviado por: www.usm.edu.ec ___ 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 )