Re: [Zope-dev] Windoz file naming
>>> "alan milligan" wrote > Guys, > > I've just run into a problem and wondered if there was an elegant > resolution. > > My BastionBanking package contains: > > currency.py - pure python > Currency.py - Zope derivation The "typical" approach in Python is to have, e.g. Tkinter, and _tkinter. But if it's a zope derivation of currency, why not call it zcurrency? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Windoz file naming
Is currency.py - pure python ZCurrency.py - Zope derivation elegant enough? (also think that sometimes you will need third file, say, for Zope3 - your method will fail. ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Windoz file naming
Guys, I've just run into a problem and wondered if there was an elegant resolution. My BastionBanking package contains: currency.py - pure python Currency.py - Zope derivation The idea is that using the setup.py script, you can load currency.py into your Python modules and use it outside Zope if you wish. However, under Windoz, it doesn't recognise the different file names and wont allow them to both reside in the same directory! I had intended to use this technique widely to have a single distribution stream for both pure Python and Zope-wrapped modules. TIA Alan _ Surf the net and talk on the phone with Xtra Jetstream @ http://www.xtra.co.nz/products/0,,5803,00.html ! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Controlling start en finish of a request
You could look at Steve A's TransactionAgents if you're brave... Chris Dario Lopez-Kästen wrote: Hello, I need help with ideas on how to solve my little problem here. I need to sort of be "more in control" of a request, meaning that at the beggining of a request I want to set some variables and call some python scripts and at the end of a request I want to set soem other variables and call some other python scripts How would I be able to accomplish that? We sort of have semi-solved it by setting and calling from standard_html_header and standard_html_footer, but that is not enough. IS there a way of achieving what I want to do? I was told on IRC to do look into TransactionManager but I don't know how to make this availabel Zope-wide. Any ideas are appreciated. Thanks, /dario - Dario Lopez-Kästen, IT Systems & Services Chalmers University of Tech. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] _v_ variables and cache garbage collection
Dieter Maurer wrote: > What in the ZODB cache or other ZODB code could be causing _v_ variables to > stick around after they've been set to None in their containing objects? Nothing. When you assign "None" to the "_v_variable", then this reference will go away. There may be others, which you did not set to "None"... Well in that case, why would flushing the ZODB cache cause the errant connections to be closed? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.6+ pyton 2.3 ? and "Bad Call" on zope 2.6.2/python 2.1.3 with profiling turned on.
Romain Slootmaekers wrote at 2003-10-29 11:28 +0100: > I have an elaborate piece of python code that works fine, but with > profiling turned on, it barfs a "Bad Call" message. > > When google-ing for a solution, the only thing I could find was a > > http://mail.python.org/pipermail/python-bugs-list/2003-June/018510.html > > There's a follow up stating it's "already fixed", > and does not occur in Python 2.2.x and beyond. I think the bug report is from me. I do not believe the followup ("does not occur in Python 2.2.x"). While I analysed the problem with Python 2.1.3 (and therefore reported it as an 2.1.3 bug), I am almost sure (not completely) that my colleague hit the problem with Python 2.2 in the first place (which triggered my analysis). Thus, watch out for the same behaviour in Python 2.2. I think I added a followup with a workaround to the bug report. Should the problem come back with Python 2.2 or Python 2.3 and you do not find the patch in Python's bug tracker, come back. I can send you the patch in this case. -- Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope and interbase
Pessoal, é o seguinte: Guys, i have a problem... i'm working on a site with Zope and Interbase, and sometimes some strange things start to happen... when a lot of requests are made, for example, if someone press F5 and keep it pressed, zope locks and interbase too if we acess a page that doesn't uses Interbase, in the same server, zope doesn't locks, even if we try to acess it with more than one user at a time i think that's something wrong with my Interbase connector. I'm using ZFirebird, because we already had this problem with L Interbase Connector. If someone could show me a better Interbase connector ou another form of solving this problem, i would be glad... thanx in advance ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.6+ pyton 2.3 ? and "Bad Call" on zope 2.6.2/python 2.1.3 with profiling turned on.
On Wed, 2003-10-29 at 05:28, Romain Slootmaekers wrote: > Yo, > > I have an elaborate piece of python code that works fine, but with > profiling turned on, it barfs a "Bad Call" message. > > When google-ing for a solution, the only thing I could find was a > > http://mail.python.org/pipermail/python-bugs-list/2003-June/018510.html > > There's a follow up stating it's "already fixed", > and does not occur in Python 2.2.x and beyond. > > > So now my questions are: > > - how difficult is it to get a zope 2.6.2 (or 2.7) working with a > python 2.2.x or 2.3. on a windows platform? (I read up on the changes > between 2.6 and 2.7 and it does not seem to change python version.) In general, you should be able to run Zope 2.6.2 with Python 2.2.3 without issues (but *don't* use Python 2.2 - 2.2.2, nor Zope 2.6 - 2.6.1 in this mode!). I'm afraid I don't know enough Windows majyk to tell you an easy way to upgrade the Python on the box; I would install 2.2.3 separately, and then hack the startup.bat (or whatever) to use that Python. > - I believe there's a concensus that the next major 2.X release should > jump immediately 2.3, but is there a timeline ? We are looking to release Zope 2.7b3 (which will prefer Python 2.3), soon, Here is what Brian wrote yesterday: > I'd like to try to have another bug day next Tuesday (Nov 3) to > make up for the one that was cut short last week, in preparation > for a beta 2 release of Zope 2.7. > > - or is there a workaround/solution to the "Bad Call" problem? > > This all to see if I should invest time in getting a 2.6 or 2.7 +python > 2.3 up and running or I should do my own time measurements/profiling effort. There are substantial performance benefits (at least on the platforms I know) in moving from 2.1.3 to 2.2.3. I am told, and believe, that 2.3.2 will provide further such benefits. Tres. -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.6+ pyton 2.3 ? and "Bad Call" on zope 2.6.2/python 2.1.3 with profiling turned on.
Yo, I have an elaborate piece of python code that works fine, but with profiling turned on, it barfs a "Bad Call" message. When google-ing for a solution, the only thing I could find was a http://mail.python.org/pipermail/python-bugs-list/2003-June/018510.html There's a follow up stating it's "already fixed", and does not occur in Python 2.2.x and beyond. So now my questions are: - how difficult is it to get a zope 2.6.2 (or 2.7) working with a python 2.2.x or 2.3. on a windows platform? (I read up on the changes between 2.6 and 2.7 and it does not seem to change python version.) - I believe there's a concensus that the next major 2.X release should jump immediately 2.3, but is there a timeline ? - or is there a workaround/solution to the "Bad Call" problem? This all to see if I should invest time in getting a 2.6 or 2.7 +python 2.3 up and running or I should do my own time measurements/profiling effort. TIA, Romain Slootmaekers. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )