[Zope] custom __of__

2000-12-20 Thread Randall F. Kern
This is something that I still don't quite understand. I have a set of (python, Folder derived) objects, which are children of a Folder derived python class. Each of these in turn has another, related python object. / a ab1 ab2 ab3

RE: [Zope] RE: New install - no management screen? (resolved)

2000-12-31 Thread Randall F. Kern
I realize you've already worked around this problem, but I've seen this on some installations of IE. The solution I've found is to delete all cookies from the client. -Randy -Original Message- From: Glenn Gillis [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 31, 2000 8:57 AM To:

RE: [Zope] Using a multiple_selection property in a product

2001-01-03 Thread Randall F. Kern
Try this: _properties = ( {'id':'classdays', 'type':'multiple selection','mode':'w', 'select_variable': 'days'}, ...) days = ( 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday' ) -Randy -Original Message- From: Ronald L. Roeber

RE: [Zope] hasRole bug or feature in 2.2.?

2001-01-13 Thread Randall F. Kern
From: Ron Bickers [mailto:[EMAIL PROTECTED]] If this is true, it explains clearly Zope's behavior. It's really a browser "feature" and not a Zope issue at all. Yes, that's the problem. My solution is to use a custom UserFolder, which sets a temporary cookie when a normal HTTP login is

RE: [Zope] renaming python input params in DTML

2001-01-14 Thread Randall F. Kern
You can't use DTML tags inside an expr="" attribute; the value of expr is python code. To access the sequence-item variable from python, you need: _['sequence-item'] So, try something like this (untested): dtml-in expr="REQUEST.form.items()" dtml-in expr="testSQL(text=_['sequence-key']

RE: [Zope] if-else using ZSQL resultset sendmail query

2001-01-20 Thread Randall F. Kern
dtml-in ... dtml-if sequence-even bgcolor is white ... dtml-else bgcolor is grey ... /dtml-if /dtml-in If you really need the "resultset number", you can use sequence-number. As for dtml-sendmail and news, it only sends mail via SMTP, so it can't be used to post

RE: [Zope] ZMySQLDA problems after upgrade

2001-01-26 Thread Randall F. Kern
You will get 0 rows if you use max_rows=0. -Randy -Original Message- From: Ron Bickers [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 10:05 AM To: Ron Bickers; Andy Dustman; Randall F. Kern Cc: [EMAIL PROTECTED] Subject: RE: [Zope] ZMySQLDA problems after upgrade

[Zope] CoreSessionTracking and ConflictError

2001-01-29 Thread Randall F. Kern
I've been porting my product from my own private session manager to use CoreSessionTracking 0.6, and am having a problem with lots of conflict errors. I've got a session_id_mgr in the root, configured as per defaults, and a session_data_mgr also in the root, using the RAM base container. Then I

RE: [Zope-dev] Zope server dies with Netscape's FTP

2001-02-04 Thread Randall F. Kern
Are you starting zope with ./start, or otherwise including -D when z2.py is executed? That will cause Zope to try to write to the terminal when an FTP connection is made. Since the terminal is gone, Zope dies. -Randy -Original Message- From: Pablo Bleyer Kocik [mailto:[EMAIL

RE: [Zope-dev] Calling Catalog from python script

2001-02-14 Thread Randall F. Kern
What's wrong with AbstractCatalogBrain.getObject()? Doesn't that work? -Randy -Original Message- From: Casey Duncan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 3:45 PM To: R. David Murray; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Calling Catalog from python

[Zope-dev] Zope 2.3.0 AccessControl/SecurityInfo.py

2001-03-01 Thread Randall F. Kern
Sorry if these have already been fixed in 2.3.1, I haven't had time to upgrade yet. I fixed a small bug in SecurityInfo that made SecurityInfo.setPermissionDefault() impossible to use: 191c191 self.roles[permission_name] = rdict.keys() --- self.roles[permission_name] = rdict

RE: [Zope-dev] Transparent Folder bug?

2001-03-23 Thread Randall F. Kern
I had that problem a while back but forgot to report it to Mr. Transparent Folders (sorry...) Anyway, this patch to TransparentFoldersPatch.py should fix you right up: def _getattr(self, name): # This is the new ObjectManager.__getattr__(). If an object by the # given ID is

RE: [Zope-dev] Objects, Roles and Permissions

2001-04-10 Thread Randall F. Kern
I haven't worked with this code closely in a few months, but as I recall permissions that are acquired are stored as a list, and those that aren't are stored as a tuple. if type(self._View_Permission) == type(()): # done, this permission isn't acquired above this point Furthermore, I

RE: [Zope-dev] Custom dtml tag ... parameters not evaluated

2001-04-12 Thread Randall F. Kern
Try adding something like this in your render method (haven't tried this, but from a poking around the code in the DocumentTemplate directory in the past this seems about right): import VSEval expr = VSEval.Eval(variable_you_want_to_evaluate) value = expr.eval(md) -Randy -Original

[Zope-dev] External transaction integration bug?

2001-04-18 Thread Randall F. Kern
I may just be missing something obvious here, but it seems like there is a hole in ZODB.Transaction.Transaction.commit and Shared.DC.ZRDB.TM.TM, that can cause external transactions (those that use the TM mixin class, like psycopg) to be abandoned (never get committed or rolled back). Let's say

RE: [Zope-dev] CoreSessionTracking

2001-04-23 Thread Randall F. Kern
_.SecurityGetUser() -Randy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce

RE: [Zope-dev] CoreSessionTracking

2001-04-23 Thread Randall F. Kern
The documentation is in lib/python/AccessControl/DTML.py :) From: Chris Withers [mailto:[EMAIL PROTECTED]] dtml-var _.SecurityGetUser().getUserName() as for simplifying _.SecurityGetUser().getUserName(), BasicUser defines __str__ to return getUserName(), so dtml-var SecurityGetUser should

RE: [Zope-dev] ZEO on SMP

2001-05-23 Thread Randall F. Kern
If I understand your scenario, you are trying to run two instances of Zope on a single machine, talking to a ZEO server? That won't work :) Neither Unix nor Windows knows what to do with two processes trying to open the same port for listen. I'm surprised the second Zope instance even starts.

[Zope-dev] Zope 2.4: Unicode, Berkeley Storage?

2001-06-20 Thread Randall F. Kern
I was just reading the Zope 2.4.0 plan on dev.zope.org, and I have two questions: 1. Will Unicode be supported (UTF-8 encoding) for results, posted data, marshaled arguments, etc? 2. Will the BDB storage be standard with 2.4? Transactional Undo sounds _very_ nice. Thanks, -Randy