Re: [Zope] Local Time Zone
On Fri, 3 Nov 2000, Daniel Rusch wrote: > I know I can get the users language preference like this: > > > The question then is, is there a similar method of getting the users > Local Time Zone??? There is no. Use javascript on client side to redirect or set cookie or something... Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] PHP and Zope
Take a look at the PHP/Zope integration HOWTO: http://www.zope.org/Members/Mamey/PHP On Fri, Nov 03, 2000 at 02:43:41AM +0100, Vincent - D. Ertner wrote: > Hi Zopers, > > I learned PHP and now discovered Zope. So I'd like to put a > simple question: > > What's the best way to incorporate the advantages of PHP and > Zope? Should I focus on one and forget the other? > > Okay, these are two questions and I honestly doubt that anyone > would suggest to drop Zope ;-))) > > Anyway: Please gimme some starting hints on my way to the perfect > content managed web site! > > Thanx in advance! > > Cheers, > > Vince > -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ 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] Id ZopeStudio Dead?
Also, for windows try Zope Stud (products area). It's an alpha and doesn't do much but what's there works extremely well. It makes a nice wiki browser too. ___ 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] ZMySQLDA troubles
This is my problem that I have been having. I am trying to install the database adapter from MYSQL to Zope. I downloaded the ZMySQLDA from the zope webpage. I then downloaded the Mysqldb from the zope web page. I installed both. It didn't work. After much trials and tribulations I found I didn't have the mysql librarys installed. I do now. I have work through a lot of errors and have found myself stuck at this one place. The error message that I am getting when I try to start Zope is 2000-11-04T16:18:14 ERROR(200) Zope Couldn't import Products.ZMySQLDA Traceback (innermost last): File /usr/src/packages/SOURCES/opt/zope/lib/python/OFS/Application.py, line 39 7, in import_products (Object: string) File /usr/src/packages/SOURCES/opt/zope/lib/python/Products/ZMySQLDA/__init__. py, line 106, in ? File /usr/src/packages/SOURCES/opt/zope/lib/python/Products/ZMySQLDA/DA.py, li ne 108, in ? File /usr/share/zope/lib/python/Products/ZMySQLDA/db.py, line 106, in ? ImportError: /usr/src/packages/SOURCES/opt/zope/lib/python/_mysqlmodule.so: unde fined symbol: PyObject_Init I have tryed everything that I can think of and was hoping someone else might have had the same problem. If anyone can help me out it would be appreciated. I am running MySQL 3.22.32, Redhat Linux 5.2, Python 2.0 and Zope the latest version of Zope. Any suggest will be appreciated. Shelley Strik ___ 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] UML
Greetings! I am graduation student and I come using the platform zope for development of systems directed to education. One of the main doubts when using zope, not only the syntax, but also as to use it to develop applications using methodologies (former UML). As to use concepts of Objects Oriented : inheritance, aggregation, dependence...? Using its it of management screen? yours truly -- - Douglas Daniel Del Frari - Acadêmico Computação - UNIJUÍ Brazil, RS - mailto:[EMAIL PROTECTED] http://labinf.detec.unijui.tche.br/~gaucho - ___ 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 error
Hello, There is a problem with my zope.Whenever someone accesses the server it has an error and shuts downthis is the last 2 lines of what it said:File "C:\Program Files\WebSite\ZServer\medusa\logger.py", line 65 inmaybe_flush self.file.flush()IOError: [Errno 9] Bad file descriptor How do I fix this? Thanks, Calin
[Zope] ZMySQLDA installation problem
I'm trying to install ZMySQLDA on Solaris 5.6. Everything seems to be going fine until make tries to compile the module. Then I get the following error messages: gcc -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type ./MySQLmodule.c: In function `pythonify_res_fields': ./MySQLmodule.c:384: invalid lvalue in unary `&' ./MySQLmodule.c: In function `STH_fetchdict': ./MySQLmodule.c:1125: invalid lvalue in unary `&' ./MySQLmodule.c:1147: invalid lvalue in unary `&' *** Error code 1 make: Fatal error: Command failed for target `MySQLmodule.o' Anyone know what's going wrong here? adTHANKSvance Chris ___ 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] [Semi-OT] Compilin gon RH7 (was: New kinds of problems)
MANUEL JOSE AMADOR BRIZ wrote: > > Which still sucks because most of the software will default to gcc, and > compiled RPMs and binaries in other distributions fail sometimes too. In your Profile (bash example): $export CC=kgcc and Bob's yer uncle. :) ( doing this, any ./configure you run will pick up kgcc instead of gcc ) If a binary was compiled on a seperate system/distribution, and fails on yours, you can't blame _your_ compiler, 'cuz it didn't do it. :) -- 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 )
Re: [Zope] Zope and Sybase Stored Procedures
MANUEL JOSE AMADOR BRIZ wrote: > > Everything works from a SQL method except \"exec sp_xx\" calls. It is > driving me insane. ZSybaseDA spits errors about some operation in progress . WARNING: This data is a bit old! Last I knew, SybaseDA didn't work with stored procedures. if that ahs changed, I apologize. I haven't seen anything that says it changed though. -- 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 )
[Zope] insert but updates don't work
I have this rather curious problem with Zope 2.1.3 on WinNT. I have a zsql query which returns a number of records. I want to do an update on the same table that is being queried for each record returned, but get an authentication challenge that I can not pass. If instead I do, eg, an insert into another table with each value returned, it works fine. Is there something special about sql updates? -- Graham Chiu ___ 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] insert but updates don't work
Graham Chiu wrote: > > I have this rather curious problem with Zope 2.1.3 on WinNT. > > I have a zsql query which returns a number of records. I > want to do an update on the same table that is being queried > for each record returned, but get an authentication > challenge that I can not pass. > > If instead I do, eg, an insert into another table with each > value returned, it works fine. Is there something special > about sql updates? There shouldn't be, are you using DTML in both methods? If so, I suspect one of the methods is using DTML which requires higher authentication privledges. -Michel ___ 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] UML
Douglas Daniel Del Frari wrote: > > Greetings! > > I am graduation student and I come using the platform zope for > development of systems directed to education. Cool. > One of the main > doubts when using zope, not only the syntax, but also as to use it to > develop applications using methodologies (former UML). As to use > concepts of Objects Oriented : inheritance, aggregation, dependence...? > Using its it of management screen? I'm not sure what you mean Douglas, do you want to know: 1) If we apply a design methedology to Zope or 2) How you can apply a design methedology to Zope? -Michel ___ 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] insert but updates don't work
On Sat, 04 Nov 2000 13:05:08 -0800 Michel Pelletier <[EMAIL PROTECTED]> wrote: > > There shouldn't be, are you using DTML in both methods? Yes. It's the same method, I just change the inner zsql statement. The one with the update fails, the one with the insert is okay. > If so, I > suspect one of the methods is using DTML which requires > higher > authentication privledges. > But I'm the superuser. When it fails the authentication, it says I don't have rights to access standard_html_header -- Graham Chiu ___ 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] Disabling SiteAccess/SiteRoot ..
Kindest.. Of course I did something wrong. ;) I need to disable the SiteRoot i implemented.. because right now all is /% up.. ;) Have you got any information about this? I am running this startup script as of now.. but it does nothing (esp. thinking of the env. variable that was stated on www.zope.org). #! /bin/sh #exec 2>&1 SUPPRESS_ACCESSRULE=yahoo export SUPPRESS_ACCESSRULE PATH=$PATH:/usr/local/bin PYTHONPATH=$PYTHONPATH:/usr/local/lib/python1.5/site-packages reldir=/usr/local/zope/Zope-2.2.1-solaris-2.6-sparc/ PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME export PYTHONPATH exec /usr/local/zope/Zope-2.2.1-solaris-2.6-sparc/bin/python \ $PYTHONHOME/z2.py \ -a 'localhost' \ -u 'zope' \ -m '' \ -f '' \ -p '' \ -F '8989' \ -d '' \ -w '' \ -D \ -Z '' "$@" Would apriciate any input! Kindest, Jørgen Skogstad ___ 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] How do I logout?
Hi all, How do I logout or switch users when running Zope? I've got some DTML code that does it - sometimes, othertimes it produces a keyerror. This must be a common problem - coz I'm logged in as super user and want to switch back to my regular username. Contributions of help greatly appreciated... Thanks. lee ___ 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] Disabling SiteAccess/SiteRoot ..
Try this: http://www.your-site.com/full/path/site-root/_SUPPRESS_SITEROOT/manage On Sat, 4 Nov 2000, [Windows-1252] Jørgen Skogstad wrote: > Of course I did something wrong. ;) I need to disable the SiteRoot ___ 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] How do I logout?
I don't know if there is an elegant way to do this. if i'm the superuser i just try to find a junk method (The QuickStart Tutorial does nicely) and change the text to include the following. (if i'm another user it the same thing applies but i generally create a logout method._ Log Me out Scotty when the basic auth box pops up, just change your username and click enter, next time the pop up happens click cancel. now when you try to browse around in any place requiring authorization, it will query you for your password as the new user. Kapil Lee Curtis wrote: > > Hi all, > > How do I logout or switch users when running Zope? > > I've got some DTML code that does it - sometimes, othertimes it produces a > keyerror. > > This must be a common problem - coz I'm logged in as super user and want to > switch back to my regular username. > > Contributions of help greatly appreciated... > > Thanks. > > lee > > ___ > 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] newbie
I decided to devote the weekend to installing a web server on my win2k pro box and bringing a site up. I chose zope because I needed to have some database stuff and I know python. Zope seemed a good fit and it is advertised as simple to administrate. I have installed a few IIS sites for clients. I observe that you support win NT, but at this point, I am not sure if you support win2k? My problem is whenever I try to use to management console, as to add a directory named for my domain, to start out on the content developer tutorial, I get a message something like superuser cannot own object. Although I have tried a few things, at the moment my zope account is the Administrator, since that seems like a good superuser account. I claim I am logged in as another user on the win2k box, who is a member of the administrator group. Reading the Admistrative doc, this sounds a bit like the web server is not passing authetication information, but at the moment I claim I have only Zserver running. I had installed apache, but decided I did not need this and the doc suggested I needed to do a few extra steps to get started, and I only have a meg pipe anyway, so I stopped apache and let ZServer start as a systems process? I hope someone kind will shed some light on my difficulty. ___ 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] newbie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Max, Sunday, November 05, 2000, 2:20:09 AM, you wrote: MMS> My problem is whenever I try to use to management console, as to add a MMS> directory named for my domain, to start out on the content developer MMS> tutorial, I get a message something like superuser cannot own object. MMS> Although I have tried a few things, at the moment my zope account is the MMS> Administrator, since that seems like a good superuser account. I claim I am MMS> logged in as another user on the win2k box, who is a member of the MMS> administrator group. I had this 'problem' also, and it turned out to be (as usual) me not reading the manual correctly. When You install Zope you're asked for a name and password for an superuser account. THIS USER CAN'T OWN ANY OBJECTS! So the first thing you need to do when the installation is done is to start Zope and log in as superuser and CREATE A USER! When You do this observe that you need to select the Role you want for the user Manager and/or Owner. I you don't select the can't do 'anything'... - -- Best regards, Andersmailto:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP 6.5i iQA/AwUBOgSsZqTtRA/JSm7JEQLhlwCdFxmUiIk+WifeV3evwJl8LFuzU6MAoJx4 lEq6zETOZzFcKLswvV0N3h9p =9UXU -END PGP SIGNATURE- ___ 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] newbie
New security measure in 2.2 - you only login as superuser (with the name and the password the install script gave you) long enough to create another user as manager. Out of the box, Zope doesn't use OS security. Also look at zpasswd.py. > tutorial, I get a message something like superuser cannot own object. ___ 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 for medium/large sites
Hi! On Thu, 2 Nov 2000, Bill Anderson wrote: bill.a> > The question is: Is zope up to this? bill.a> bill.a> Depends, would your site(s) be read-intensive, or write-intensive? We still don't know because the system now in production does not allow the same order of magnitude of dynamic content. But we're almost sure it'll remain read-intensive. bill.a> If you have the hardware: bill.a> o a dedicated SQL server to hold member authentication data We've Oracle as the backend. bill.a> o a dedicated ZSS, or two running in failover bill.a> o multiple ZEO Clients to support end-users, preferably behind bill.a>some Linux Virtual Server failover/load balancing setups We've a High Availability architecture with more that 10 machines, a raid box, etc... We're thinking precisely in ZEO... bill.a> That should be able to handle pretty much what you describe with ease. BTW, Do you know of any site with more than 10 registered users and lots of hits using zope? Best regards, Tiago ___ 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] newbie
Max, Please read the section titled "The Superuser" in http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx. Your problem doesn't really have anything to do with Windows... HTH, C - Original Message - From: "Max M. Stalnaker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 04, 2000 8:20 PM Subject: [Zope] newbie > I decided to devote the weekend to installing a web server on my win2k pro > box and bringing a site up. I chose zope because I needed to have some > database stuff and I know python. Zope seemed a good fit and it is > advertised as simple to administrate. I have installed a few IIS sites for > clients. > > I observe that you support win NT, but at this point, I am not sure if you > support win2k? > > My problem is whenever I try to use to management console, as to add a > directory named for my domain, to start out on the content developer > tutorial, I get a message something like superuser cannot own object. > Although I have tried a few things, at the moment my zope account is the > Administrator, since that seems like a good superuser account. I claim I am > logged in as another user on the win2k box, who is a member of the > administrator group. > > Reading the Admistrative doc, this sounds a bit like the web server is not > passing authetication information, but at the moment I claim I have only > Zserver running. I had installed apache, but decided I did not need this > and the doc suggested I needed to do a few extra steps to get started, and I > only have a meg pipe anyway, so I stopped apache and let ZServer start as a > systems process? > > I hope someone kind will shed some light on my difficulty. > > > > ___ > 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] Cookies & Expiration
On Fri, 3 Nov 2000, Steve Drees wrote: > Have a pythonmethod > > ID expireIn1Week > Parameter List self > _BODY__ > t = self.ZopeTime() + 7.0 # 1 week in the future > t = t.toZone('GMT') > > return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT") It (strftime) is correct as long as you don't use locales. (There's a bug related to this in ZServer/medusa/http_date.py.) [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ 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 )