Re: [Zope] Overriding DateTime

2009-04-02 Thread Chris Withers
Tim Knapp wrote: > Thanks. One thing, though, it appears that testfixtures requires python > 2.5 as it tries to import functools that was introduced in python 2.5. > > /me carries on trying to get it going :) Indeed, guess you'll have to go for Zope 2.12 :-) Chris -- Simplistix - Content Manag

Re: [Zope] [Zope-dev] [Zope-Annce] Announcing: Zope 4.0 project

2009-04-01 Thread Chris Withers
*looks at the date* *sigh* I'll go back to my cave now... Chris Chris Withers wrote: > Tres Seaver wrote: >> On behalf of the Zope community, I am pleased to announce the creation >> of the "Zope 4.0" project. After extensive discussion with the Zope >> wi

Re: [Zope] [Zope-Annce] Announcing: Zope 4.0 project

2009-04-01 Thread Chris Withers
Tres Seaver wrote: > On behalf of the Zope community, I am pleased to announce the creation > of the "Zope 4.0" project. After extensive discussion with the Zope > wizards in conclave at PyCon 2009, the new project's website has been > launched: > > http://zopefour.org/ Er? Little more contex

Re: [Zope] zopectl does not terminate

2009-03-23 Thread Chris Withers
Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chris Withers wrote: >> Tres Seaver wrote: >>> - abort the current transaction >>> - sync its database connection (to pick up the changed objects) >> I'm pretty sure the

Re: [Zope] Overriding DateTime

2009-03-23 Thread Chris Withers
Tim Knapp wrote: > I would like to override the DateTime.DateTime class within my > functional tests. I have tried mocking (via mocker) and injecting the > subclassed DateTime class into sys.modules (results in a > TraversalError). The fartherest I've gotten is to set DateTime.DateTime > = MySubcla

Re: [Zope] zopectl does not terminate

2009-03-18 Thread Chris Withers
Tres Seaver wrote: > - abort the current transaction > - sync its database connection (to pick up the changed objects) I'm pretty sure the abort has done the sync for quite some time now... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.

Re: [Zope] fstest reports time-stamp reduction, what does it mean and should I be worried?

2009-03-08 Thread Chris Withers
Dieter Maurer wrote: > Are you using an old ZODB version? Nope, Zope 2.9.8. > In older ZODB versions, this should happen when your clock > jumped back into the past. The clocks on both the storage servers are NTP synched and I'm pretty sure they've not jumped back at any point... > Also, packi

[Zope] fstest reports time-stamp reduction, what does it mean and should I be worried?

2009-03-05 Thread Chris Withers
Hi All, For one customer, I have a secondary storage server that copies repozo backups, restores them and then runs fstest over the restored result once every few hours. (I'd like to move to zeoraid, but it's not quite there yet!) On a few occasions recently, fstest has complained similar to th

Re: [Zope] Weird "undefined symbol: PyUnicodeUCS{2|4}_AsEncodedString" errors

2009-02-18 Thread Chris Withers
Chris Withers wrote: > ImportError: /usr/lib/zope2.9/lib/python/persistent/cPersistence.so: > undefined symbol: PyUnicodeUCS4_AsEncodedString > ImportError: /opt/Zope-2.9/lib/python/persistent/cPersistence.so: > undefined symbol: PyUnicodeUCS2_AsEncodedString Having had a bit of

[Zope] Weird "undefined symbol: PyUnicodeUCS{2|4}_AsEncodedString" errors

2009-02-18 Thread Chris Withers
Hi All, I wonder if anyone has seen errors like these before... Scenario is as follows, two Zope instances and a zeo server all running from the debian zope2.9 packages. All the control scripts for these instances fail with the following error when used: Traceback (most recent call last): F

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-18 Thread Chris Withers
Marco Bizzarri wrote: > Thanks, Chris, but I do not want to use cron... Why not? Why re-invent the wheel in a more fragile and less tested way? > also because I can end > in environments where there is no cron ;) Such as? On *nix, you have cron. On MacOS, you have cron. On Windows, you have Sc

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-17 Thread Chris Withers
Thibaud Morel l'Horset wrote: > What I did to solve this problem is simply create a few crons on the > server that each do a mechanize > (http://wwwsearch.sourceforge.net/mechanize/) http call to a specific > location in Zope which basically acts as a private API: when called, it > executes a f

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-17 Thread Chris Withers
Marco Bizzarri wrote: > Is there a better way to run such tasks in Zope 2 environments? Have a look at Stepper: http://www.simplistix.co.uk/software/zope/stepper ...and then actually *use* cron to trigger stepper ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting

[Zope] Tutorial on working with Excel files in Python (without COM and cross platform!) at PyConUS 2009

2009-01-22 Thread Chris Withers
Hi All, Too many people in the Python community think the only way to work with Excel files in Python is using COM on Windows. To try and correct this, I'm giving a tutorial at this year's PyCon in Chicago on Wednesday, 25th March that will cover working with Excel files in Python using the pur

Re: [Zope] How to get all URL's

2008-11-28 Thread Chris Withers
Andreas Jung wrote: > There is a difference pulling 500k brains out-of-the catalog compared to > traversing a ZODB with 500k object. I assume that the catalog solution > is slightly faster :) Yes, well, you kno what they say about assumptions... Chris -- Simplistix - Content Management, Zope

Re: [Zope] How to get all URL's

2008-11-28 Thread Chris Withers
Andreas Jung wrote: > > huh? You have to walk through the whole folder hierarchy?1 So? With a catalog query you'll have return the *whole* catalog contents. And if you're stupid enough to get getObject involved, then you drag them all into memory *and* the catalog anyway... Chris -- Simplisti

Re: [Zope] How to get all URL's

2008-11-28 Thread Chris Withers
Andreas Jung wrote: > This is a *VERY EXPENSIVE* operation unless you use something like > Plone or CMF and ask the portal_catalog for all objects. How is that any less expensive? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _

Re: [Zope] [Zope-dev] working with SUF

2008-11-22 Thread Chris Withers
abhi wrote: > I wanted everything inside my product but I was wrong.External methods > should be fine in that case. You can have external methods inside your product... > Just testing out zodb,I did this exercise keeping ZEO/external ZODB in > mind. Well, I don't really think you're "getting"

[Zope] MailingLogger 3.2.2 Released!

2008-11-09 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger that finally correctly supports easy_install and so works fine with zc.buildout-based projects. In fact, MailingLogger has *become* a zc.buildout-based project for its development... Anyway, Mailinglogger provides two handlers for the stand

[Zope] weird page template errors...

2008-10-21 Thread Chris Withers
Hey All, Still getting the odd weird error following my move to Zope 2.11. The following are currently very confusing: Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec Module zope.pagetemplate.pagetemplate, line 115, in pt_render - Warning: Macro expansion failed

Re: [Zope] analyse ZODBUtilities/space.py results

2008-10-21 Thread Chris Withers
JeanMichel FRANCOIS wrote: > according to me, btrees are folders that support a large numbers of > entries. ...and you're wrong ;-) You've described BTreeFolders. BTrees are used to implement BTreeFolders, but they're also used to implement catalog indexes and a load of other stuff... cheers,

Re: [Zope] Stepper1.5.0: more steps !!!!

2008-10-21 Thread Chris Withers
JeanMichel FRANCOIS wrote: > so, I m asking a new question about stepper now, is there more steps > somewhere for plone. Probably, but they're usually not in the public domain :-S > - a Password class to change every password of every users to a new > password set in arg (DONE) Cool. > - a P

Re: [Zope] Zope 2.x for Py 2.6 as 64 bit Windows application?

2008-10-10 Thread Chris Withers
[EMAIL PROTECTED] wrote: > I'd be grateful for a rough idea on when there could be a Zope 2.x release > working with Python 2.6 as a 64-bit Windows application. Given that we don't even have Zope 2 on Python 2.5 yet, I'd suggest purchasing some serious chiller units for hell or investing in some

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-10 Thread Chris Withers
Tres Seaver wrote: >>> steps. >> I bet repoze's VHM replacement doesn't need this ;-) >> I wonder how they do it? > > Two parts: > > - The first (WSGI middleware) uses either extra headers or the > Zope2-style URL tokens to adjust the CGI environment variables > (SERVER_NAME, HTTP_HOS

Re: [Zope] Proxy Error on Squishdot Re-catalog.

2008-10-10 Thread Chris Withers
JeanMichel FRANCOIS wrote: > zopepy recatalog.py -c path/to/etc/zope.conf --recatalog --commit > > zopepy is a python interpreter with all zope modules in its PYTHONPATH > > common.py is used in production on our servers > > recatalog.py is a kind of template adapted to fit your needs (not > te

[Zope] FieldIndex: unindex_object tried to retrieve set x from index y but couldn't

2008-10-03 Thread Chris Withers
Hi All, I'm having another problem with the Zope instance I upgraded to 2.11. I see the following every so often: FieldIndex: unindex_object tried to retrieve set DateTime('2000/03/09 13:25:10 GMT') from index date but couldn't. This should not happen. What does this mean? Which index in whic

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-03 Thread Chris Withers
Dieter Maurer wrote: >> Worse yet, if you go to: >> >> http://localhost:8080/VirtualHostBase/https/example.com:443/test/VirtualHostRoot/_vh_something/x/y/z >> >> ...you get: >> >> ['virtual_hosting', '/something', 'x', 'y', 'z'] >> >> Anyone got any ideas as to what's going on here? > > It is very

[Zope] VHM / traverse subpath interaction bug?

2008-10-02 Thread Chris Withers
Hi All, I've tried this on Zope 2.8-2.11.1 and it behaves the same on all but feels like a bug. I wonder if anyone else agrees or, better yet, knows what's going on here... So, add a Script (Python) called test in the root on a Zope instance running on port 8080 and in it put: return repr(tra

Re: [Zope] anyone seen these errors with Zope 2.11.1?

2008-10-01 Thread Chris Withers
Dieter Maurer wrote: > Chris Withers wrote at 2008-9-30 13:45 +0100: >> I recently ugpraded to Zope 2.11.1 and now get the following errors >> every so often: >> ... >> Module Products.PageTemplates.unicodeconflictresolver, line 69, in >> resolve >> M

[Zope] anyone seen these errors with Zope 2.11.1?

2008-09-30 Thread Chris Withers
Hi All, I recently ugpraded to Zope 2.11.1 and now get the following errors every so often: Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render Module Products.PageTemplates.PageTemplate, line 96, in p

Re: [Zope] effectiveRange GET URL search syntax...

2008-09-16 Thread Chris Withers
michael nt milne wrote: > so i guess zope can't do this then...maybe Drupal or Ruby can Go troll somewhere else... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@

Re: [Zope] remote authentication

2008-09-01 Thread Chris Withers
Garry Saddington wrote: >> You share a common ZODB containing the acl_users folder in the root through >> ZEO and mount different other ZODBs using ZEO into the mounted main >> storage. >> > Thanks that sounds perfect, I didn't think about it like that! > regards You could also just store the user

Re: [Zope] Script (Python) insecure ?

2008-08-16 Thread Chris Withers
Andreas Jung wrote: > >> BTW: The reason why I had a look at these was that Chris Withers >> mentioned at EuroPython that they are currently causing delays >> in the Python 2.5 adoption (or at least are one of the reasons >> for them). > > Is Chris' talk so

Re: [Zope] Trying ZODB with a background in RDBMS

2008-08-16 Thread Chris Withers
Phillip B Oldham wrote: > Hi all. I'm playing with standalone ZODB at the moment trying to get a > better understanding of its use in applications. I come from a > PHP/MySQL background, and I'm taking my first steps with Python at the > same time. Heh, and just when people are moving more and more

Re: [Zope] Mouting + Logging Errors after Zope Upgrade 2.7.4 --> 2.11.1

2008-08-01 Thread Chris Withers
Wolfgang Lausenhammer wrote: LockError: Couldn't lock 'D:\\workspace_zope\\xla-2008/var/Stdcontainer_o.fs.lock' Can the user the zope process is running as write to this file? (or create it, since it likely doesn't exist?) TypeError: not all arguments converted during string formatting Trac

Re: [Zope] Re: Unrestricted threads

2008-07-25 Thread Chris Withers
Tres Seaver wrote: Note that you can write scripts designed to use the ZODB, but be run from a crontab. E.g.: $ cat Products/foo/scripts/send_report.py mailnost = app.site.MailHost catalog = app.site.portal_catalog() $ crontab -l 55 0 * * * /home/tseaver/instance/bin/zopectl

Re: [Zope] Timeout on server when python script is running

2008-07-25 Thread Chris Withers
[EMAIL PROTECTED] wrote: I have a python script running from a plone site..it takes a lot of time (1 hour maybe more) Sounds like this shouldn't be done using a web request. Maybe try stepper? http://www.simplistix.co.uk/software/zope/stepper cheers, Chris -- Simplistix - Content Manageme

Re: [Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Chris Withers
Christian Scholz wrote: Ok, except that this does not run under windows and it still needs to have easy_install installed. But if there is no existing script, maybe I write one then. I have my custom bootstrap for using the development version of setuptools now already anway. Ignas may have a

[Zope] PyCon UK Approaching...

2008-07-16 Thread Chris Withers
Hi All, Apologies for what might be seen as spam but I wasn't even aware this conference took place last year and I live in the UK! So, hopefully you won't mind me letting you know that it's taking place again this year ;-) PyCon UK 2008 is an independent, community-run, community-controlled

Re: [Zope] getting post data from a webcam

2008-07-15 Thread Chris Withers
William Heymann wrote: ('__aca', '/36gevRRS99FhE%2BrH6GVLeSzXzA%3D%0A'), ('traverse_subpath', [])] there is nothing in REQUEST.form I wonder if your webcam is doing something weird like putting the image in the body of the post rather than in the form data? I had to admit to never having he

Re: [Zope] Context in a view doesn't see marker interface

2008-06-20 Thread Chris Withers
Eric Steele wrote: If I include something along the lines of tal:replace="structure context" /> in my view template, someObject renders in the browser. The problem is that none of what's in there appears to recognize the interface that my view provides. It's not at all clear what you mean here

Re: [Zope] Re: record count in catalog

2008-06-20 Thread Chris Withers
Dieter Maurer wrote: Tres Seaver wrote at 2008-6-15 16:18 -0400: ... The Catalog tab in my catalog says this: The catalog "mycatalog" contains 30,345 record(s) in the path "/". But when I sort and return a list of cataloged objects I only have 19,881. Here is the script call to retrieve the

Re: [Zope] Zope on CD

2008-06-08 Thread Chris Withers
Ulla Theiss wrote: Then we a custom_zodb.py in %INSTANCE_HOME% I don't think this is the right way to go anymore... Everything should be done in zope.conf... Sometimes Zope starts and sometimes it alerts "Permission denied" - "Data.fs.lock" Hmm, the read-only-database should have stopped

[Zope] anyone heard of Zamasing?

2008-04-16 Thread Chris Withers
...I certainly never had until someone threw a press release my way... http://zamasing.com Any ideas/comments/etc? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@

Re: [Zope] type checking

2008-04-15 Thread Chris Withers
Jaroslav Lukesh wrote: Variable is integer Variable is not integer Variable is not number Argggh! My eyes! They bleed! Please dear god just use a python script or external method... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.

Re: [Zope] try clause in external method

2008-04-15 Thread Chris Withers
Jonathan wrote: A couple of things... 1) Have bare try/except clauses may cause you grief ;-)19 Specifically, in this case, I'll bet an "unexpected exception" is being raised and swallowed... 2) When an error is trapped by the 'try' statement the transaction is not committed (ie. nothing

Re: [Zope] Re: Conditional dtml-boundary in dtml-sendmail

2008-04-14 Thread Chris Withers
Josef Meile wrote: Well, I guess I will do an external method on my own server and then try to convince the people owning the machine where the page is hosted to include it. You could do a lot worse that using MailTemplates: http://www.simplistix.co.uk/software/zope/mailtemplates It's a stab

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers
Tom Von Lahndorff wrote: How is dtml more "error-prone" than python? I'd imagine that all depends on who's authoring it. In this particular example, python's email package has a very OO approach to generating emails. The DTML approach relies on you remembering to put in the right statements

Re: [Zope] ExternalMethod - add new parameter

2008-04-11 Thread Chris Withers
rishi pathak wrote: We have a portal using which users use our compute resources. In zope we use NIS authentication for validating a user.We have many things that requires root/logged in user privledeges.One example is of a 'file system explorer'.In this I have used ZF

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers
Tom Von Lahndorff wrote: The email library should be available to use with a Script (Python) and can be done all within the ZMI. Yes, I wish it was. I believe that was one of the things I did in the MailTemplates product: just make the standard python email package bits available in Zope prot

Re: [Zope] Help writing test where bobobase_modification_time changes

2008-04-10 Thread Chris Withers
Peter Bengtsson wrote: How can I solve this? Make one big transaction two without having to use transaction.get().commit() which I don't think I can use in unit tests as per Dieter's advice. I'd suggest monkeypatching bobobase_modification_time on the objects you're testing with. You're testin

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Chris Withers
Andreas Jung wrote: I started shivering while reading your code. We would have written such code five or six years ago - because we had no other choice. Please use the standard 'email' module of Python...this just works and you don't need to write such ugly and error-prone DTML code. There's

Re: [Zope] ExternalMethod - add new parameter

2008-04-08 Thread Chris Withers
rishi pathak wrote: I dont have a need to run all the external method as root, only some of them. You seem to be carefully ignoring the fact that Dieter is pointing out that this isn't possible ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting -

Re: [Zope] External Method in Zope

2008-04-07 Thread Chris Withers
Jens Vagelpohl wrote: - doing Perl methods or external methods in Zope has been deprecated years and years ago. You will have a hard time finding anyone to support that. I'm guessing you mean perl external methods rather than all external methods in general? ;-) Chris -- Simplistix - Co

Re: [Zope] step by step going from single zope to zeo

2008-04-07 Thread Chris Withers
David Bear wrote: On Wednesday 02 April 2008 01:31, Chris Withers wrote: David Bear wrote: Are there any step by step guidelines for how to modify a current single instance zope into a zeo configuration? I have a single zope instance. That zope.conf define two mount points for multiple zodb&#

Re: [Zope] merging zodb's

2008-04-07 Thread Chris Withers
Dieter Maurer wrote: The "mount-point" syntax is: mount-point [:] where "localpath" is the path where the storage is mounted in this instance and "remotepath" is the path to the object to be mounted in the storage. If not given "" defaults to "localpath". I've checked this in as a note i

Re: [Zope] ZServer uncaptured python exception

2008-04-07 Thread Chris Withers
Thomas Bennett wrote: I have had similar instances with GSA on my Zope server in that it would try to index something like /mydir/mydir/mydir/mydir/somefile.html Often I've found the case is an href that references ../somethingelse.html Yes, that's bad coding on your part. cheers, Chris --

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Chris Withers
Jens Vagelpohl wrote: Trusting that bots actually care about or respect robots.txt won't get you very far. If all else fails I suggest you look at your logs to find out what IPs or IP ranges those bots come from and block them at the firewall level, using e.g. iptables if you're on Linux. Thi

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Chris Withers
Allen Schmidt Sr. wrote: Thanks Chris. Seeing tons of squid messages about the new msnbotand it is not following our robots.txt directive. In fact, I have even disallowed it completely and it still goes where it wants. And the updated version was supposed to have been released end of last

Re: [Zope] step by step going from single zope to zeo

2008-04-02 Thread Chris Withers
David Bear wrote: Are there any step by step guidelines for how to modify a current single instance zope into a zeo configuration? I have a single zope instance. That zope.conf define two mount points for multiple zodb's. I would like to take that single instance and turn it in to a zeo server,

Re: [Zope] merging zodb's

2008-04-02 Thread Chris Withers
David Bear wrote: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support This will try and mount an object with the id of 'support' off the root of the zodb in srvx-Data.fs. You need to find the right chickens in the config chunk above to say "actual

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Chris Withers
Allen Schmidt Sr. wrote: Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c c

Re: [Zope] Running multiple transactions during single request

2008-03-26 Thread Chris Withers
Charl Coetzee wrote: What was originally going to be small imports, now has the potential to have each single import request run for several hours just creating the data (e.g. saw a 2h one this morning). Sounds like you want Stepper ;-) http://www.simplistix.co.uk/software/zope/stepper (I

Re: [Zope] Running multiple transactions during single request

2008-03-26 Thread Chris Withers
Charl Coetzee wrote: if everyFifthPass: transaction.commit() transaction.begin() # end of while loop really does have the desired effect, where also ConflictError handling etc continue to work as expected, without nasty side effects etc. No, this does not h

Re: [Zope] zope on google file system

2008-03-26 Thread Chris Withers
Tim Nash wrote: I don't have the skills but I think it would be cool if some student ported Zope to utilize features of the google file system or libferris. Libferris is a virtual file system that mounts just about everything including postgres, xml and OpenOffice docs. Where are you thinking

Re: [Zope] ZopeTestCase and Selenium RC? Anybody?

2008-03-20 Thread Chris Withers
Peter Bengtsson wrote: I don't know how/if the zope testrunner starts a server that can be reached with a browser or not. If it does start a server that can be used in Firefox I'd be able to run som Selenium scripts (Remote Controlled or manually) and when I'm happy with the browser stuff I'd

Re: [Zope] For the record

2008-03-20 Thread Chris Withers
Peter Bengtsson wrote: So, to rewrite my benchmark I'd have to flush the cache between each fetch? I don't mind because the app itself has little traffic but individual pages are slow. If this is the case, you're looking in the wrong place for the source of the slowness ;-) Chris -- Simplis

Re: [Zope] zip files corrupted with IE when opened, fine when downloaded

2008-03-18 Thread Chris Withers
robert rottermann wrote: Hi there, when users using IE want to open a zip file from the intranet by using the "open" option from the download dialog they get winzip complaining that the file is corrupted. if they select "save" from the same dialog they can open the zip archive without problem.

Re: [Zope] zope starts in foreground but not normaly

2008-03-11 Thread Chris Withers
robert rottermann wrote: [EMAIL PROTECTED]:~> instances/kanneweb3/bin/zopectl status daemon manager running; daemon process not running [EMAIL PROTECTED]:~> I see no entries in the logs, so I have no idea where to look. Check the ownership of the log files. When this happens to me, it's usual

Re: [Zope] Zope Calendar Product?

2008-02-25 Thread Chris Withers
Cliff Ford wrote: events. I know this is a big, complicated field that teams work on for years. Do I expect too much? In a word, yes ;-) Either use Outlook, like the "corporate" world, or soem of the Google calendaring stuff which I have a feeling may be available for uses requiring privacy

Re: [Zope] Happy Valentine's Day from Zwiki HQ

2008-02-15 Thread Chris Withers
Tino Wildenhain wrote: Still I'm not so much a friend of Plone. While having the hooks in place, a lightweight wiki-core would really be great. A lightweight wiki engine that was agnostic to the framework used would be *awesome*, especially if it let you customise the dialect of the wiki easi

Re: [Zope] Frequent Zope crashes (Zope 2.9.8)

2008-02-11 Thread Chris Withers
Hi Paul, It's certainly worth filing a bug over in launchpad about this. I wonder if this is 64-bit related? cheers, Chris Paul Brettschneider wrote: Hello, my Zope 2.9.8 instance crashes up to 6 times per hour. This is very unfortunate since the constant restarting brings performance to it

Re: [Zope] python script, from string to dictionary.

2008-02-11 Thread Chris Withers
Dieter Maurer wrote: - google for the bugs in python's rexec and bastion modules which lead to them being deprecated... I speak only about "eval" (not "exec" or "rexec" nor "bastion"). In the "eval" world, you only have expressions. And with the "__builtins__" above, you have no builtin functio

Re: [Zope] python script, from string to dictionary.

2008-02-08 Thread Chris Withers
Dieter Maurer wrote: It is easy to secure "eval": globs = {'__builtins__':{}} eval(s, globs, globs) This ensures that "eval" cannot use any builtin functions -- especially, it cannot import anything. I'm fairly sure this isn't enough - google for the bugs in python's rexec and bastion

Re: [Zope] python script, from string to dictionary.

2008-02-08 Thread Chris Withers
[EMAIL PROTECTED] wrote: I 'serialized' mysql data in order to flat one-to-many related tables. the resulting dictionaries (one per record) are i.e. as: mydict [ brandcode ] = { 'itemcode': 'some value', 'itemsizeavail': [ ('XL',), ('XXL',), ('S',) ], 'keythree': '', 'keyfour': [ ], ... } now

Re: [Zope] ZODB & Zope 2.8 ZRDB/TM : "raise" + "except: pass"

2008-02-08 Thread Chris Withers
Pelletier Vincent wrote: Hi. I triggered a bad behaviour in Zope 2.8 Transaction class: You might be better off asking about this on [EMAIL PROTECTED] Also, try and make it a bit clearer about what you'd like help with... I did scan this but couldn't actually see any indication of what you

Re: [Zope] Zope lists in google

2008-02-07 Thread Chris Withers
Josef Meile wrote: Today I noticed that google doesn't find anything when giving "site:mail.zope.org" anymore. It worked before :-( Yeah, I noticed this too. It's a real shame. I wonder who did that and why? (file objects have no history tab and the database has been packed to the point where

Re: [Zope] python script, from string to dictionary.

2008-02-07 Thread Chris Withers
Bill Campbell wrote: On Thu, Feb 07, 2008, Stefano Guglia wrote: hello! I converted a dictionary in a string, and now I need to change back the same string as a dictionary in a zope python script. s = repr(d) newdict = eval(s) NO! Never ever ever eval strings. At some point you will end up

[Zope] Five events and webdav

2008-02-04 Thread Chris Withers
Hi All, What event should I subscribe to in order to recatalog all of a folder's contents should that folder be renamed via webdav? (I guess I'd need to uncatalog from old path and then re-catalog from new path?) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope] Appending to a file via manage_edit?

2007-12-14 Thread Chris Withers
Andreas Jung wrote: Sorry, but that's a pretty uncommon usecase. If you upload a file you're basically interested to store/replace it as a whole. That's how OFS.File is implemented. Although it probably would be *that* hard to hack an external method or some such that *did* update the PDat

Re: [Zope] Re: Frustrated with Python and Frameworks. Zope, Grok, , Django, CherryPy

2007-11-29 Thread Chris Withers
Martijn Faassen wrote: the work of collecting interesting Zope 2 products, contacting the authors (not strictly necessary but always a good thing to do) and checking them in, possibly cleaning things up here and there. Well, I think is is fine for products where the original maintainer has "go

Re: [Zope] Plone formgen

2007-11-20 Thread Chris Withers
sujitha mary wrote: hi, i have installed Plone formgen on Plone 3.0.but I couldn't find the custom action component in the overrides section.Plz help me. How about asking on a plone list? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.

Re: [Zope] storing python objects

2007-10-26 Thread Chris Withers
Jonathan wrote: - Original Message - From: "David Bear" <[EMAIL PROTECTED]> I need to run an external method to use some python functions that are restricted within zope. I'm thinking an easy way to get the data back would be to just store basic python objects within zodb; tupples, list

Re: [Zope] running pg_dump on windows as external method

2007-10-26 Thread Chris Withers
--On 25. Oktober 2007 22:48:42 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote: I am using zope on windows with an external python method to backup my database. I am struggling to run the following command: pg_dump.exe database > file More to the point: why are you doing this? Why not just

Re: [Zope] Re: deprecated products?

2007-10-17 Thread Chris Withers
Mihamina Rakotomandimby wrote: For example, Products last modified in 2002 are definitely out of date. It will never work on current releases... Really? Squishdot was last released about then, and it still runs just fine ;-) I dare say the same is true of TinyTablePlus and that's even older.

Re: [Zope] HOw to create a Zope Instance ? - ZeOmega and related info

2007-10-17 Thread Chris Withers
sathya wrote: regards sathya Whilst all very interesting, that doesn't actually answer the question of whether or not your hundreds of employees actually talk to each other ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

[Zope] finding which request dragged all the objects into memory

2007-10-11 Thread Chris Withers
Hi All, Anyone found any good logging methods or other strategies for determining which request dragged all the object in the zodb into memory? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [Zope] How can I get graph statistics

2007-10-11 Thread Chris Withers
Jonathan Salazar Santos wrote: I am wondering if..., ¿Could some body tell me (help me) how to do graph statistics on the fly with DTML or python? I need to create reports with statistics on the fly. Reportlab (http://www.reportlab.org) has some cool charting stuff... Chris -- Simplistix - Co

Re: [Zope] cas for zope and plone

2007-10-09 Thread Chris Withers
David Bear wrote: I am assuming that cas authentication works fine when zope is proxied behind apache. Yes. Is cas for zope working? The user folder I wrote here: http://www.simplistix.co.uk/software/zope/casuserfolder ...should still be working fine. Does it work when zope is proxied b

Re: [Zope] HOw to create a Zope Instance ?

2007-10-04 Thread Chris Withers
System User wrote: How t create a zope instance, how to give database connections to it? You're at Zeomega, I'm sure there's someone who can help you out there... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk __

Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-09-02 Thread Chris Withers
Doyon, Jean-Francois wrote: 'user': } TypeError: 'unicode' object is not callable The problem is that zope.tales.tales.evaluate() tests for a str ... But, now, for unknown reasons, it's getting a unicode string. ...but even if it got an str, str's aren't callable either. Might be somet

Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Chris Withers
Doyon, Jean-Francois wrote: So I see this: Error Type: TypeError Error Value: 'unicode' object is not callable Usual comments, full traceback please. This doesn't look like a normal encoding error but a bug in code somewhere... The only difference I can see is that the file went through su

Re: [Zope] How do I eval a variable within the acquisition path?

2007-08-21 Thread Chris Withers
Tim Nash wrote: category = REQUEST.form['category'] animal = REQUEST.form['animal'] print context.Vet.category.animal.vaccinateplan() print context.Vet[category][animal].vaccinateplan() cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simpli

Re: [Zope] Another "Structure" Problem

2007-08-16 Thread Chris Withers
[EMAIL PROTECTED] wrote: Yes, it's sloppy, but I'm trying to resolve one problem at a time. Once it's working, I'll make it cleaner ;) No, it's insane. You have *absolutely* no business passing html round like this> Stop and totally rethink what you are doing... Chris -- Simplistix - Co

Re: [Zope] Another "Structure" Problem

2007-08-15 Thread Chris Withers
[EMAIL PROTECTED] wrote: http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=
etc. Is there a way to work around this? Of course not, you don't need url quoting, that would be silly ;-) Chris PS: Why on *earth* you're pass

Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Chris Withers
[EMAIL PROTECTED] wrote: I tried this: but got this error: Error Type: TypeError Error Value: a_script() takes exactly 1 argument (0 given) Yeah, as you discovered later, leaving bits of things people suggest off is stupid ;-) So it doesn't look like the "string:${..." workaround worked :(

Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Chris Withers
Andreas Jung wrote: ...but next you'll be wondering how to url quote x. By using the well-know url_quote() or url_quote_plus() methods. ...and in a page template? ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Chris Withers
Ah Tony, looks like the penny is yet to drop... [EMAIL PROTECTED] wrote: Bummer. Well, I'm trying to call a script that will render content to the Web, like this: My guess is that what you're _really_ trying to do here is: ...but next you'll be wondering how to url quote x. I feel we're

Re: [Zope] Re: zope 2.10.4 for windows installer

2007-08-15 Thread Chris Withers
Sidnei da Silva wrote: New build is available: http://files.enfoldsystems.com/Zope-2.9.8-Final-7409.exe After some light testing, it's also now "officially" up: http://www.zope.org/Products/Zope/2.9.8 cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - h

Re: [Zope] Form-Through-Script

2007-08-15 Thread Chris Withers
[EMAIL PROTECTED] wrote: 1)?I have a form that I need to send to a script and then send off to a URL (PayPal). I need to process it through the script to renumber things for PP. How do I do this? I imagine I add an element to the PT like so: This action is rubbish. I have no idea what you'r

<    1   2   3   4   5   6   7   8   9   10   >