Re: [Zope3-Users] best way to get started nowadays?

2007-09-22 Thread Chris Withers
Benji York wrote: Chris Withers wrote: So, what *is* the "standard" way now and where can I read about how to do it? That's in flux at the moment. I think Philipp's zopeproject is a step in the right direction, but haven't had a chance to look at it closely yet. W

[Zope3-Users] Re: best way to get started nowadays?

2007-09-23 Thread Chris Withers
Philipp von Weitershausen wrote: Yes, it has happened. That doesn't mean all 24 chapters are invalid now. I know that! Just don't take the chapter on Installing Zope for granted. And it's precisely this I'm asking about ;-) My suggestion is to use zopeproject which I've tried to document

Re: [Zope3-Users] job opportunities

2007-10-11 Thread Chris Withers
Kevin wrote: p.s. Don't hate me for cross posting ways to make money doing cool things like working with zope3 Nah, we'll just hate you for the PHP bit ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _

Re: [Zope3-Users] Zope3, ZEO and RAMCache

2007-11-22 Thread Chris Withers
Thierry Florac wrote: Hi, I have a simple question : I'm using RAMCache What's RAMCache? with ZEO and several Zope frontends ; when calling cache.invalidate(), are the selected entries invalidated only on the Zope frontend which handled the request, or are they invalidated on each fronten

Re: [Zope3-Users] Zope3, ZEO and RAMCache

2007-11-23 Thread Chris Withers
Thierry Florac wrote: As it's name implies, RAMCache utility only stores it's data in RAM. So I guess that ZODB won't be impacted by cache updates, as other Zope frontends... So what do you mean by "find it's way back to ZEO" ? And how can you handle this ?? Oh, I have no idea about RAMCache...

[Zope3-Users] using zope.testing's testrunner outside of zope

2007-12-05 Thread Chris Withers
Hi All, I've come to realise that a lot of the python packages I've developed for use outside of zope (twiddler and mailinglogger spring to mind) rely on zope.testing and work best with the testrunner in zope.testing. What's the best way to use this in a non-zope environment? Also, what's t

[Zope3-Users] formlib example/how-to?

2007-12-06 Thread Chris Withers
Hey All, I need "something like" formlib so want to give it a spin. Is there a good how-to or example anywhere? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-users maili

[Zope3-Users] formlib vs z3c.form

2007-12-06 Thread Chris Withers
Chris Withers wrote: I need "something like" formlib so want to give it a spin. Is there a good how-to or example anywhere? Kapil rightly pointed out off-list that z3c.form is the latest and greatest. Which one is "best" and where do I go for docs/examples? cheers,

[Zope3-Users] Adapter registration problem

2007-12-18 Thread Chris Withers
Hi All, Why does the following adapter registration not work? from zope.component import getAdapters from SomeModule import SomeClass from interfaces import ISomething getAdapters((SomeClass('test'),object()),ISomething) [] Cheers, Chris ___ Zo

[Zope3-Users] More on adapter registration problem :-(

2007-12-18 Thread Chris Withers
Hi Again, Looks like the problem is with zope.component rather than the zcml: from factories import Factory provideAdapter(Factory, adapts=(SomeClass,None), provides=ISomething, name='something') getAdapters((SomeClass('test'),object()),ISomething) [] from zope.component import getMultiAdap

Re: [Zope3-Users] Adapter registration problem

2007-12-18 Thread Chris Withers
Stephan Richter wrote: zope.component.getAdapters((MyClass(), object()), ISomething) list(zope.component.getAdapters((MyClass(), object()), ISomething)) [(u'something', <__main__.MyFactory object at 0xb7b4a06c>)] Interesting, what version of zope.component are you using? I'm using the one

Re: [Zope3-Users] Adapter registration problem

2007-12-19 Thread Chris Withers
Stephan Richter wrote: I'm using the one that ships with Zope 2.9.4, were any bugs in this area fixed since then? Yeah, this one probably still has the problem. Cool, well, glad to hear it's fixed in later releases anyway! cheers, Chris -- Simplistix - Content Management, Zope & Python Con

Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-01 Thread Chris Withers
Stephan Richter wrote: If you use buildout, there is a recipe for creating a test runner. See http://svn.zope.org/zope.kgs/trunk/?rev=83325 for a good example. Where's the actual test runner or test runner creater? Also, what's the best way to indicate in setup.py that my package needs zop

Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-04 Thread Chris Withers
Stephan Richter wrote: On Friday 01 February 2008, Chris Withers wrote: Stephan Richter wrote: If you use buildout, there is a recipe for creating a test runner. See http://svn.zope.org/zope.kgs/trunk/?rev=83325 for a good example. Where's the actual test runner or test runner cr

Re: [Zope3-Users] Re: [Zope-dev] Zope 3.4.0 candidate 1 Released

2008-03-28 Thread Chris Withers
Marius Gedminas wrote: how bout a zope3 page on myspace?lol Just write a Facebook app that interacts with the list archives ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope

Re: [Zope3-Users] Get anonymous and logged users

2008-04-07 Thread Chris Withers
David Pratt wrote: I was thinking of a small wsgi app that puts ip into a database or dict and remove ips if they are not active within a time interval. Sessions will give logged users so they can be differentiate with anonymous. Think that should do it. Seems simple enough, any other ideas?

Re: [Zope3-Users] Zope Product Recommendations

2008-07-15 Thread Chris Withers
Jon Hadley wrote: Hi all, The list of products at Zope.org is fairly daunting for a n00b like me. None of the product there will likely work with Zope 3 anyway ;-) Does anyone have any recommendations in terms of usefulness / wow factor / day to day utility apps? That's a bit like asking "

[Zope3-Users] 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

[Zope3-Users] getting post data in a Zope 3 view

2008-08-19 Thread Chris Withers
Hi All, I have a view: from zope.publisher.browser import BrowserView class Receiver(BrowserView): def __call__(self): print self.request.bodyStream.read() return 'done' ...which I'm trying to test with the following script: import socket socket.setdefaulttimeout(5) fro

Re: [Zope3-Users] getting post data in a Zope 3 view [moreinfo: paster]

2008-08-19 Thread Chris Withers
Chris Withers wrote: > ...but the processing seems to hang in bodyStream.read() until the > socket times out on the client side (ie: I get a timeout exception) > at which point the read() returns and shows what I'd expect. > > What am I doing wrong? I should note that I&#

Re: [Zope3-Users] getting post data in a Zope 3 view - paste.httpserver is the problem

2008-08-19 Thread Chris Withers
Chris Withers wrote: > I should note that I'm using "paster serve" here, so I wonder if that > has any bearing? Well no, but the fact that my deploy.ini contained the following: [app:main] use = egg:HelloWorld [server:main] use = egg:Paste#http host = 127.0.0.1 port = 80

Re: [Zope3-Users] getting post data in a Zope 3 view [moreinfo: paster]

2008-08-19 Thread Chris Withers
Alek Kowalczyk wrote: > I would suggest checking if the Content-Length value has been properly set. Yep, httplib.HTTPConnection does this for you. I even checked that it works ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co

[Zope3-Users] building zope 3 instances?

2008-08-19 Thread Chris Withers
Hi All, Am I right in thinking that this is now the canonical way to get a "zope 3 instance": http://pypi.python.org/pypi/zc.zope3recipes ? If so, could the owners of these packages hide, remove or otherwise document that they're out of date: http://pypi.python.org/pypi/zc.recipe.zope3checko

Re: [Zope3-Users] building zope 3 instances?

2008-08-19 Thread Chris Withers
Philipp von Weitershausen wrote: >> http://pypi.python.org/pypi/zc.zope3recipes >> >> ? > > If you still want an instance, yes. I don't particularly like instances > as we've had them with Zope 2 and Zope 3 (they don't quite work in a > WSGI environment). So what do you do instead? How do peopl

Re: [Zope3-Users] building zope 3 instances?

2008-08-20 Thread Chris Withers
[EMAIL PROTECTED] wrote: >>> If you still want an instance, yes. I don't particularly like instances >>> as we've had them with Zope 2 and Zope 3 (they don't quite work in a >>> WSGI environment). >> So what do you do instead? >> How do people get a zope 3 project/application/whatever up and runnin

Re: [Zope3-Users] building zope 3 instances?

2008-08-22 Thread Chris Withers
Sebastien Douche wrote: > On Wed, Aug 20, 2008 at 00:11, Chris Withers <[EMAIL PROTECTED]> wrote: >>> Please don't remove things! Never ever. People might still be using them. >> That is getting a bit old. The confusion from having this cruft lying >> arou

Re: [Zope3-Users] building zope 3 instances?

2008-08-22 Thread Chris Withers
Marius Gedminas wrote: >>> At the *very* least it's take about 2 minutes for a package manager to >>> put a large "DO NOT USE - THIS IS ONLY HERE TO SUPPORT EXISTING SETUPS" >>> at the top of the text on pypi to stop innocent bystanders getting >>> caught out. > > That's a very good idea. It shou

Re: [Zope3-Users] building zope 3 instances?

2008-09-01 Thread Chris Withers
Paul Winkler wrote: >> That argument neglects to include people that don't cache eggs (for >> whatever reason) and people that need to build on a machine that may >> have never cached the egg in question (like deploying brand new >> servers). > > +99 > > Deleted releases can cause massive uninten

Re: [Zope3-Users] [Zope-dev] Next Step to Bug Resolution???

2008-12-19 Thread Chris Withers
Tim Cook wrote: > As I said before I may have miss-diagnosed the problem and may fix may > break other things? This is what a full-coverage unit and functional test suit is for. You have got automated tests for all this stuff, right? Chris -- Simplistix - Content Management, Zope & Python Co

Re: [Zope3-Users] [Zope-dev] Next Step to Bug Resolution???

2009-01-09 Thread Chris Withers
Tim Cook wrote: > Hi Chris, > > On Fri, 2008-12-19 at 10:06 +0000, Chris Withers wrote: >> Tim Cook wrote: >>> As I said before I may have miss-diagnosed the problem and may fix may >>> break other things? >> This is what a full-coverage unit and funct

Re: [Zope3-Users] How do I get rid of a PAU with the API?

2009-01-12 Thread Chris Withers
Douglas Cerna wrote: > Try to remove the utility from the sm like this: > > del sm['authentication'] Eh? You shouldn't have do delete it just because you want to un-register it. I wonder why Sebastian's unregisterUtility didn't work? Chris -- Simplistix - Content Management, Zope & Python Con

Re: [Zope3-Users] [RFC] Merging zope3-users list with z...@zope.org list

2009-01-16 Thread Chris Withers
Andreas Jung wrote: > Thoughts? +1, they already end up in the same IMAP folder for me... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list Zope3-users@zope.org ht

Re: [Zope3-Users] new to python-zope-plone and need advice

2009-04-11 Thread Chris Withers
Luis Espinoza Jr. wrote: > > Can Plone and Zope 3 co-exist on the same system? yes. > Are there problems because of Zope 2 in Plone clashing with Zope 3? only if you try really hard ;-) > I understand Plone contains some Zope 3 components and I wonder if I will end > up with multiple copies

Re: [Zope3-Users] ImportError: No module named viewlet.interfaces !!

2009-04-11 Thread Chris Withers
Chetan Kumar wrote: > bump!! This is not a bulletin board. Appending exclamation marks and making stupid posts like this will just get you ignored/blocked. I suggest you read the whole of this: http://www.catb.org/~esr/faqs/smart-questions.htm Specifically: http://www.catb.org/~esr/faqs/smar

Re: [Zope3-Users] ImportError: No module named viewlet.interfaces !!

2009-04-11 Thread Chris Withers
Chetan Kumar wrote: > The reason was the absence of path to zope.viewlet egg from the > sys.path. This slippage can surely be attributed to buildout. Also > discovered that out of 170 eggs listed in buildout.cfg only about 60 > appear in the scipts generated by buildout (paster, debug, ctl, pyt

Re: [Zope3-Users] Attempting to use z3c.rml properly...

2009-04-22 Thread Chris Withers
Roger Ineichen wrote: >> I've given up on using z3c.rml (or indeed reportab's open-source >> software) with Google's AppEngine as the restrictions they >> were too constraining. It's interesting to see z3c.rml knocking around. I've often questioned the legal existence of z3c.rml. As far as I rem

Re: [Zope3-Users] zope.testing question

2009-05-31 Thread Chris Withers
Kent Tenney wrote: > "zope.testing uses buildout. To start, run python bootstrap.py. > It will create a number of directories and the bin/buildout script. > Next, run bin/buildout. It will create a test script for you. Now, run > bin/test to run the zope.testing test suite." > > $ python bootstrap

Re: [Zope3-Users] zope.testing question

2009-06-01 Thread Chris Withers
Kent Tenney wrote: >> What are you looking to do with zope.testing? Develop it or write some tests >> using it? > > I don't know the first thing about it, just starting to read the doc. If you're looking to test yourpackage, put the following in a buildout.cfg, in the same directory as bootstrap

Re: [Zope3-Users] zope.testing question

2009-06-03 Thread Chris Withers
Kent Tenney wrote: > to check out zope.testing I've tried ending this command a number of ways, > without success. > $ svn co svn://svn.zope.org/repos/main/Zope/trunk/<...> Why are you doing this rather than using the buildout.cfg I gave you? Chris -- Simplistix - Content Management, Zope & Pyt

Re: [Zope3-Users] zope.testing question

2009-06-03 Thread Chris Withers
Kent Tenney wrote: > My question had to do with checking out zope.testing without pulling > in the entire trunk. Then you want: svn://svn.zope.org/repos/main/zope.testing/trunk/ You certainly don't want svn://svn.zope.org/repos/main/Zope/trunk/, as that's Zope 2... Chris -- Simplistix - Cont

[Zope3-Users] sx.translations 1.2 released!

2009-06-19 Thread Chris Withers
I'm pleased to announce a new release of sx.translations. This release records the dates untranslated msgids were first seen. sx.translations provides components for use with Zope 3 and Zope 2 + Five that implement both ITranslationDomain and ILanguageAvailability as well as supporting the reco

<    1   2