[Zope] GUF
I'm afraid that this will be a little newie question. How is the call to user_Authenticate used. Is it throgh a dtml-call or a dtml-var or dtml-in ? How am I supposed to pass the variables through to the function. How do I "collect" the return value? /Mathias ___ 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] GUF
Does anybody know how the login is handled by GUF. I use cookie authentication and I get the loginptomt when I try to access a page that has authenticate permissions. But when I try to login I don't know how to get the user logged i.e I don't know how to set the cookie. Can anybody help me ? /Mathias Bengtsson ___ 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] GUF
I have GUF installed and I have succeded in coding som managing tools for this. From what i see i have also found a loginpromt (for cookies). My problem lies in that i don't know how to get the user logged in. I try to use userAuthenticate but when i look in the code i see nothing that have anything to do with how to get the user logged in. If i try to use post and sending the login information lika [EMAIL PROTECTED] I have the problem that thoose user only exist for the "usual" acl_users. Can anybody help me /Mathias ___ 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] ZPatterns and LoginManager
That's right. Copy the Makefile.pree.in.boot from the python library in your zope. Then do as you said yourself. run make -f Makefile.pre.in boot, then run make. Then your'e home free /Mathias Demos Economacos wrote: > > To: Mathias Bengtsson <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] > > MIME-Version: 1.0 > > Content-Type: text/plain; charset=us-ascii > > > > I am still having a little trouble - I am newbie, so > > please excuse my dumb questions :) > > > > When I do the make, I get > > make: *** No rule to make target `DynPersist.c', > > needed by `DynPersist.o'. Stop > > > > I am not sure, but am I supposed to copy the > > Makefile.pre.in from ZPatterns to python library two > > levels above - and then run the make -f > > Makefile.pre.in boot from ZPatterns? > > > > Thanks for your help! > > > > > > > > --- Mathias Bengtsson <[EMAIL PROTECTED]> wrote: > > > When I installed ZPatterns. I first untared in > > zope > > > root as usual. Then > > > standing in the > > > /zope/lib/python/Products/ZPatterns/ library i da > > a > > > copy of the > > > makefile two steps above > > > cp ../../Makefil > > *** MESSAGE TRUNCATED *** > > > > __ > Do You Yahoo!? > Get Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.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 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: Returned mail: User unknown
> > > When I installed ZPatterns. I first untared in zope root as usual. Then > standing in the > /zope/lib/python/Products/ZPatterns/ library i da a copy of the > makefile two steps above > cp ../../Makefile.pre.in > (ypu probaly done this but anyways) > then i run make -f Makefile.pre.in boot > then make > That's all. It shold work :) > > Demos Economacos wrote: > > > Hi Mathias > > > > I have the latest version of ZPatterns 0.3. Did you > > have to do the make step? Which directory did you do > > the make step in? > > > > Thanks > > > > Demos > > > > --- Mathias Bengtsson <[EMAIL PROTECTED]> wrote: > > > What version of ZPatterns do you have. I experienced > > > this problem > > > earlier and realized that in the file > > > SheetProviders.py in the > > > ZPatterns library some verison of ZPatterns totally > > > lack the > > > SheetProverContainers. I run on ZPatterns 0-3-0 and > > > I had it > > > up'n'running. > > > > > > /Mathias Bengtsson > > > > > > Demos Economacos wrote: > > > > > > > I had an older version of LoginManager (0.3) > > > installed > > > > on my default Zope installation (2.1.6) running on > > > a > > > > RH 6.3 Linux. I downloaded and installed > > > LoginManager > > > > 0.8.6 and then things started getting weird. > > > > LoginManager and PTK were both being reported as > > > > broken products. > > > > > > > > So, spent about 4 hours trying to understand what > > > was > > > > going on (reinstalling - reading the zope.org and > > > > egroups) and then found out that I needed > > > ZPatterns. > > > > So I downloaded the binary version (0.3) and > > > installed > > > > that. However, when I tried to do the make part, I > > > > kept getting an error. After much investigation, I > > > > discoverd that I needed the Components library for > > > the > > > > makefile stuff. So,I then had to download the > > > entire > > > > Zope souce code and installed that into a new > > > > directory - and copied the components over to the > > > > existing zope directory. However the make still > > > didnt > > > > work. Then I tried (un)taring Zpatterns into the > > > new > > > > zope and tried to make and still problems. Tben I > > > > downloaded the source an older version of > > > ZPatterns > > > > and installed that to the new zope and got the > > > make to > > > > work eventually. Then i tried the same procedure > > > on > > > > teh old zope and still no joy. Then I decided to > > > copy > > > > over everything from the new zope to the old zope > > > in > > > > the ZODB directory that was new. That seemed to do > > > the > > > > trick and enventually after about 16 straight > > > hours of > > > > pure frustration (for a newbie like me) i got the > > > > makefile step to go through without an error. > > > > > > > > However, when I restart zope, I now get a new > > > error in > > > > the login manager traceback: > > > > Traceback (innermost last): > > > > File > > > > "/usr/share/zope/lib/python/OFS/Application.py", > > > line > > > > 387, in import_products > > > > product=__import__(pname, global_dict, > > > > global_dict, silly) > > > > File > > > > > > > > > "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", > > > > line 1, in ? > > > > import LoginManager, LoginMethods, UserSources > > > > File > > > > > > > > > "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py", > > > > line 9, in ? > > > > from Products.ZPatterns.SheetProviders import > > > > SheetProviderContainer > > > > ImportError: cannot import name > > > SheetProviderContainer > > > > > > > > I have no idea where to even start looking for the > > > > problem. Anyone have any hint or idea - I would > > > really > > > > appreciate any help. Its been a very long and > > > > frustrating day :) > > > > > > > > Thanks in advance > > > > > > > > Demos > > > > > > > > __ > > > > Do You Yahoo!? > > > > Get Yahoo! Mail - Free email you can access from > > > anywhere! > > > > http://mail.yahoo.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 ) > > > > > > > __ > > Do You Yahoo!? > > Get Yahoo! Mail - Free email you can access from anywhere! > > http://mail.yahoo.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 )
Re: [Zope] Login manager and ZPatterns - error
What version of ZPatterns do you have. I experienced this problem earlier and realized that in the file SheetProviders.py in the ZPatterns library some verison of ZPatterns totally lack the SheetProverContainers. I run on ZPatterns 0-3-0 and I had it up'n'running. /Mathias Bengtsson Demos Economacos wrote: > I had an older version of LoginManager (0.3) installed > on my default Zope installation (2.1.6) running on a > RH 6.3 Linux. I downloaded and installed LoginManager > 0.8.6 and then things started getting weird. > LoginManager and PTK were both being reported as > broken products. > > So, spent about 4 hours trying to understand what was > going on (reinstalling - reading the zope.org and > egroups) and then found out that I needed ZPatterns. > So I downloaded the binary version (0.3) and installed > that. However, when I tried to do the make part, I > kept getting an error. After much investigation, I > discoverd that I needed the Components library for the > makefile stuff. So,I then had to download the entire > Zope souce code and installed that into a new > directory - and copied the components over to the > existing zope directory. However the make still didnt > work. Then I tried (un)taring Zpatterns into the new > zope and tried to make and still problems. Tben I > downloaded the source an older version of ZPatterns > and installed that to the new zope and got the make to > work eventually. Then i tried the same procedure on > teh old zope and still no joy. Then I decided to copy > over everything from the new zope to the old zope in > the ZODB directory that was new. That seemed to do the > trick and enventually after about 16 straight hours of > pure frustration (for a newbie like me) i got the > makefile step to go through without an error. > > However, when I restart zope, I now get a new error in > the login manager traceback: > Traceback (innermost last): > File > "/usr/share/zope/lib/python/OFS/Application.py", line > 387, in import_products > product=__import__(pname, global_dict, > global_dict, silly) > File > "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", > line 1, in ? > import LoginManager, LoginMethods, UserSources > File > "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py", > line 9, in ? > from Products.ZPatterns.SheetProviders import > SheetProviderContainer > ImportError: cannot import name SheetProviderContainer > > I have no idea where to even start looking for the > problem. Anyone have any hint or idea - I would really > appreciate any help. Its been a very long and > frustrating day :) > > Thanks in advance > > Demos > > __ > Do You Yahoo!? > Get Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.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 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] LoginManager 0.8.6 on Zope 2.1.6
You need to install the ZPattern package to Zope. You can get it at Zope.org. After that it should work fine /Mathias Bengtsson --Hi there --I tried to install LoginManager 0.8.6 owith Zope 2.1.6 but that failed. Zope --reports: --LoginManager Import Traceback --Traceback (innermost last): -- File "C:\PROGRA~1\ZOPE_216\lib\python\OFS\Application.py", line 387, in --import_products --product=__import__(pname, global_dict, global_dict, silly) -- File "C:\Program --Files\Zope_216\lib\python\Products\LoginManager\__init__.py", line 1, in ? --import LoginManager, LoginMethods, UserSources -- File "C:\Program --Files\Zope_216\lib\python\Products\LoginManager\LoginManager.py", line 7, in --? --from Products.ZPatterns.PlugIns import PlugInGroup --ImportError: No module named ZPatterns.PlugIns --Any solutions ? Does it need Zope 2.20 ?! --Gijs Reulen ___ 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] SyabaseDa SP problem
I have the following problem. I run Zope under RH6.2 with Apache and SyBase through SyBaseDA. I have gorren the connection to work so that I can make simple SQL questions. The problem I have arise when I try to run an SQL StoreProcedure that lies in SyBase. At first it didn't wokr att all but after I changed the connection to not supporting transaction it worked better. But not good. I can call upon this SP one time. (the test SP I use does an simple insert(it works)). But I get the error message -- Error, Products.SybaseDAv2.db.Error: Unexpected result type Then the server waits for an answer to it's query. If I now try to use ANY sql methods i get the answer that the server is waiting for an answer and that I can't execute any more SQL's during that time. What can I do to eliminate this problem. Any help is welcome /Mathias Bengtsson ___ 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 )