[Zope] Zope 2.3 and manage_page_style.css unauthorized
Playing with 2.3.0a2, I discovered that if I log in to the management screen with a Manager user that is not defined in the root folder, I get an unauthorized error when accessing /manage_page_style.css (401 from detail log). If the Manager is defined in the root, everything works fine. A bug? How can I fix it? ___ Ron Bickers Logic Etc, Inc. [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 )
[Zope] [Skinscript] unable to update property
Hi Steve, I ran into a very tricky problem when developing a site with emarket. Here is the structure of my site: root |--acl_users(Membership product) |--emarket |--shoppers The acl_users is an instance of Membership product, which is as a specialist as shoppers, and they both have a WebIC_MemberClass zclass as their rack object class. The difference is that, acl_users stores WebIC_MemberClass persistently, while shoppers just reflects that storage. Here is the skinscript for shopper's rack: WITH acl_users.getItem(self.id) COMPUTE oo=RESULT WITH self.oo COMPUTE email, transCount WHEN OBJECT CHANGED STORE transCount USING self.oo.propertysheets.webic.manage_changeProperties(transCount=self.transCount) When emarket trying to increment a shopper's transCount, I ran into a "ZODB.POSException.ConflictError". The following is the traceback: Traceback (innermost last): File C:\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish File C:\WebSite\lib\python\ZPublisher\Publish.py, line 195, in publish File C:\WebSite\lib\python\Zope\__init__.py, line 188, in zpublisher_exception_hook (Object: ProviderContainer) File C:\WebSite\lib\python\ZPublisher\Publish.py, line 175, in publish File C:\WebSite\lib\python\Zope\__init__.py, line 235, in commit File C:\WebSite\lib\python\ZODB\Transaction.py, line 251, in commit File C:\WebSite\lib\python\ZODB\Connection.py, line 351, in commit (Info: (('*hdVMVCvgk/wIgJaYf/nkEA==', 'WebIC_MemberClass'), '\000\000\000\000\000\000d\357', '')) File C:\WebSite\lib\python\ZODB\FileStorage.py, line 664, in store (Object: C:\WebSite/var/Data.fs) ConflictError: ('\0039\323C4=\266\210', '\0039\323B\375\036\270U') Is it something wrong with my skinscript? cheers Dirksen __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.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] Newbie question: HTTP variables
I'm trying to figure out Zope (on a time crunch, too), and I'm wondering how to do something. How can I access HTTP variables in my DTML code? Specifically, I want to return code specific to the user's browser. I know that HTTP has provisions for determing browser version, are those accessible in DTML and how? If they are not accessible in DTML, is there a workaround (without oodles of javascript)? Another quick question: I see that Zope 2.3 will have "Script" objects. What's the closest I can come in Zope 2.2.5? Thanks, Michael ___ 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] Need help with ZGotW
On 12 Jan 2001, LARRY CHUON wrote: > Thank you, Tres. I hope your thanks aren't premature; I have a feeling I may have overlooked something (permission settings, most likely) needed to make ZGotW work (for non-managers) on a 2.2.* Zope. Please let me know if you run into further problems. > On Thu, 11 January 2001, Tres Seaver wrote: > > > > > LARRY CHUON <[EMAIL PROTECTED]> wrote > > > > > I have Zope-2-2-4 and just install ZGotW. When I try to add > > > ZGotW Issue and ZGotW Root, I receive errors such as "Empty > > > entry when integer expected" or "sequence index must be integer." > > > > The product you downloaded (version 0.0.2) was built for Zopes > > before version 2.2.*; I have uploaded a new version which is > > 2.2.* compatible: > > > > http://www.zope.org/Members/tseaver/ZGotW/ZGotW-0.0.3.tgz Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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] Has MailHost API changed?
Hi everyone, I had a perfectly functioning MailHost object until recently. Site visitors could email feedback to me from the Web page with no trouble. I can't pin it down exactly, but the breakage seems to coincide with a upgrade to 2.2.4 a while ago. The problem also exists in 2.3.0a2. Here's the traceback I get: Here's the method I use to send email: To: Feedback Recipient <[EMAIL PROTECTED]> From: Subject: Feedback from the web Feedback from : Comments: Thank you for your input! Your message has been sent. http://www.isd197.k12.mn.us/>Click here to return to the home page. Anybody see a problem? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.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] How to call 'inheritedAttribute' in ZClass dtml method
'testb' subclasses 'testa', and wants to call 'testa.do()' in one of its dtml method. I found in zope's source codes that zope tackles this with "testb.inheritedAttribute('do')()". Yet this doesn't work in zclass dtml method. The system complains not knowing 'testb'. How to refer to its zclass name? Any other ways for a zclass to call its base class's method? Please help! Dirksen __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.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] Problems with RESPONSE.redirect + SiteAccess
I have a weird problem with SiteAccess. I have a Python Product, that has a method; def manage_ProductsRedirect(self, RESPONSE, URL2, REQUEST={}): ''' Redirect to the Product Module ''' print URL2 RESPONSE.redirect(URL2+'/Packages') This code works when simply using the product, adding a bogus empty return has no effect. print URL2 is printing the correct BASE that I want to redirect to. Once I add a SiteRoot, everything else works fine, except the redirect, it just spins for an eternity before timing out. This is a Zope-2.2.4 install under FreeBSD. Anyone have any ideas? -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] hasRole bug or feature in 2.2.?
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > Dieter Maurer > Sent: Friday, January 12, 2001 5:00 PM > To: Chris McDonough > Cc: [EMAIL PROTECTED] > Subject: Re: [Zope] hasRole bug or feature in 2.2.? > > > However, if previously a protected object > has been accessed, then your browser may (and usually > will) send Authentication information with > all following requests. > A UserFolder will use this information (if present) > to authenticate the user, even if no permissions > are necessary for object access. > If successful, AUTHENTICATED_USER will not > be "Anonymous" even though the accessed object > is unprotected. I think I understand, but correct me if I'm wrong. The problem is that my browser is not even *sending* the authentication information to the other parts of the site until I first access a protected document at the root level. That is, the browser only continues to send auth info on levels at and below where I've requested a protected document. If that potected document is at the root level, I get the auth info everywhere in the site. Does this also mean that even after authenticating myself on one part of the site, accessing a protected document on another part of the site may result in an "unauthroized" response from Zope, to which my browser kindly responds for me without me realizing it? If this is true, it explains clearly Zope's behavior. It's really a browser "feature" and not a Zope issue at all. Given that, is it fair to say that I can never really be sure that an authenticated user (somewhere else on the site) accessing an unprotected document has a given role? Or would it be safe to assume that after accessing a root protected document, hasRole() will return the "right" answer anywhere in the site? If I can't safely assume any of the above, would I be better off using a session product to track a user after log in so I can determine their roles from an unprotected document? Any other ways? My goal, BTW, is to avoid showing certain content on an otherwise public page unless the authenticated user has the Member role. If there is a cleaner way to do this, I'm all ears. Thanks! ___ Ron Bickers Logic Etc, Inc. [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 )
[Zope] NameError: Zope2.3a2 and LoginManager-0-8-8b1
Hello, I try to install LoginManager on a new Zope2.3. I have made the before mentioned changes regarding Super and the product shows up fine in the Product folder. But I can not add a LoginManager in a normal folder with the attached error message. I have seen, others have already LoginManager running. Any ideas, where I can look for a clue? TIA, __Janko Error Type: NameError Error Value: path Traceback (innermost last): File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/zope/LOCAL/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/LOCAL/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addLoginManager) File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: addLoginManager) File /home/zope/LOCAL/zope/lib/python/App/special_dtml.py, line 127, in __call__ (Object: addLoginManager) File /home/zope/LOCAL/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: addLoginManager) File /home/zope/LOCAL/zope/lib/python/DocumentTemplate/DT_In.py, line 646, in renderwob (Object: UserSourcesMetaTypes(this())) File /home/zope/LOCAL/zope/lib/python/DocumentTemplate/DT_Util.py, line 330, in eval (Object: UserSourcesMetaTypes(this())) (Info: UserSourcesMetaTypes) File /home/zope/LOCAL/zope/lib/python/ZPublisher/HTTPRequest.py, line 802, in __getitem__ NameError: (see above) ___ 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] MySQLDA and MySQL-python - patch needed?
On Wed, 10 Jan 2001 [EMAIL PROTECTED] wrote: > My Zope-MySQL connection is still not quite working. It appears that the > request from Zope is reaching MySQL and it if is an UPDATE or INSERT query > it executes properly on the MySQL side. However, SELECT queries and similar > are not getting their information back to Zope from MySQL. Is there some > patch I am missing here? Anybody know how to fix this? > > FYI: > I installed from these rpms > > ftp://ftp.logicetc.com/pub/Zope/RPMS/MySQL-python-0.2.1-1.i386.rpm > ftp://ftp.logicetc.com/pub/Zope/RPMS/Zope-ZMySQLDA-1.2.0-1.i386.rpm You might also try: http://www.zope.org/Members/adustman for MySQLdb-0.3.0 and ZMySQLDA-2.0.1, which includes a transactional DA for MySQL servers with BDB tables (3.23.30 recommended). -- andy dustman | programmer | comstar.net is part of the Globix network telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!" ___ 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] MySQLdb
On Thu, 11 Jan 2001, Martin Fekete wrote: > sombody compiled MySQLdb under WIN32 ? Somebody has. Look for a link at: http://dustman.net/andy/python/MySQLdb/0.3.0 -- andy dustman | programmer | comstar.net is part of the Globix network telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!" ___ 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] FTP Woes and no answer
Are you using a recent version of Zope, where superusers cannot own objects? That could be the explanation... LR "J. Atwood" wrote: > > I have FTP'd into Zope before. No problems but all of a sudden it > seems like neither I nor the people I am working with can FTP in with > either a manager or superuser account. I have tried to change the > port and all sorts of other things but on a few different > installations with different clients from different machines and OSes > it just does list any of the files in the directory. > > Has anyone experienced this? Know a work around? > > J > > ___ > 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] How do I get the size of an item ?
Daniel wrote: > You don't need the dtml-var inside another dtml-var i.e once you are in > dtml you are in it. try something like this > > > > > > Your advice was truly enlightning ! It didn't work exactly like this, but this one did exactly as shown (remeber path is like "06-01-2001/file.pdf"): <--- this gets me into the "06-01-2001" dir <--- this gives me the variable space for file.pdf I'll write a HOW-TO for this in my page, I think it's worth it. Thanks for your help all of your guys ! Dimitris http://atlas.central.ntua.gr:8000 ___ 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] Problem on using nested &
angie tel writes: > ... > > > As you recognized DTML tags must be *properly* nested... You can do: This way, you get a properly nested DTML structure. Dieter ___ 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 get the size of an item ?
Dimitris Andrakakis writes: >'])"> This is an FAQ (as you can imagine). The list has a searchable archive, where you can find anwsers to FAQ's. I think, you will also find a compiled FAQ list via the Zope documentation portal (zdp.zope.org). This time, still , I will answer your question: if you would like to use "" inside a Python expression, you can simply omit it (just use the "...") in most cases. It is more safe, however, to use "_[...]" instead, as this gives the same result. In your case (I suppose "path" is a string giving the filename (without path component) that can access the file from the current context!), you could probably use: If "path[11:]" contains pathname component, you probably will need to use "restrictedTraverse" (--> Online API reference). Dieter ___ 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 : SQL methods
K H Subrahmanyan writes: > I am using zope and gadfly for my project. > but while using the SQL methods, I get the error if I use the "like" option. > > E.g.. select * > from table > where > Emp_name like "*rama*" > > I will get the following error. Maybe, you should look at an SQL book or other SQL description... 1. strings are surrounded by '...' not "..." 2. the "match sequence" wildcard is "%" not "*" Dieter ___ 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] ZCatalog uniqueValuesFor
aZaZel writes: > ... "uniqueValuesFor" not updated after modification ... Almost surely a small bug in ZCatalog. A field index is implemented as a mapping from values to lists of documents. "uniqueValuesFor" returns this mapping's "keys()". When the field value of a document changes, this document is removed from the corresponding list. Obviously, a test is missing whether the result is the empty list. If it is, the key should be deleted. Probably, you can fix this yourself. The code is in "SearchIndex.UnIndex". If you fixed it, file a bug with patch report into the Collector. Dieter ___ 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] hasRole bug or feature in 2.2.?
Chris McDonough writes: > You didn't protect the isMember document. It's viewable by Anonymous. The > Zope security machinery short-circuits authentication for resources that > don't require it. This means that when you view a resource that's > unprotected, you view it "as Anonymous". Anonymous doesn't have the Member > role, so you see "You are NOT a Member" when you view /isMember. > > I don't particularly like this behavior, but it seems not to bother anyone > else. I think it should authorize you and set AUTHENTICATED_USER if you > pass in auth info regardless of the protection on the resource you're trying > to view. It would bother me a lot, if you were right :-) Fortunately, you are not completely right. What really happens is the following: when ZPublisher has located the object addressed by the request URL, it starts going back its way along PARENTS to find a UserFolder that can authenticate a user with sufficient permissions to call the object. If the object is unprotected, then no permissions are required. In this case, the top level UserFolder will return "Anonymous", if it is reached and it cannot authenticate the user. Therefore, an unprotected object can be called by Anonymous and in this case, "hasRole" is that of "Anonymous", as Chris reported. However, if previously a protected object has been accessed, then your browser may (and usually will) send Authentication information with all following requests. A UserFolder will use this information (if present) to authenticate the user, even if no permissions are necessary for object access. If successful, AUTHENTICATED_USER will not be "Anonymous" even though the accessed object is unprotected. Dieter ___ 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] whitespace normalization (was: [Zope] way to cleanup form input text?)
Chris Beaumont writes: > ... whitespace normalization ... An idiom for whitespace normalization is: "_.string.join(_.string.split(text_to_be_normalized))" It will replace any sequences of consecutive whitespace characters by a single space. You can not use it in all cases, as sometimes newlines are semantically important. The above idiom would convert them into space. Dieter ___ 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] with a variable
josh on writes: > This interprets "979226100" as a name! > > > > This doesn't: > This interprets "979226100" as an integer. You could use Dieter ___ 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 2.3.0 a2 and ZClasses
Can you explain how they don't work? What are they supposed to do and what do they do now? On 12 Jan 2001 16:29:08 -0500 John Verzani <[EMAIL PROTECTED]> wrote: > I am trying to upgrade my zope to see the new features in > 2.3.0 a2 > (from 2.2.4). I installed, copied my previous /var > /Extensions start > stop and access files and then started up zope. All works > well > *except* the few zClasses that I had written now do not > work. They > have survived previous upgrades. Can anyone point me in > the right > direction? I am unclear how to debug this as there are no > apparent > error messages. > > Thanks, > > John > -- > > . John Verzani > mailto:[EMAIL PROTECTED] . > . Dept. of Mathematics > http://www.math.csi.cuny.edu/~verzani . > . City University of New York tel: (718) > 982-3623 . > . College of Staten Islandfax: (718) > 982-3631 . > . Staten Island, NY 10314 > . > > > ___ > 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] upgrading from 2.1.x to 2.2.5+ (on Winxx)
Was there ever a binary to upgrade from 2.1.x to 2.2.0 or the equivalent? Could it be rescued? Now there appears to be no upgrader, and the manual upgrading process described in http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO doesn't sound fun (esp. as it's written for Unix). I have to do this on a few different machines (Win98 laptop, Win2K desktops/servers), so time/error savings would be nice... __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.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] FTP Woes and no answer
Try using PASSIVE mode for your FTP client. Did someone perchance put a firewall up between you and your server? -jon "J. Atwood" <[EMAIL PROTECTED]> writes: > I have FTP'd into Zope before. No problems but all of a sudden it > seems like neither I nor the people I am working with can FTP in with > either a manager or superuser account. I have tried to change the port > and all sorts of other things but on a few different installations > with different clients from different machines and OSes it just does > list any of the files in the directory. > > > Has anyone experienced this? Know a work around? > > J > > ___ > 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] ZMySQLDA and aggregate functions on Win
This is curious to me - I tried this on my Linux platform from mysql and it doesn't work. Perhaps I misunderstand what you are trying to do: SELECT COUNT(*) FROM mytable - returns a number - so I really don't expect it to work. I have a table - shop and a column in that table - article: mysql> select count(*) from show group by article; ERROR 1064: You have an error in your SQL syntax near 'show group by article' at line 1 Sorry if I misunderstand what you are trying to do - = Dave Woolston [EMAIL PROTECTED] Digital Creations www.digicool.com (716) 262-4715 > I have a problem with ZMySQLDA and aggregate functions in combination with > grouping on Windows. > When I say: > SELECT COUNT(*) FROM mytable GROUP BY myfield; > I get an KeyError 'Unhandeld'. > >SELECT COUNT(*) FROM mytable; > works fine, so does > SELECT myfield FROM mytable GROUP BY myfield; > but not the combination of both. > Also on a linux machine the error doesn't occur. Of course I tested the > queries from the mysql command line. > > Any help? > > Markus Kemmerling ___ 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] Potential BUG "manage_addProperty"(was: [Zope] get property of type 'list') (was: [Zope] get property of type 'list')
Hi Andrei Andrei Belitski writes: > ... manage_addProperties(id='tok', type='tokens', value=[1,2,3,4]) ... > ... > &dtml-tok; > yields > ['[1,', '2,', '3,', '4]'] > ... I now understand what happens: You interpret "type='tokens'" in a way, that the property value is a list. And indeed, when you access such a property, you will get a list. However, "manage_addProperty" expects the value for a property with "type='tokens'" to be a *STRING*, more precisely, a string of whitespace separated tokens. It splits this string at whitespace to obtain the list (this will be a list of *STRING*, never integers). You do not meet this expectation. What "manage_addProperty" does is to convert your list into a string (this gives '[1, 2, 3, 4]') and then splits this string at whitespace. This might be considered a bug, as it is inconsistent with "PropertyManager._updateProperty" which only converts, if the value has type string. I am not sure, however. If "manage_addProperty" would behave in the same way as "_updateProperty", then you could store your list of integers. However, the first time that you change *ANY* property of this object (through the management interface), your property would be converted to "tokens" for presentation and converted into a list of *STRING*s during "manage_editProperties". Nevertheless, I do not see a reason for "manage_addProperty" and "_updateProperty" to behave differently. What you can do? Difficult to say! Currently, you can not safely use lists of integers as property values. They can very easily be converted into lists of strings. Can you live with lists of strings? Dieter ___ 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] with a variable
I got it to work thanks for the help! it was the cobination of no quotes around the the userid AND setting the variable as a string not an integer! arrrggghh... thank godness, now I can have lunch. josh on ___ 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] FTP Woes and no answer
I have FTP'd into Zope before. No problems but all of a sudden it seems like neither I nor the people I am working with can FTP in with either a manager or superuser account. I have tried to change the port and all sorts of other things but on a few different installations with different clients from different machines and OSes it just does list any of the files in the directory. Has anyone experienced this? Know a work around? J ___ 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 2.3.0 a2 and ZClasses
I am trying to upgrade my zope to see the new features in 2.3.0 a2 (from 2.2.4). I installed, copied my previous /var /Extensions start stop and access files and then started up zope. All works well *except* the few zClasses that I had written now do not work. They have survived previous upgrades. Can anyone point me in the right direction? I am unclear how to debug this as there are no apparent error messages. Thanks, John -- . John Verzani mailto:[EMAIL PROTECTED] . . Dept. of Mathematics http://www.math.csi.cuny.edu/~verzani . . City University of New York tel: (718) 982-3623 . . College of Staten Islandfax: (718) 982-3631 . . Staten Island, NY 10314 . ___ 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] with a variable
thanks Steve and Rick, Unfortunately both your solutions brought up this error: Error Type: SystemError Error Value: bad argument to internal function > > > > > or > > > This works: > > > > > > I want to get some properties for a zclass instance after being passed its id in a variable. In these tests I have been defining the varible in the code, in the final case it will be passed through the url. Using the id directly as above works fine, it writes the attribute to the page. Thanks for any help, Josh On ___ 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] get property of type 'list'
Hi, Andrei I think I have it figured out. I just submitted something similar to the Collector about an analogous problem I have been having with 'lines' properties. When you create your tokens property, you should make its value a string, like: '1 2 3' not a list: [1, 2, 3] If your data is in a list and you want to use that list as tokens, you need to join the list into a string first: mylist = ['1', '2', '3'] fortokens = string.join(mylist,' ') That's the python, but you can do it in DTML using _.string.join(. Be careful to convert your integers to strings first. What's happening to you is that the string representation of the list, "[1, 2, 3]" is getting stored verbatim as your tokens property, and ZPublisher/Converters.py is then splitting it on the spaces when you ask for it. Which is how you get that weird '[1,' '2,' '3]'. -- Jim Washington Andrei Belitski wrote: > > Hi! > I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2, > 3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]' > instead of '1' '2' '3' > How can I get Zope to interpret my property like a list not a string or > whatever else? > Thank you in advance! > > ___ > 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 ) -- Jim Washington Center for Assessment, Evaluation and Educational Programming Department of Teaching and Learning, Virginia Tech ___ 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] with a variable
I want to read an zclass instances' properties. I want to make some dtml that can be passed the instances' id then give me the properties that I request. I was trying and it worked when I plugged the id striaght into it, but when I tried substituting that with a dynamic varible I couldn't get it to work. I have been trying some other approaches that maybe someone could tell me if I am on the right track or if there is some cumentaion that could help me out. I have been going through the list archives for hours! here is a my latest failed attempt! I know that I could use the Catalog, but it seems crazy to have to track everyvariable property of an object that I want to access. I am sure that this is a basic problem and would love some help with it. josh on ___ 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 get the size of an item ?
ethan mindlace fremen <[EMAIL PROTECTED]> wrote: > > > Thanks ethan (& dieter too). I'm terribly sorry about requesting a receipt (I had the option on OE forgotten), it will not happen again. I have tried your suggestion, and indeed it works. Now, how does this work when the "file.pdf" is given as a DTML-VAR ? The situation is, I retrieve the file names from MySQL, so what I actually have is a . "Path" is something like "06-01-2001/file.pdf". So I try this, but it won't work (it won't parse, actually). '])"> I guess my question is actually about nested DTML, isn't it ? Dimitris http://atlas.central.ntua.gr:8000 ___ 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] Fwd: [Zope-dev] How to delete ZServer's zombie channel?
Hi, some times I see in my /Control_Panel/DebugInfo/manage, channels opened longer than 48378.26s. How can I kill/delete a specific zombie channel/request? Thanx, Júlio Dinis Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Fwd: [Zope-dev] Zope max script execution time?
Hi Is there a way to define a timeout or max script execution time for zserver requests? Thanx, Júlio Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] ZCatalog uniqueValuesFor
Hi, I have developed a web site for a customer where he add some ZClass instances that are zcatalog-aware. Everytime he edits the instances i do a reindex_object after the commit of the changes. I'm using the uniqueValuesFor () method do get the values of a field index on some forms but i found a quite strange behaviour. When he adds an instance , the value of the instace's indexed property is added (if the value is new) to the list that uniqueValuesFor returnsfine...it's correct . But when he deletes that instance, the uniqueValuesFor method still returns that value even if it should not be on the index. I think there is a problem of index referesh, but i have to do a full reindex to return the right list (e.g. without "dead" values). Im using Zope 2.2.0 and the catalog is running with subtransaction disabled . I have tried it on Zope 2.2.4 as well with the same results. Has anyone a workaround for that problem? I'm doing something bad? please help me! Alberto ___ 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] way to cleanup form input text?
Write an external method in python that uses regsub.sub or regsub.gsub functions. This allows you to do regular expression substitutions. regsub.sub does a replace on the first match only regsub.gsub does a replace on all matches Ex: import regsub def process_a_string(self): """Processes a string, where string is passed as self""" result=regsub.gsub('[ \t][ \t]+', ' ', self)#Filters all duplicate spaces and return result #tabs down to one space char where somestring is our example attribute call this in dtml: is somemethod is a method returning a string: Sean -Original Message- From: Chris Beaumont [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: [Zope] way to cleanup form input text? Is there a simple way to clean up text that's input to HTML forms in Zope? I have a situation where one of my users is copying text from her web browser and pasting it into Zope. I'm sure this is a common problem.. The input text ends up having runs of whitespace characters in it that I'd like to prune down to one each..and I think it's also been the source of some non-standard, unwanted characters that cause problems if they end up getting into our database.. I'm sure someone else has encountered this problem before..what's the best way to fix it? The string module doesn't seem to have what I want.. (or at least I couldn't find it..) The worst problems seems to be long strings of spaces or tabs that I'd like to turn into single spaces..(each) Thanks! Chris [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 ) ___ 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] Too much meta-type in add list
Hi, Since long time ago I have this reflexion. Now I have installed so many thing in Zope the add list combobox is huge : There are too many meta-type item in add list. Is is possible to organize sublist of meta-type into products sublist ? FRC ___ 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] cross-reference tool
Ragnar Beer wrote: > > Hi Zopistas! > > The more variables I have in my external methods the greater the > danger becomes that a typo slips through my alert eyes ;) and the > more I wish I had a cross reference tool to check variable occurences. > > What are > you using for debugging Zope stuff? USERS! -- Tim Cook -- ___ 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] OpenBSD 2.8 woes
Hello folks, first of all, I've installed Zope on my FreeBSD workstation (from the ports) and I love it. I can't really do anything productive yet ;o)), but the potential and power of the program's clear to me. Now, after talking to my boss, I plan to set up the relaunch of our website to be based on Zope. As OS I'd like to pick OpenBSD, since it's nice, fast and secure and I generally have an affection towards xBSDs However, after installing the Python packages that comes shipped with the OpenBSD 2.8 CDs, the Zope installation script runs nicely, but when I try and access the management screen, I only see LOADS of error messages: Zope Error Zope has encountered an error while publishing this resource. Error Type: ParserError Error Value: Expected node type 12, got 312. Could anybody enlighten me??? I don't know Python (yet), so the tracebacks are not too informative for me ... Cheers, Jan -- Radio HUNDERT,6 Medien GmbH Berlin - EDV - [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] Zcatalog with Word Documents
Nuno Goncalves wrote: > > Hi there ! > Is it possible to catalog the content of a word document with Zcatalog ? > If so i would apreciate that someone could tell me how !! The list archives are a great resource: http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchView=++&Query=MSWord -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 "When the government fears the People, that is Liberty. When the People fear the Government, that is tyranny." ~~ Thomas Jefferson ___ 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 on using nested &
I have been created the 4 different sql method, the first is sqlSearchcust1: select * from customer where custid= AND custname= //This method will be call when i have to enter both exactly similar to custid and custname in order to search the record. second is sqlSearchcust2: select * from customer where custid="" AND custname LIKE "%%" //This method will be call when i only enter the few words to search the custname of the records. third is sqlSearchcust3: select * from customer where custid= AND custname="" //This method will be call when i only enter on custid to search the records. If both empty it will link to another URL to display all the customer record. The problems is i'm not sure my dtml in order to control the loop of choosing the correct sql in the right situation. The following is my DTML:- "]==custid","_[""]==custname"> "]==custname"> "]==custid","_[""]==custname"> Please help me on correct the dtml Thank You! _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] cross-reference tool
Hi Zopistas! The more variables I have in my external methods the greater the danger becomes that a typo slips through my alert eyes ;) and the more I wish I had a cross reference tool to check variable occurences. Is there such a tool for python? (I've never heard of one.) What are you using for debugging Zope stuff? Ragnar ___ 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] Zcatalog with Word Documents
Hi there ! Is it possible to catalog the content of a word document with Zcatalog ? If so i would apreciate that someone could tell me how !! Thanks ! Best regards Nuno k ___ 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] ENC: [Zope] HELP re: MailHost and Hotfix 2000_-12-08
Hello All, I have the version 2.2.5 installed and, since then, I'm getting the same error when I try to add a new portal object. Any help? Paulo Fernandes [EMAIL PROTECTED] -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Em nome de Shane Hathaway Enviada em: Terça-feira, 2 de Janeiro de 2001 19:47 Para: Norman Khine Cc: [EMAIL PROTECTED] Assunto: Re: [Zope] HELP re: MailHost and Hotfix 2000_-12-08 Norman Khine wrote: > > Hello, > I am having difficulty in setting up the MailHost on the Zope Server. > Every time I try I get an error: > > Zope has encountered an error while publishing this resource. > > Debugging Notice > > Zope has encountered a problem publishing your object. > Cannot locate object at: zope/manage_addProduct/MailHost/manage_addMailHost > > I am having the same problem as a post I found on the eGroups list Two solutions: 1) Temporarily move Hotfix_2000-12-08 to a different place on your system, restart Zope, create the MailHost, move the product back, and restart again. 2) Upgrade to Zope 2.2.5b1. Shane ___ 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] MySQLDA and images beeing corrupted
Change your dtml to: hth Phil - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 12, 2001 12:18 PM Subject: [Zope] MySQLDA and images beeing corrupted > > I am using Zope 2.3a2, and MySQLDA 1.1.3, with one patch installed (it was > supposed to fix problems with autoincrement fields) > > Everything is installed, with no apparent problems. > > I would like to store images as BLOBs in a MySQL database (version 3.22) > > I am able to store the images in the database, but somehow, along the way, > they become corrupted, and show up in the browser as a corrupted image. > I can, howover, recognize some of the features of the original image. The > top part is mostly intact, and the colours seem right. > > The image is retreived from the database like this: method named "image", > with everything *on one line*. > > > > > > > > With "hent-bilde" as follows: > > select * from bilder > where > > > The URL used is: "/image?id=10" > > > The image is stored in the database as follows: > > > insert into bilder > (bildefil, kilde, kommentar, bildetype) > > values ( > > , > > , >, > >); > > > > Any ideas? > > I feel like I am *so* close to making this work! > > > Åsmund Hjulstad > > > > ___ > 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: [Fwd: [Zope] PoPy Installation. Where's the BEEF?]
> The PoPy module is not installed > > So, it looks like I need to install PoPy. I went to www.mixadlive.com (PoPy > PeOpLe :) and couldn't find > it there (I don't speak Italian, so it may be right under my nose). I've > searched the > Zope archives and didn't see any leads there. > > Can anyone give me a pointer? popy and zpopyda moved to sourceforge some weeks ago, try http://popy.sourceforge.net hope this helps, federico -- Federico Di Gregorio MIXAD LIVE Chief of Research & Technology [EMAIL PROTECTED] Debian GNU/Linux Developer & Italian Press Contact[EMAIL PROTECTED] Put a GNOME on your desktop! [http://www.gnome.org] -- brought to you by One Line Spam ___ 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] MySQLDA and images beeing corrupted
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Any ideas? >I feel like I am *so* close to making this work! It sounds like you have some sort of escape problem, with special characters being handled as text. Don't you have to treat the image as text when inserting them into mySQL and then escape special characters? I betcha there is a special function for that. Try it. regards Max M ___ 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] MySQLDA and images beeing corrupted
I am using Zope 2.3a2, and MySQLDA 1.1.3, with one patch installed (it was supposed to fix problems with autoincrement fields) Everything is installed, with no apparent problems. I would like to store images as BLOBs in a MySQL database (version 3.22) I am able to store the images in the database, but somehow, along the way, they become corrupted, and show up in the browser as a corrupted image. I can, howover, recognize some of the features of the original image. The top part is mostly intact, and the colours seem right. The image is retreived from the database like this: method named "image", with everything *on one line*. With "hent-bilde" as follows: select * from bilder where The URL used is: "/image?id=10" The image is stored in the database as follows: insert into bilder (bildefil, kilde, kommentar, bildetype) values ( , , , ); Any ideas? I feel like I am *so* close to making this work! Åsmund Hjulstad ___ 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] 2.3.0a2 - missing a file
On Fri, Jan 12, 2001 at 12:27:47AM -0800, [EMAIL PROTECTED] wrote: > > I just downloaded and installed Zope 2.3a2, after setting > up a new database connection ( ZMySQLD ), I went to to > test it and lo-and-behold! No customDefaultReport.dtml for > which to display the results! > > Anyhow, I just grabbed it off the 2.3.0a1 tree and put it > in it's rightful place ( lib/python/Shared/DC/ZRDB/ ), and > things work fine. > > Anyhow, just a heads-up... The problem is fixed for the next release, in CVS. All DTML files were moved to dtml/ subdirectories, and two references to them were missed and not fixed. You could also have copied the file from the a2 lib/python/Shared/DC/ZRDB/dtml subdirectory :) The fix is easy. Open lib/python/Shared/DC/ZRDB/Aquaduct.py and change line 102 to read: dtml_dir=Globals.package_home(globals()) + '/dtml' If you use the new CatalogPathAwareness base class you need to fix that too, by changing line 104 to read: manage_editCatalogerForm=HTMLFile('dtml/editCatalogerForm', globals()) -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ 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] 2.3.0a2 - missing a file
> By the way -- kick-ass bit of work guys. I'm really > impressed with the rapid development of Zope, as well as > it's feverishly dedicated community. And the new management > interface ain't half bad either! Yeah, I'm taking a look at it at the moment. Looks good, slicker and cleaner UI, though not sure about the 'Zope banner' frame at the top - maybe it's just may inate dislike of frames showing through ;-) Anyway, good work everyone. John -- John Chandler / Software Developer / New Information Paradigms Ltd [ Linux in the office, AmigaOS in the home, PalmOS in the pocket ] The opinions above aren't those of my company... ...but then, they aren't really mine either. ___ 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 vs. java solutions : looking forward ?
>Actually, I think their problem with python is that they are scared to >invest in learning it and not be able to use it for future projects. I don't think there's much investment required to "learn Python". Any techie worthy of the name should be able to pick it up in a matter of hours or at most a couple of days. That's the beauty of Python - it is simple, but powerful. Typically we allocate a day for students (even straight from school) to learn enough Python to start working on projects. I really wouldn't worry about the investment required to learn Python. The Zope learning curve used to be quite steep, I know there's been lots of work done to make it easier, but I haven't taken anyone through it recently to know what its like now. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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 Marketing
> I searched on several sites for Zope Marketing products like > e.g. high quality color PDF or slides, targeting management > or marketing people. Not a bad idea. I wouldn't mind having a go at it, can someone at DigiCool send me a large version of the Z ball logo and the fonts used by 'Zope'? Cya Jonathan ___ 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] Limited File object size?
Stuart Foster wrote: > > Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) > Python version: 1.5.2 (#1, Sep 30 2000, 18:08:36) [GCC 2.95.3 19991030 > (prerelease)] > System Platform: linux-i386 > > I should mention I was able to ftp the files to the folder. Try upgrading to 2.2.5. if that doesnt' work, file a bug report in the collector: http://classic.zope.org:8080/Collector/ cheers, 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 )
Re: [Zope] Downloading All Zope products
On Thu, 11 Jan 2001, Marcin Kasperski wrote: > Very nice, thanks. Nevertheless, I still dream about some categorized > Zope products directory, which could be downloaded with one step and put > on the CD-ROM (I mean sth like your page but with content categorized - > like the zope products page on zope.org do - and annotated with recent > change date and required zope version). I've done it. Look at the new version at http://www.zope.org/Members/jerome/ZCPL Comments are welcome. bye, Jerome Alet ___ 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 vs. java solutions : looking forward ?
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 11, 2001 6:04 PM Subject: RE: [Zope] Zope vs. java solutions : looking forward ? > Frankly, it is a lot easier to program in python; it is much more forgiving > in a lot of senses. If your developers like the idea of Java because it is > OO, have them consider python's strong abilities, and the fact that they > will be working with a persistent object system / ODB that can make their OO > code much more than a filter for relational datasets. That said, if your > developers like java because it runs in a VM on several platforms, Zope is > cross-platform, and I guess Zope could be considered similar to a JVM: a > platform for running cross-platform code. Thanks for your answer ! Actually, I think their problem with python is that they are scared to invest in learning it and not be able to use it for future projects. After reading the documentation of both Enhydra and Zope, I am pretty sure life would be easier for me in maintaining and expanding the site if we go for Zope. But I really should be able to convince them that we will not be investing in technology that has less possibilities for the future. Their concern is that they want to make sure the site is save for the future. It would be very nice if I could convince them of trying to sell Zope solutions, but I guess it is difficult because of the hype Java gets. I mean, I am no match to Oracle salespeople ;-) > > I don't think Java is a wise direction for a small firm; at least in Zope, > you can start off with simplicity, and graduate to bigger solutions without > a huge investment in lots of developers in the future. > > What kind of site do you have? For e-commerce, you are going to have heavy > use of relational databases, but for publishing articles, you might want to > consider using the ODB, something you are not going to get with Java > solutions... I use Zope with XMLDocument and custom ZClasses for content, > and it is a lot easier to get things done quicker that way... > We will never be a huge site because we have a very select public (musicians). But we have to provide them with a lot of content (we get government money for that). There is no money for full-time developers (right now I am the only one maintaining and expanding the site), so it is *very* important that I can quickly add pages and templates and leave the actual writing of the content stuff to artistic people (they have no experience in computing whatsoever). We are using a large database (MySql), but I understood Zope has no problem with this. Henk > -Original Message- > From: Henk Schets [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 11, 2001 12:58 AM > To: [EMAIL PROTECTED] > Subject: [Zope] Zope vs. java solutions : looking forward ? > > > Hi, > > We are planning a major update of our site (i.e. building a new one). At > the moment our site is based on php,cgi, MySql and Apache on Linux. > However, for the new site, we are considering other 'platforms' like Zope or > Enhydra. I find Zope an elegant solution for our new site because we will > be relying heavily on non-technical people contributing articles for > publication. But the problem is this : the development will be made by a > small commercial firm (the guys who work there are friends) and they are > biased towards a java solution because they think this will be a standard > for the future. They do not want to invest in learning Zope en end up in > not being able to sell their acquired knowledge in this. I should note > that, at the moment, they have no experience in Java nor Python, so they > will have to learn one or the other. > The problem I will be facing is the maintenance of the site and adding new > features. > What do you guys think ? Does Zope have a future with respect to e.g. > Enhydra (this is Python versus Java for internet applications)? Does > someone have experience with both and can you comment on the learning curve > ? > > > Thanks, > > Henk > > > ___ > 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] reindex when a zclass is edited
On Thu, 11 Jan 2001, Tim Hicks wrote: > from a builtin edit form as my template. One thing doesn't work now though, > and that's making the textarea wider/narrow/etc. Obviously, this is because > I have static values put in for the dimensions of the text area, but I'm not > sure how to alter this to make it work... any pointers? I use this code for that purpose: [EMAIL PROTECTED], [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 )
[Zope] ZOPE : SQL methods
hi, I am using zope and gadfly for my project. but while using the SQL methods, I get the error if I use the "like" option. E.g.. select * from table where Emp_name like "*rama*" I will get the following error. Zope Error Zope has encountered an error while publishing this resource. Error Type: SyntaxError Error Value: unexpected token sequence.near :: 'est\012where \012Emp_name'*' like "*rama*"' *** current state = 57 expects: 'HAVING', 'UNION', 'GROUP', 'VARCHAR', 'DESC', 'SELECT', 'ORDER', 'WHERE', 'AS', 'EXCEPT', '*', 'IN', 'INTERSECT', 'FLOAT', '+', '(', ')', '.', '/', ',', '-', 'AND', 'FROM', '*', ';', 'INTEGER', 'NOT', '>', 'OR', '=', 'BETWEEN', 'ASC', '<', 'VALUES', ('nomatch1',) current token = ((-8, 'user_defined_name'), 'LIKE') kindly help thanks bye subrahmanyan. ___ 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 Marketing
I searched on several sites for Zope Marketing products like e.g. high quality color PDF or slides, targeting management or marketing people. The stuff I found usually targets programmers or administrators. I know, that a lot of programmers don't need, want or use clean documentation. I created a multimedia CD-ROM demonstrating the ease of using Zope. These people need to see, how you can enter a management screen by entering /manage on the URL line. Otherwise they won't believe it. So what I need is not a slide serie about the capabilities of ZSQL or administration possibilities. It is the usual high-glossy M$-style prospectus, those people are used to read. Can you share some URL's about documentation targeting marketing and management people? TIA -goe- http://www.goeldi.com/e _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Downloading All Zope products
On Thu, 11 Jan 2001, ethan mindlace fremen wrote: > Jerome Alet wrote: > > > > You can find it at http://www.zope.org/Members/jerome/ZCPL > > This is not a dreadful thing, but how is it different from: > > http://www.zope.org/Products/all_products?batch_size%3Aint%3Arequired=265 It is VERY different because your page isn't easily suckable with Wget or other similar tools: it contains lot of links which will pollute your downloaded directory: the goal is to suck all products in one Wget run. My page is more ressembling Martijn's one at http://www.zope.org/Members/mj/AllProds In fact these two pages are almost exactly the same, because I wasn't aware of Martijn's one existence > What I don't like is people using wget to suck the entire site and then > hitting (for example) the "tree" version of the Zope Quick Reference and > expanding *every single node*. ;-) bye, Jerome Alet ___ 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 )