[Zope] why does squishdot url_quote email address values?
Version 0-7-2 of Squishdot seems to use the url_quote option when accessing the value of admin_address in particular, so when a DTML page has code like and admin_address is a property with the value "[EMAIL PROTECTED]", the resulting HTML code is foo%40bar.com which doesn't work correctly, particularly when used as the value of a 'mailto:' URL. So what's the solution? Is Squishdot wrong to use url_quote this way? Why is url_quote hiding the "@" anyway -- I don't see any reason for escaping it this way. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ 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.1.3 ->2.2.2 transition problems
Hey Kevin, I had the same problem when upgrading from 2.1.6 - 2.2.2 but have not found an answer at all. I followed the directions that I found on Zope.org to the letter but to no avail. I checked the products and they all work in a clean install of 2.2.2 If you find out anything let me know. Thanks, J At 4:52 PM -0400 10/3/2000, Kevin Worth wrote: >I just recently upgraded to 2.2.2. Upon upgrading, all instances of >products that I created are broken. The products themselves are not, >just every instance of every product that I made. External and >standard products work just fine. > >Strange part coming up: I can make new instaces replacing the broken >ones. However, 10-30 minutes after creating these new instances, the >new instances are broken. I've tried this twice, with the same >results. > >Anyone have any ideas? > >Thanks > >Kevin >-- >--- >Kevin Worth <[EMAIL PROTECTED]> >Computer Systems Specialist II and Adjunct Lecturer >Department of Materials Science and Engineering >University of Michigan >___ >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] script execution timeout?
=?ISO-8859-1?Q?J=FAlio?= Dinis Silva writes: > Is there a place to define a script execution timeout? I do not think so. > I've been using urllib and there is no way to kill a urllib.open > if its taking too long. Does zope has that implemented? There is a patch to Python's "httplib" providing a socket timeout option. Unfortunately, not all OS support the necessary socket system call, e.g. my Linux 2.0.36 does not. Maybe, your OS does. 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] database connection problem (halting Zope)
Hrasky Petr writes: > thank you for answers. To clarify: > I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and > Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC, > Sybase11.5)at work. Oracle connection at work and MySQL (at home just > for testing) run looong queries and halt Zope. I have no such queries > for Sybase yet. > I will try to recompile python for linux, but I can't do so for WinNT > as I have no compiler. Anyway I thought the python distributed with > binary release of Zope is threaded, no? If Python is compiled without threads, there is no module "thread". Zope relies on this module. It dies immediately, if it is not there. Thus, you can be sure, your Python has thread support compiled in. > So, does anybody know of either binary and threaded Zope driver for > Oracle , Sybase etc. or the same ODBC driver? And what is the state of > python threading on WinNT paltform? The Python that comes with Zope has thread support compiled in. Maybe, your Python-ODBC connection "forgets" to release Python's interpreter lock. We, once, had such a problem. Accidentally, the DCOracle module had been set up with a standard Python distribution (with threading disabled) rather than the Zope Python. As a consequence, the DCOracle did not call "releaseLock" and "acquireLock" (as they would not be present in a non-threaded Python). And, of course, database operations blocked Zope. 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] script execution timeout?
seb writes: > > Is there a place to define a script execution timeout? > Try setting an alarm using the signal module, wrapping the GET request > in a try clause, and then setting the alarm to 0 in the finally clause. Be very careful with signals of any kind inside Zope: I had to patch ZServer, as the Oracle client library used signals (probably SIGALRM) when the Oracle server was unavailable. Under Solaris 2.7, this resulted in ZServer's "select" call being aborted with "Interrupted system call". Zserver was unprepared for this event and died. 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] Access problems
Danny William Adair writes: > I have a serious and extremely urgent problem concerning my zope > installation (2.2.1 on Unix): Whatever resource I'm trying to access, I get > the following > . > File > /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line > 514, in old_validation > (Object: broken) > AttributeError: (see above) Is it possible, that you upgraded from an earlier Zope installation? The traceback suggests that your requests tries to access the object "broken", probably an object from a broken product. I suggest, you start Zope with "STUPID_LOG_FILE=zope.log". This should log problems during Zope startup to "zope.log" (you may need to upgrade to Zope 2.2.2, as earlier Zope versions lost one exception log due to a missing "flush"). If you see no problems logged, try to go to "Control_panel/ProductManagement" and check whether there are broken products. 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] Only superuser can set Proxy on DTML methods?
> It seems that when I'm managing my website as a Manager (from > acl_users folder) I can not set a proxy role for a method or document. I > get "you do not have the proxy role" something like that. > > But I can't see anywhere how to enable my userid to have this proxy > role. > > So only the superuser can set the proxy role for a document. But once I > do that, I can't edit it anymore as Manager (expected) > > So .. how can a Manager grant the proxy role on documents? If I read your description correctly, it is closely related to a problem I reported several times to the collector (a year ago), but was never solved. See: http://classic.zope.org:8080/Collector/916/view Rik ___ 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] IMAP and Zope!
[Joachim Werner] | Does anybody use the old IMAP Adapter successfully with Zope 2.2.x or know an | alternative solution? I'm developing an Outlook/WorldPilot replacement; which is much more modular in design. It will be released under the GPL. When and where I don't know yet. It stores messages in 'pure' ZODB format (that is, the entire message is broken down and stored in various parts of the object), with _all_ the information from the original message stored, in a structured and indexable way. We're also including support for signing/verifying messages, with GnuPG. If this sounds interesting, send me an email.=) Regards, Morten ___ 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.1.3 ->2.2.2 transition problems
I just recently upgraded to 2.2.2. Upon upgrading, all instances of products that I created are broken. The products themselves are not, just every instance of every product that I made. External and standard products work just fine. Strange part coming up: I can make new instaces replacing the broken ones. However, 10-30 minutes after creating these new instances, the new instances are broken. I've tried this twice, with the same results. Anyone have any ideas? Thanks Kevin -- --- Kevin Worth <[EMAIL PROTECTED]> Computer Systems Specialist II and Adjunct Lecturer Department of Materials Science and Engineering University of Michigan ___ 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] List
> > I'm storing a selection of a user to a database as string. This selection > > is a multiple selection from a select box and is outputted as a list. > > Now I want to iterate over this list (after retrieving it from the > > database), but how can I do this? How can I tell Zope that the string is > > actually a list? How can I typecast in Zope? , but that won't work in this case as you'll get a resultant [something,] > > Use a python or external method to make a list from your string. I am > supposing you are storing a string representation of the list that looks > like: > > "['fred', 'bob', 'mary']" > > Get rid of any punctuation you do not want with (e.g.) > > theString = string.replace(theString, '[', ' ') > > (Yes, there are more efficient ways to do this!) > > Then, once you have a space-delimited list of items, you may use > > theList = string.split(theString) > > which will make a list of the words in the string. Return theList. > a python/external method is more elegant, but if you want this can be done in the same way from DTML: or using dtml-let But whether all this works depends much on what your database returns. Rik ___ 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] IIS port problem
> http://srnt/ChatClub/index_html note that most probably the reference will look something like http://srnt/cgi-bin/Zope.pcgi/ChatClub/index_html That is, you'll loose the port, but you rape your url. If you want a shorter url, you most probably have to do other (isapi like) things to IIS > > I don't want any reference to the server port 8080. > I have read several help documents on IIS and PCGI AND THEY ALL SAY > DIFFERENT THINGS. > One document said to copy the Zope.pcgi to the IIS cgi-bin folder and > another said to copy it to the IIS scripts folder. > the main point is you need _one_ (not several) Zope.pcgi file that has the proper locations of all the things needed in it. It does not matter where you put it. In your /pcgi/util directory there is a pcgifile.py script that will help you check the pcgi info file (that is the very Zope.pcgi file I referred to). If this doesn't report any errors, your IIS-pcgi connection will probably work. > One document showed the Zope.pcgi file path configuration completely > different from mine. The document showed : > PCGI_MODULE_PATH=X:\WebSite\lib\python\Main.py > > And mine showed > PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\lib\python\Zope > this may be true, but it's a strange place for a Zope installation > The document even had files I didn't have anywhere in my directory like > pcgi.soc and some in completely different folders like: hm, IIRC the soc file is Unix only. > Help document: > PCGI_MODULE_PATH=X:\WebSite\pcgi\pcgi.pid > > My file: > PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\var\pcgi.pid > > I know there must be a a simple way to accomplish this. It can be simple, but it may turn into a nightmare if it doesn't work (you have been warned). As a comfort, it took me no more than a quarter of an hour to get it installed on several different NT machines. I just need someone > to tell me how to do it STEP BY STEP. Your best step by step guide is on http://zdp.zope.org/projects/zbook/book/VII/PlatformInstallation/InstallDraf ts/instwindraft3/ hth Rik ___ 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] UserDB plus crypt
Since I couldn't get LoginManger to work, I started modifying UserDb to handle encrypted passwords... I've changed it so the encrypted password is stored in the DB, but I haven't been able to get it to authenticate. Can anyone offer any insight as to what I need to do? My modified UserDb.py is attached. Thanks! -ed- """User Db product This product provides support for User Folder-like objects that store data in back-end databases. CREATE TABLE users ( username varchar(255) NOT NULL, password varchar(255) NOT NULL, domains varchar(255), roles varchar(255) ); """ __version__='$Revision: 1.13 $'[11:-2] import Globals, App.Undo, socket, regex from Products.ZSQLMethods.SQL import SQL from Globals import PersistentMapping from Globals import Persistent from Globals import HTMLFile, MessageDialog from string import join,strip,split,lower from App.Management import Navigation, Tabs from Acquisition import Implicit from OFS.SimpleItem import Item from OFS.Document import Document from base64 import decodestring, encodestring from urllib import quote, unquote from ImageFile import ImageFile from AccessControl.Role import RoleManager from AccessControl.User import BasicUser, BasicUserFolder from string import split, join, upper, lower ## Crypt toolkit ## import crypt, random ListType=type([]) class User(BasicUser): icon='misc_/UserDb/User_icon' def __init__(self, name, password, roles, domains): self.name =name self.__ =password self.roles =filter(None, map(strip, split(roles, ','))) self.domains=filter(None, map(strip, split(domains, ','))) def getUserName(self): return self.name def _getPassword(self): return self.__ def getRoles(self): return self.roles def getDomains(self): return self.domains class UserDb(BasicUserFolder): """ """ meta_type='User Db' id ='acl_users' title='User Db' icon ='misc_/UserDb/UserDb_icon' isPrincipiaFolderish=1 isAUserFolder=1 encryptedpasswords=1 manage_options=( {'label':'Contents', 'action':'manage_main'}, {'label':'Properties', 'action':'manage_properties'}, {'label':'Security', 'action':'manage_access'}, {'label':'Undo', 'action':'manage_UndoForm'}, ) __ac_permissions__=( ('View management screens', ['manage','manage_menu','manage_main','manage_copyright', 'manage_tabs', 'manage_properties', 'manage_UndoForm']), ('Undo changes', ['manage_undo_transactions']), ('Change permissions', ['manage_access']), ('Manage users', ['manage_users']), ('Change User Dbs', ['manage_edit']), ) manage_properties=HTMLFile('properties', globals()) def __init__(self, conn_id, cookie_mode=0): self.conn_id=conn_id self.cookie_mode=cookie_mode self.docLogin =Document(_docLogin, __name__='docLogin') self.docLogout=Document(_docLogout, __name__='docLogout') self.docLogin.__roles__=None self.docLogout.__roles__=None self.sqlListQuery=SQL('sqlListQuery', '', conn_id, '', _sqlListQuery) self.sqlUserQuery=SQL('sqlUserQuery', '', conn_id, 'username', _sqlUserQuery) self.sqlAddQuery=SQL('sqlAddQuery', '', conn_id, 'username password domains roles', _sqlAddQuery) self.sqlEditQuery=SQL('sqlEditQuery', '', conn_id, 'username password domains roles', _sqlEditQuery) self.sqlDelQuery=SQL('sqlDelQuery', '', conn_id, 'username', _sqlDelQuery) def getUserNames(self): """Returns a list of user names or [] if no users exist""" data=[] try:items=self.sqlListQuery() except: return data for ob in items: data.append(sqlattr(ob, 'username')) data.sort() return data def getUsers(self): """Return a list of user objects or [] if no users exist""" data=[] try:items=self.sqlListQuery() except: return data for ob in items: user=User(sqlattr(ob, 'username'), sqlattr(ob, 'password'), sqlattr(ob, 'roles'), sqlattr(ob, 'domains')) data.append(user) return data def getUser(self, name): """Return the named user object or None if no such user exists""" if name==self._super.getUserName(): return self._super try:ob=self.sqlUserQuery(username=name) except: return None if not ob:
[Zope] LoginManager Error
Hi! I'm getting a type error when I try to add a LoginManager to a folder. Any sugestions on how to get past this? My config: Zope 2.2.1 ZPatterns 0.3.0 LoginManager 0.8.6 The traceback: Error Type: TypeError Error Value: keyword parameter redefined Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addLoginManager) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addLoginManager) File /usr/local/zope/lib/python/Products/LoginManager/LoginManager.py, line 237, in manage_addLoginManager File /usr/local/zope/lib/python/Products/ZPatterns/PlugIns.py, line 313, in _constructPlugIn TypeError: (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 )
[Zope] Zope stalls indefinitely
Thought we had a problem of ours fixed, but here it is once again, a month later. Zope, every once in a while, will just stall indefinitely. The Zope process doesn't die, it just hangs. Everything was fine for a month or so, and now the problem's started again, about every hour. We're running 2.1.6 on Solaris with pgsql and the ZPyGre adapter and the most recent copy of FSSession. Any thoughts. I've posed this question to a lot of people many times. Now that it's back, I'm hoping for fresh insight. ___ 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: 'Offline' mailhost
On Tue, 3 Oct 2000, Chris Withers wrote: > What, IMHO, is really needed is a mailhost/sendmail tag type thing that > gets a message and a list of addresses to send it to. If it could do > that in a seperate thread/process/whatever so that whatever calls it > doesn't block, that'd be great. Of course, it'd need to have a 'hook > back' method provided so any errors that occured could be dealt with. > > I wonder how mailman does this stuff and if the code could be borrowed > for Zope? I don't have a quick answer. (It's been a long time since i worked on mailman, and this stuff in particular has changed a lot.) It looks like the code in Mailman/Handlers/SMTPDirect.py is what's of interest, and it doesn't depend too elaborately on the rest of mailman, which is good. I'm have no idea whether it solves the problem of doing unblocking delivery in a way that lets the delivery requester get a status back. Ken [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] IIS port problem
I am hoping someone can help me. I am at the end of my line. I have tried everything and nothing else works. I am trying to install Zope on my web server on which I have a small intranet. I am using Windows NT 4.0 and IIS 4.0. Ideally I was trying to use Squishdot with Zope to create a small discussion forum that can be accessed via the INTRANET. My Web server name is SRNT and is installed on my F:\ partition drive I installed Zope in the root cgi-bin directory and called my website ZopeSite. I selected the "Run as a win32 service" F:\InetPub\wwwroot\cgi-bin\ZopeSite\ I went to my browser (MS Internet Explorer 5.0) and accessed the Zope Site using the URL: http://srnt:8080/manage I successfully accessed my Zope site manager and everything was working just fine. Now comes the problem: I do not want to connect to the Intranet using the server port (8080) in the URL to access the Zope pages . I installed both Squishdot and TinyTables products on Zope and started building a Squishdot site, which I named ChatClub. However, the URL to access the Squishdot site looks like: http://srnt:8080/Control_Panel/Products/Squishdot/ChatClub/index_html I WANT IT TO AT LEAST SAY: http://srnt/Control_Panel/Products/Squishdot/ChatClub/index_html OR http://srnt/ChatClub/index_html I don't want any reference to the server port 8080. I have read several help documents on IIS and PCGI AND THEY ALL SAY DIFFERENT THINGS. One document said to copy the Zope.pcgi to the IIS cgi-bin folder and another said to copy it to the IIS scripts folder. One document showed the Zope.pcgi file path configuration completely different from mine. The document showed : PCGI_MODULE_PATH=X:\WebSite\lib\python\Main.py And mine showed PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\lib\python\Zope The document even had files I didn't have anywhere in my directory like pcgi.soc and some in completely different folders like: Help document: PCGI_MODULE_PATH=X:\WebSite\pcgi\pcgi.pid My file: PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\var\pcgi.pid I know there must be a a simple way to accomplish this. I just need someone to tell me how to do it STEP BY STEP. I am a Programmer/Analyst, but I am only a novice when it comes to servers and all the details. PLEASE HELP Regards, Suzette E. Ramsden ___ 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] List
Tom Deprez wrote: > > Hi, > > I'm storing a selection of a user to a database as string. This selection > is a multiple selection from a select box and is outputted as a list. > Now I want to iterate over this list (after retrieving it from the > database), but how can I do this? How can I tell Zope that the string is > actually a list? How can I typecast in Zope? Use a python or external method to make a list from your string. I am supposing you are storing a string representation of the list that looks like: "['fred', 'bob', 'mary']" Get rid of any punctuation you do not want with (e.g.) theString = string.replace(theString, '[', ' ') (Yes, there are more efficient ways to do this!) Then, once you have a space-delimited list of items, you may use theList = string.split(theString) which will make a list of the words in the string. Return theList. -- Jim Washington ___ 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] A hint on FSSession
> Why use javascript to access cookies? You can set and get them purely > using zope. http://www.zope.org/Members/BwanaZulia/cookies. Also, why > not install a session product (HappySession, FSSession, SQLSession...), > it'll probably make your life easier in the long run... > > seb > Yes, and if you choose to use FSSession, remember to rename the object to something other that "FSSession". Having an object called "FSSession" in more than one place can f**k things up in the namestack, so to be on the safe side, rename (note "rename") the FSSession object to something more unique after having created one. This caused me a lot of brain damage, and I had it explained by a friend after may failed attempts to understand the error messages. ___ 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 to access the items of an array...
Use the in tag: - Original Message - From: "zope" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 03, 2000 7:10 AM Subject: [Zope] how to access the items of an array... > Hi > > In a form, I defined an array variable as follows: > > > > > > > > > After submitting the form, gives me following result: > > ['112', 'sef', 'fg', '23', 'iuiu', 'tz', 'fgh', 'fgh'] > > My question is now how to access the different items of that array? > > Thanks a lot for your help. > > Marc > > > ___ > 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] IMAP and Zope!
Joachim Werner wrote: > > Hello! > > I am searching for a current IMAP Adapter solution for Zope. What we have found > so far is Ryan Hughes' WorldPilot, which has great IMAP support, but doesn't > really integrate with Zope, and the two products "NotMail" and "IMAP Adapter" > on the classic Zope site. The latter two seem to have been unmaintained for > quite a while. I agree, WorldPilot is nice but its hard to split into component functionality for integration into an a site. > Does anybody use the old IMAP Adapter successfully with Zope 2.2.x or know an > alternative solution? LoginManager. > We are working on an integrated groupware solution (it will all be open > sourced) and want to either store all documents (incl. mail) in a single > Zope-based storage or at least simulate that by dynamically wrapping the mails > into objects (similar to what Local_FS does with files on the file system). > > Thanks in advance! > > Joachim. > > -- > Iuveno - Smart Communication > > Joachim Werner > > _ > > Marie-Curie-Straße 6 > 85055 Ingolstadt > > Tel.: +49 841/90 14-325 (Fax -322) > Mobil: +49 179/39 60 327 > E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED] > WWW: www.iuveno.de/www.iuveno-net.de > > ___ > 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] List
If you want to put a string into a list you can use to split a string up. What database are you using and what are actually getting back? - Original Message - From: "Tom Deprez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 03, 2000 9:15 AM Subject: [Zope] List > Hi, > > I'm storing a selection of a user to a database as string. This selection > is a multiple selection from a select box and is outputted as a list. > Now I want to iterate over this list (after retrieving it from the > database), but how can I do this? How can I tell Zope that the string is > actually a list? How can I typecast in Zope? > > Thanks, Tom. > > > ___ > 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] Sorting and accessing elements in the
Although this could be simpler (you dont need the REQUEST.set): : - Original Message - From: "Max Møller Rasmussen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 03, 2000 8:05 AM Subject: [Zope] Sorting and accessing elements in the > I am making a mailer zClass where it will only be nessecary to make the form > fields with the values you want to send, then the zClass will give you a > reply on the webpage and send a nicely formatted e-mail. > > The problem is that the form elements are unknown but they need to be set up > in predictable order to format the output automatically. > > To do this I need the form values in a sorted order. I can then give the > form fields names like this: > > > > > > > Then the mail can be automatically formatted like this: > > 1) First Name > Max M > > 2) Last Name > Rasmussen > > etc > > > > I have tried to use the sequence-item as a key in REQUEST.form, but it > doesn't work like I want it to. > > - > > > > > > > > > : > < THIS IS WHAT DOESNT > WORK > > > > > - > > 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 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] Sorting and accessing elements in the
You need to let item=sequence-item since sequence-item is interpreted in python as a mathemtical operation sequence minus item. : - Original Message - From: "Max Møller Rasmussen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 03, 2000 8:05 AM Subject: [Zope] Sorting and accessing elements in the > I am making a mailer zClass where it will only be nessecary to make the form > fields with the values you want to send, then the zClass will give you a > reply on the webpage and send a nicely formatted e-mail. > > The problem is that the form elements are unknown but they need to be set up > in predictable order to format the output automatically. > > To do this I need the form values in a sorted order. I can then give the > form fields names like this: > > > > > > > Then the mail can be automatically formatted like this: > > 1) First Name > Max M > > 2) Last Name > Rasmussen > > etc > > > > I have tried to use the sequence-item as a key in REQUEST.form, but it > doesn't work like I want it to. > > - > > > > > > > > > : > < THIS IS WHAT DOESNT > WORK > > > > > - > > 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 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] List
Hi, I'm storing a selection of a user to a database as string. This selection is a multiple selection from a select box and is outputted as a list. Now I want to iterate over this list (after retrieving it from the database), but how can I do this? How can I tell Zope that the string is actually a list? How can I typecast in Zope? Thanks, Tom. ___ 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] IMAP and Zope!
Why not just pick apart the pieces you need from WorldPilot. It seems a shame to have to start from scratch. J > From: Joachim Werner <[EMAIL PROTECTED]> > Organization: Iuveno - Smart Communication > Date: Tue, 3 Oct 2000 17:17:00 +0200 > To: [EMAIL PROTECTED] > Subject: [Zope] IMAP and Zope! > > Hello! > > I am searching for a current IMAP Adapter solution for Zope. What we have > found > so far is Ryan Hughes' WorldPilot, which has great IMAP support, but doesn't > really integrate with Zope, and the two products "NotMail" and "IMAP Adapter" > on the classic Zope site. The latter two seem to have been unmaintained for > quite a while. > > Does anybody use the old IMAP Adapter successfully with Zope 2.2.x or know an > alternative solution? > > We are working on an integrated groupware solution (it will all be open > sourced) and want to either store all documents (incl. mail) in a single > Zope-based storage or at least simulate that by dynamically wrapping the mails > into objects (similar to what Local_FS does with files on the file system). > > Thanks in advance! > > Joachim. > > > -- > Iuveno - Smart Communication > > > Joachim Werner > > > _ > > Marie-Curie-Straße 6 > 85055 Ingolstadt > > Tel.: +49 841/90 14-325 (Fax -322) > Mobil: +49 179/39 60 327 > E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED] > WWW: www.iuveno.de/www.iuveno-net.de > > > > ___ > 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] IMAP and Zope!
Hello! I am searching for a current IMAP Adapter solution for Zope. What we have found so far is Ryan Hughes' WorldPilot, which has great IMAP support, but doesn't really integrate with Zope, and the two products "NotMail" and "IMAP Adapter" on the classic Zope site. The latter two seem to have been unmaintained for quite a while. Does anybody use the old IMAP Adapter successfully with Zope 2.2.x or know an alternative solution? We are working on an integrated groupware solution (it will all be open sourced) and want to either store all documents (incl. mail) in a single Zope-based storage or at least simulate that by dynamically wrapping the mails into objects (similar to what Local_FS does with files on the file system). Thanks in advance! Joachim. -- Iuveno - Smart Communication Joachim Werner _ Marie-Curie-Straße 6 85055 Ingolstadt Tel.: +49 841/90 14-325 (Fax -322) Mobil: +49 179/39 60 327 E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED] WWW: www.iuveno.de/www.iuveno-net.de ___ 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] Sorting and accessing elements in the
I am making a mailer zClass where it will only be nessecary to make the form fields with the values you want to send, then the zClass will give you a reply on the webpage and send a nicely formatted e-mail. The problem is that the form elements are unknown but they need to be set up in predictable order to format the output automatically. To do this I need the form values in a sorted order. I can then give the form fields names like this: Then the mail can be automatically formatted like this: 1) First Name Max M 2) Last Name Rasmussen etc I have tried to use the sequence-item as a key in REQUEST.form, but it doesn't work like I want it to. - : < THIS IS WHAT DOESNT WORK - 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 )
Re: [Zope] Only superuser can set Proxy on DTML methods?
Brad Clements wrote: > > It seems that when I'm managing my website as a Manager (from > acl_users folder) I can not set a proxy role for a method or document. I > get "you do not have the proxy role" something like that. The wording is crap. What it means is that the user object you are authenticated with must have the role you are trying to give to the object by proxy. ...which makes sense if you think about it. ...but is frustrating if the role actually nothing to do with you, and has less permissions that your role. For example, you, as someone with only the Manager role, can't give a Customer proxy role to an object, even though Customers can do much less than Managers, because you don't have the Customer role. So, you have to go to acl_users and give yourself the Customer role just to complete the operation, and then, more than likely, remove the Customer role from yourself later... I can see why it's like it is, btu sureyl the Manager could be made to eb an exception? Or mayeb that's what's happening with the Superuser object? > So only the superuser can set the proxy role for a document. But once I > do that, I can't edit it anymore as Manager (expected) Hmm... you imply the superuser has ended up owning an object, which shouldn't be possible (yes, that can of worms again :P) so does anyone know what's going on here? 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 )
[Zope] Only superuser can set Proxy on DTML methods?
It seems that when I'm managing my website as a Manager (from acl_users folder) I can not set a proxy role for a method or document. I get "you do not have the proxy role" something like that. But I can't see anywhere how to enable my userid to have this proxy role. So only the superuser can set the proxy role for a document. But once I do that, I can't edit it anymore as Manager (expected) So .. how can a Manager grant the proxy role on documents? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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] SiteAccess2 problem
From: Oliver Wrede <[EMAIL PROTECTED]> > I am trying to use SiteAccess2 with a site which has imported > SiteAccess1 objects. Have you used Extensions/updata.py to upgrade these objects? Cheers, Evan @ digicool & 4-am ___ 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 access the items of an array...
Hi In a form, I defined an array variable as follows: After submitting the form, gives me following result: ['112', 'sef', 'fg', '23', 'iuiu', 'tz', 'fgh', 'fgh'] My question is now how to access the different items of that array? Thanks a lot for your help. Marc ___ 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] database connection problem (halting Zope)
Hello, thank you for answers. To clarify: I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC, Sybase11.5)at work. Oracle connection at work and MySQL (at home just for testing) run looong queries and halt Zope. I have no such queries for Sybase yet. I will try to recompile python for linux, but I can't do so for WinNT as I have no compiler. Anyway I thought the python distributed with binary release of Zope is threaded, no? So, does anybody know of either binary and threaded Zope driver for Oracle , Sybase etc. or the same ODBC driver? And what is the state of python threading on WinNT paltform? Thanks, Petr -Original Message- From: Tim Cook [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 03, 2000 3:13 PM To: Hrasky Petr Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope] database connection problem (halting Zope) > Could it be that the python binary > used is not compiled for threading? I spent yesterday afternoon and this Count on it. That's why the install instructions explain that python isn't compiled with threads by default. -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * It's easy to stop making mistakes. Just stop having ideas. * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.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 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] Looking for BSDI version of Zope
Hi, I looking for a recent compiled Zope version running on BSDI/OS 4.0.1 with its python attached Thanks, FR. ___ 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] SiteAccess2 problem
Title: SiteAccess2 problem I am trying to use SiteAccess2 with a site which has imported SiteAccess1 objects. Whenever I try to open "Set access rule" I get this error (so I can't set a new one or delete an existing one): Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'string' object has no attribute 'name' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 187, in publish File /www/zope/2.2.2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 171, in publish File /www/zope/2.2.2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: www/AccessRuleAdd) File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: www/AccessRuleAdd) File /www/zope/2.2.2/lib/python/App/special_dtml.py, line 120, in __call__ (Object: www/AccessRuleAdd) (Info: /www/zope/2.2.2/lib/python/Products/SiteAccess/www/AccessRuleAdd.dtml) File /www/zope/2.2.2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: www/AccessRuleAdd) File /www/zope/2.2.2/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: manage_getAccessRule(this())) (Info: manage_getAccessRule) File , line 0, in ? File /www/zope/2.2.2/lib/python/Products/SiteAccess/AccessRule.py, line 76, in getAccessRule (Object: Traversable) AttributeError: (see above) -- .. Oliver Wrede .. [EMAIL PROTECTED] .. Academy of Media Arts, Cologne .. Peter-Welter-Platz 2 . 50676 Koeln, Germany .. http://www.khm.de .. ICQ# 6580315 .. PGP 6.0 Fingerprint: .. 922C FFA2 9A07 5B8E CB2A 10A2 C370 6A62 2232 196C
Re: [Zope] database connection problem (halting Zope)
> Could it be that the python binary > used is not compiled for threading? I spent yesterday afternoon and this Count on it. That's why the install instructions explain that python isn't compiled with threads by default. -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * It's easy to stop making mistakes. Just stop having ideas. * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.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] 'self' in external methods
Andrew Kenneth Milton wrote: > > +---[ seb ]-- > | Hello, > | > | Whenever I do a > | > def play(self,sound): > | >return sound > > You don't define self as a parameter to an external method, so: > > def play(sound): > > will work fine in an external method. It's not as simple as that. The mechnism involved here is complex and arguably broken. This is becoming a FAQ, see the mailing list archives for previous versions of this discussion which will provide all the detail. 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] database connection problem (halting Zope)
+---[ Hrasky Petr ]-- | Hello everybody, Hi.. | I understand that long query blocks database connection, but I thought | Zope is threaded, so it should run other requests not using this | database connection just fine, no? You are correct, that should be the case. | Could it be that the python binary used is not compiled for threading? Perhaps, but, I think Zope will fail to start if your python does not support threading. | I spent yesterday afternoon and this | morning looking for solution to this problem on the net, but with no | luck yet. | | Can anybody enlighten me why is that? And what can I do to fix this. It might be that the ODBC driver for MySQL is serialising all accesses to MySQL (i.e. the MySQL ODBC driver is not threaded). This is a bit of a guess though. -- 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] script execution timeout?
> Is there a place to define a script execution timeout? not in the urllib module. Try setting an alarm using the signal module, wrapping the GET request in a try clause, and then setting the alarm to 0 in the finally clause. seb ___ 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] 'self' in external methods
+---[ seb ]-- | Hello, | | Whenever I do a | > def play(self,sound): | >return sound You don't define self as a parameter to an external method, so: def play(sound): will work fine in an external method. -- 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 )
[Zope] 'Offline' mailhost
Shane Hathaway wrote: > I'm not sure how well MailHost scales, but you can certainly store > thousands of names in a ZODB-managed list. Tests done for the > BTreeFolder product prove it. Sadly, I think MailHost doesn't scale too well :-( What it'd need to do if you're sending the mail to a few thousand people is to be non-blocking. IIRC, currently, a method/page with a tag pair in it will only return when the mail has been sent to all the recipients. So, if the mails going to lots of people, the page takes ages to return. This is the problem I had where our mail server was taking lots of time to send messages (it was doing lots of stuff to make sure the address was valid) so submitting posts on Squishdot.org was taking ages too. What, IMHO, is really needed is a mailhost/sendmail tag type thing that gets a message and a list of addresses to send it to. If it could do that in a seperate thread/process/whatever so that whatever calls it doesn't block, that'd be great. Of course, it'd need to have a 'hook back' method provided so any errors that occured could be dealt with. I wonder how mailman does this stuff and if the code could be borrowed for Zope? 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 )
[Zope] database connection problem (halting Zope)
Hello everybody, I started to play with Zope in order to use it as intranet platform. For this I need database access. I tried odbc and MySQL and got it working fine. However we have some existing warehouse queries which take minutes to complete. When I set up ZODBC connection and ZSQL method to access such query, it halts all other Zope activities until it finishes. I tried this both with NT Zope and Linux Zope, ODBC and MySQL DAs. As long as the query runs, no other requests are serviced. I understand that long query blocks database connection, but I thought Zope is threaded, so it should run other requests not using this database connection just fine, no? Could it be that the python binary used is not compiled for threading? I spent yesterday afternoon and this morning looking for solution to this problem on the net, but with no luck yet. Can anybody enlighten me why is that? And what can I do to fix this. Otherwise I like Zope a lot. Easy, featured, just great. Thanks in advance and Best regards, Petr Hrasky IT Department BNP-Dresdner Bank (CR), a.s. +420-2-57006474 ___ 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] 'self' in external methods
Hello, Whenever I do a > def play(self,sound): >return sound and a > I get a > Error Type: TypeError > Error Value: not enough arguments; expected 2, got 1 Now, I thought 'self' was passed _implicitly_, as explained in http://www.zope.org/Documentation/How-To/ExternalMethods, but I'm actually having to do a > to pass the context to 'self' in the External method. Explanations gratefully received. Thanks, seb. ___ 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] 'websafe' colours
[Curtis Maloney] | As I understand it, it's due to system palettes. On low colour | machines (256 or even 16colour) some colours are reserved for the | system GUI so that you can match the 'theme', leaving you with fewer | than the full capacity of the display you are using. Actually the problem with many colours is that there is slight difference between how they are shown in for example BGCOLOR and in a gif. There was an article about this in the online version of Wired. -Magnus ___ 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] script execution timeout?
Hi all, Is there a place to define a script execution timeout? I've been using urllib and there is no way to kill a urllib.open if its taking too long. Does zope has that implemented? Best Regards, Júlio Dinis Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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] SiteRoot, can i do?????
Hello, I'm trying do that SiteRoot can this : If somebody put 'http://xyz.mydomain.com/Zope" -> The SiteRoot put in all links 'http://xyz.mydomain.com/Zope" but if if somebody put 'https://xyz.mydomain.com/Zope" -> The SiteRoot put in all links 'https://xyz.mydomain.com/Zope" . The second is the new, so can access for http o https at the same contens, and this is very nice. My idea is change the source code of Site Root. It´s possible ?? Somebody can help my? Thanks
[Zope] Access problems
Hi all! I have a serious and extremely urgent problem concerning my zope installation (2.2.1 on Unix): Whatever resource I'm trying to access, I get the following --- Attribute Error --- Traceback (innermost last): File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/sites/site3/users/.../2-2-1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py, line 162, in publish File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line 438, in traverse File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line 514, in old_validation (Object: broken) AttributeError: (see above) Furthermore, I have to authenticate on _every_ occasion, even with objects I know are totally available to Anonymous. After (http) authentication I get the above mentioned attribute error. I'm clueless. What is this about? Thanking you so much in advance, Prost, Danny P.S.: Of course I can't recall doing anything rude to my installation, actually I can't recall doing _anything_. (What they all say) ___ 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] Guidelines for showing most exciting things of Zope?
Hi, When I tell people about Zope and give a demo, at the end, I always realise that I could have told this and that and that I forgot this and that. Now, has somebody already prepared some things which could be used as a practical guideline when presenting Zope to outsiders? If not, what do you think would need to be told to convince people that it's worth looking at it by themselfs? Do people think such a practical guideline would be usefull? Tom. ___ 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] Off Topic: Patent Offices
Tim Cook wrote: > > Our patent office doesn't have a clue and doesn't seem to > research very much either. Name me one that does ;-) 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] Passing parameters to methods - how to?
"César A. K. Grossmann" wrote: > > Maik Roeder wrote: > > > > > Clicking in the "submit" button, it gives me an error, telling that > > > 'username' is not defined. So I included an hidden field with > > > name="username" and value="", but I'm thinking this > > > is not the better way to do that... > That is the real question: how to substitute the > 'someuser' using > hidden fields? M > I'm thinking that maintaining some "session attributes" in a cookie is > another idea, and sustitute the direct call to the method to a call to a > JavaScript, but I don't want to use the most complicated method... There are only two ways of doing this: 1) hidden form inputs 2) cookies 3) session variables (kind of like number 2) Using the former solution, you can make your link be the submit button for the form, either by using Javascript (yuk: someuser) or by making it a graphical button rather than a text link ( as far as I remember, but I might be wrong). Why use javascript to access cookies? You can set and get them purely using zope. http://www.zope.org/Members/BwanaZulia/cookies. Also, why not install a session product (HappySession, FSSession, SQLSession...), it'll probably make your life easier in the long run... seb ___ 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 )