Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Chris Withers
Chris McDonough wrote: > > Well, some revision of 2.4 alpha will ship with drop-in indexes, so using it > would be wonderful. Lemme know as soon as it's in CVS and I'll see if I can get my Zope from source going on WinNT, I gave up the last tiem my need came close but Brian has solved the proble

[Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Hi, Another data point on these errors. -- 2001-05-18T11:01:44 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0(\347\026' Traceback (innermost last): File E:\Zope\2379B4~1.2\lib\python\ZODB\Connection.py, line 508, in setstate AttributeError: 'None' object has no attribute 'l

Re: [Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Chris McDonough wrote: > > python > import Zope > app = Zope.app() > ob = app._p_jar['\000\000\000\000\000(\347\026'] > print ob.id > print ob.__class__ Thanks, that worked, and sorry Chris, but I'm about to ruin your day :-S >>> app = Zope.app() >>> ob = app._p_jar['\000\000\000\000\000(\347\0

Re: [Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Chris McDonough wrote: > > I suspect this has something to do with the _p_jar attribute of the > mounted storage object becoming None at some point after a commit. That > said, I'm in over my head, and I'm going to need some help from others > at DC. Since this error rarely gets raised at the u

Re: [Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Chris McDonough wrote: > > > Chris McDonough wrote: > > It is unfortunately one of the things lowering certain parts of NIP's > opinions > > of Zope :-S > > Ah I love FUD. Well, opine away. It has no actual effect on the system > that I can detect. Deinstalling CST will make it go away as wel

[Zope-dev] Quick Persistence Question

2001-05-21 Thread Chris Withers
if self.data is a BTree and I do: obj = self.data[id] obj.revsub = obj.revsub + 1 obj's class subclasses Persistant, as does self's Do I need to let the persistence mechanism know something has changed? If so, do I do: obj._p_changed=1 ...or... self._p_changed=1 (which feels like it's gonna

Re: [Zope-dev] Quick Persistence Question

2001-05-21 Thread Chris Withers
Casey Duncan wrote: > > Chris Withers wrote: > > > > if self.data is a BTree and I do: > > > > obj = self.data[id] > > obj.revsub = obj.revsub + 1 > > AFAIK _p_changed is only needed when you change a mutable attribute you > want stored like add

[Zope-dev] Woah! Weirdy Catalog Error :-S

2001-05-21 Thread Chris Withers
Automatic Zope Response wrote: > > Zope reported an error for: > Error Type: TextIndex.QueryError > > Error Value: Malformed query > > Traceback: > Traceback (innermost last): > File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/Publish.py, line 171, in >publish > File /usr/local/zope

[Zope-dev] Weirdy Catalog Error II :-S

2001-05-21 Thread Chris Withers
Got another one, thsi time from someone trying to upgrade to Squishdot 1.2.1: Error Type: IndexError Error Value: tuple index out of range The traceback is: Traceback (innermost last): File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223, in publish_module

Re: [Zope-dev] Woah! Weirdy Catalog Error :-S

2001-05-21 Thread Chris Withers
Chris McDonough wrote: > > It's possible to catch this error, but it's not possible to allow folks > to search for things with parens in them currently. I'm not having a good time catching it: from SearchIndex import TextIndex try: brains = apply(self.searchResults,(REQUEST,),kw)

[Zope-dev] ZCatalog Brains

2001-05-23 Thread Chris Withers
Hi, Is it still fair game to use the data_record_normalized_score_ attibute of ZCatalog Brain objects? If so, is it accurate and meaningful? Finally, is there any way I can do the Google-esque thing of showing the snippet of the searched etxt with the words that were found highlighted? cheers,

Re: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-25 Thread Chris Withers
Chris McDonough wrote: > > To further try to track this problem down, I've developed a "burger, > fries, coke" application in honor of this thread. So far, I've eaten > 84 burgers, 31 cokes, and 42 fries. I can't seem to break this thing, > and I'm not hungry anymore. :-( Sorry, but I had to

Re: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-25 Thread Chris Withers
Chris McDonough wrote: > > Note that I just changed CST to unwrap aq-wrapped objects just in case, I always wondered why Squishdot did this, now I know :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listi

Re: [Zope-dev] What would *you* like to have in PropertyManager and friends?

2001-05-29 Thread Chris Withers
> On Mon, May 28, 2001 at 09:37:21AM +0100, Chris Withers wrote: > > > > Well, a nicer interface for changing them is about all I think they need. > > And sort the marshalling stuff out. It would be nice to actually store blank > > dates and numbers (None should be a v

Re: [Zope-dev] List of objects PropertyType

2001-05-30 Thread Chris Withers
> > ...and how about a list-of-objects type too? > > Hmm what is that? You can have a list already. AFAIC, there is only 'lines', which is supposed to be a list of strings. I could be wrong of course? cheers, Chris ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Chris Withers
> When using batching in dtml-in, why is 'previous-sequence' only defined at > the first iteration of the current batch? And why is 'next-sequence' only > defined at the last iteration of the current batch? I know this problem ;-) I had it too, and stuck something in the collector about it. I di

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Chris Withers
> I've done it myself as well using (as described in the posting) two > dtml-in's (the second one purely for displaying the prev/next links). > > Is your solution any different? (The only one I can think of is storing > the info in your REQUEST object and using it later, but that's really > ugly.)

Re: [Zope-dev] dtml-in batching improved

2001-06-02 Thread Chris Withers
> > Nope, my solution used only one dtml-in and maybe a dtml-let, no REQUEST > > munging :-) > > > Ok, show me :) Hurm... gimme a shout next Thursday when I have access to the code again ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] dtml-in batching improved

2001-06-03 Thread Chris Withers
> > > Nope, my solution used only one dtml-in and maybe a dtml-let, no REQUEST > > > munging :-) > > > > > Ok, show me :) > > Hurm... gimme a shout next Thursday when I have access to the code again ;-) Actually, scratch that, check out the folder_contents.dtml file in CMFDefault/skins of the CMF

[Zope-dev] Request for a Pluggin Index (NameIndex)

2001-06-04 Thread Chris Withers
Hi, If anyone's got the time or fancies a challenge, could they write an index that behaves as follows: Indexed values: 1) C.J.Withers 2) Chris Withers 3) C Petrilli 4) Christopher McDonough search result C 1,2,3,4 C.J.Withers1 c.j.Withers1 wi

[Zope-dev] aq_explicit bug?

2001-06-05 Thread Chris Withers
This code from a python script gets called when iterating over either a list of objects or catalog brains: obj = _.getitem('sequence-item', 0).aq_explicit url = getattr(obj,'getURL',obj.absolute_url)() folderish = obj.isPrincipiaFolderish I would always expect to get an attribute error on

Re: [Zope-dev] Request for a Pluggin Index (NameIndex)

2001-06-05 Thread Chris Withers
> Looks like you should write your own index type. Zope 2.4 > comes with an PlugableIndex interface to allow third-party > indexes to be integrated into the Catalog. Yeah, I know all that, and I'm very much looking forward to playing with this. :-) However, the email was an invitation for anyone

Re: [Zope-dev] DCOracle2 Beta 1 Announcement

2001-06-06 Thread Chris Withers
Good to know :-) Chris - Original Message - From: "Matthew T. Kromer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 6:54 PM Subject: [Zope-dev] DCOracle2 Beta 1 Announcement > Description > DCOracle2 is a replacement for DCOracle, written primarily in C. DCOr

Re: [Zope-dev] A simple dtml-if question...

2001-06-07 Thread Chris Withers
> Thanks Christian, but it didn't work. I went with the long way: > > > > Valid response > > False response > > > False response > Valid Response Fasle Response cheers, Chris ___ Zop

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-06-07 Thread Chris Withers
Shane Hathaway wrote: > > But I think I have a solution for all of the issues in conflict > resolution. If you, or anyone else, is also interested in this, please > show support (if only by saying "please do this"!) :-) I can't work on > it unless I have a reason to. Please do this! :-) I'm p

[Zope-dev] Property Storage

2001-06-07 Thread Chris Withers
Hi, If I change one property on, say, a DTML Document, does that store a whole new copy of the document in the ZODB? If not, then how are properties stored? Is so, then how about storing properties in their own mini-class that just subclassed Persistent, so each property got its own pickle jar?

Re: [Zope-dev] Structured Text Plus

2001-06-11 Thread Chris Withers
Have you checked out StructuredTextNG? cheers, Chris Ian Clatworthy wrote: > > I've put together the design for an extended version of > Structured Text which I'd like some feedback on before > I go too much further. At this stage, the design is > explained via a series of user-level How-To's,

Re: [Zope-dev] aq_explicit isn't?

2001-06-11 Thread Chris Withers
Dieter Maurer wrote: > > What you probably need: > > derive a new ObjectManager from Acquisition.Explicit and > the current ObjectManager. > > provide an interface to manage the attributes that should > be acquired implicitly. Well, I had a go at this, but not quite in the way you desc

Re: [Zope-dev] Request for a Pluggin Index (NameIndex)

2001-06-11 Thread Chris Withers
Matt Hamilton wrote: > > I would like to help if I had time :) I think the most efficient way of > doing what you want is to construct an index based on a 'Suffix Trie' this > essentially allows matching of arbitrary substrings very quickly, the only > problem is that it takes up a fair amount o

Re: [Zope-dev] Non-undoable storage

2001-06-12 Thread Chris Withers
Chris McDonough wrote: > > Shane Hathaway wrote: > > > > "Morten W. Petersen" wrote: > > > during testing of a mail product I've discovered that the Data.fs file may > > > bloat considerably after storing 50 messages. Packing the database will > > > reduce the Data.fs file to 20 MB (from 40 MB).

[Zope-dev] Pluggable Index How-To Questions

2001-06-12 Thread Chris Withers
Andreas Jung wrote: > > There is a new How-To for PlugginIndexes: > > http://www.zope.org/Members/ajung/howto/PluginIndexes/index_html Looks great :-) Coupla Questions: Is there anything you can do in the index_object method to re-use ZCatalog's "get all attributes and call them if they're ca

Re: [Zope-dev] Request for a Pluggin Index (NameIndex)

2001-06-12 Thread Chris Withers
Matt Hamilton wrote: > > On Mon, 11 Jun 2001, Chris Withers wrote: > > > Wow Matt, you seem to know what you're talking about :-) > > My final year University project was to create an Open Source mailing list > archive :) I did quite a bit of reading into informa

Re: [Zope-dev] Acquisition Filtered Folder stuff

2001-06-12 Thread Chris Withers
Dieter Maurer wrote: > > Chris Withers writes: > > Dieter Maurer wrote: > > > > > > What you probably need: > > > > > > derive a new ObjectManager from Acquisition.Explicit and > > > the current ObjectManager. > > >

Re: [Zope-dev] Pluggable Index How-To Questions

2001-06-12 Thread Chris Withers
Andreas Jung wrote: > > > Is there anything you can do in the index_object method to re-use > ZCatalog's > > "get all attributes and call them if they're callable"? > > Don't understand the question...maybe I don't know this ZCatalog feature. My perception is that the 'classic' ZCatalog Indexes

Re: [Zope-dev] How to aquire from Context?

2001-06-17 Thread Chris Withers
Matt, Evan Simpson came up with some external methdos that do exactly what you want about 6 months to a year ago. If you search the zope.nipltd.com archives for [EMAIL PROTECTED] and [EMAIL PROTECTED] you may well be able to find what you're after :-) cheers, Chris Matt Hamilton wrote: > > De

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-19 Thread Chris Withers
> On Mon, 18 Jun 2001, Andreas Jung wrote: > > > These are good ideas to improve the TextIndex. I already encouraged > > Erik to put alltogether into a Fishbowl proposal, > > Which I would do, if I had time. Which I will have, but not for another > two weeks. :-) I'm guessing this is the point

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

2001-06-22 Thread Chris Withers
"Randall F. Kern" wrote: > > 2. Will the BDB storage be standard with 2.4? Transactional Undo sounds > _very_ nice. IIRC, Transactional Undo has now been implemented in FileStorage too cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] h

Re: [Zope-dev] Fishbowl not problem centered enough

2001-06-22 Thread Chris Withers
> I just see lots of solutions many of which attack some of the same problems > and no clear way to get those people comunicating and making informed > trade-offs I think this is a really good point. However, I think the fishbowl should remain the center for solutions. The collector is the cent

Re: [Zope-dev] Re: Problems with Transparent Folder and Zope 2.3.3

2001-06-22 Thread Chris Withers
Shane Hathaway wrote: > > If we're willing to start changing things at the C level, however, there > are more options. Well, given how extremely useful skins seem as a concept (rather than just in their CMF context), along with Transparent Folders I'd love to help out here or vote for this in an

Re: [Zope-dev] Re: Problems with Transparent Folder and Zope 2.3.3

2001-06-25 Thread Chris Withers
Shane Hathaway wrote: > > Well, if the getattr function in TransparentFolderPatch were in C, I > think it would be fast enough. Cool :-) > Again, it doesn't allow layers from outside the portal_skins tool because > of security considerations, not performance considerations. Erm... I know I'm b

Re: [Zope] Re: [Zope-dev] Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-25 Thread Chris Withers
Chris McDonough wrote: > > This purpose aligns well with those of the ArmoredCatalog proposal as well.. > see http://dev.zope.org/Wikis/DevSite/Proposals/ArmoredCatalog . > > > But even using such a "lazy catalog awareness", you might get into > > trouble. Using the ZCatalog's "find objects" fun

[Zope-dev] ObjectManager Bloat (was Re: [Zope] Re: Zcatalog bloat problem(berkeleydb is a solution?))

2001-06-26 Thread Chris Withers
Chris McDonough wrote: > > Shane's BTreeFolder Product attempts to ameliorate this problem a bit by > keeping the data that is normally stored in the _objects tuple in its > own persistent object (a btree). > > Are you breaking the content up into subfolders? This is recommended. Do you still

[Zope-dev] Re: ObjectManager Bloat

2001-06-26 Thread Chris Withers
Chris McDonough wrote: > > It doesn't hurt, but likely no. If at all, you'd want to do it so > management interface views would be sane. > > Then again, I've never actually used BTreeFolder. ;-) Ah, you should, it's great :-) The management interface is different, so you don't have problems

Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-26 Thread Chris Withers
Toby Dickenson wrote: > > >INDEXES: > > PrincipiaSearchSource Text Index 2,524 > > autore Keyword Index 4,055 > > bflow0 Field Index 4,055 > > bflow1 Field Index 4,055 > > bflow2 Field Index 4,055 > > Aha! a clue. > > If that is the output of the 'Indexes' tab then I dont think you are > u

Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-28 Thread Chris Withers
Giovanni Maruzzelli wrote: > > The catalog is a pristine 2.3.3b1 catalog. I'm sure that'll need upgrading then... > We have recreated the catalog from scratch because we tried > manage_convertBTrees , but it don't work for us, it return with an error > (and the same happens with 2.3.3 final): >

Re: [Zope-dev] RestrictedDTML w/isPrincipiaFolderish: error with CMF 1.1 and Zope 2.4.0

2001-06-29 Thread Chris Withers
Joseph Wayne Norton wrote: > > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** ^^ Joe, small point, but this belongs on the CMF list only ;-) cheers, Chris _

Re: [Zope-CMF] Re: [Zope-dev] RestrictedDTML w/isPrincipiaFolderish: error with CMF 1.1and Zope 2.4.0

2001-06-29 Thread Chris Withers
Chris Withers wrote: > > Joseph Wayne Norton wrote: > > > > Zope-Dev maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope-dev > > ** No cross posts or HTML encoding! ** > ^^ > > Joe, small point, but this

Re: [Zope-dev] Data.fs lost?? ideas?

2001-06-29 Thread Chris Withers
Chris Keyes wrote: > > Restart > > Realised file was 1.6meg not 700 Data.fs is question was of one of our FreeZope servers :-( Wgh... Anyone got any ideas what could have happened or what we should start looking for? cheers, Chris ___ Zope-D

Re: [Zope-dev] ZCatalog out of Zope

2001-07-02 Thread Chris Withers
"Paulo M. Goncalves" wrote: > > I'm a Zope and Python newbie and I'm trying to work with Zope's ZCatalog > in a Product coded in python. Can anyone give some intro or point to > some links with info in this subject. Maybe have a look at the SquishSite.py file in Squishdot? The search method of t

[Zope-dev] KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Hi Andreas, I could have sworn I saw you checkin a KeywordIndex where you could AND rather than OR the search results, but now I've installed 2.4.0b2, I can only find a normal KeywordIndex's with nothing to manage in the Settings tab. Where should I be looking? I also found some little bugs...

[Zope-dev] PS: KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Also, if I click on the 'help' link in a KeywordIndex, I get: Cannot locate object at: http://localhost:8080/Control_Panel/Products/KeywordIndex Also, if you actually click on the 'Settings' tab in a keywordIndex, something weird happens. You get teh catalog contents page, but all the URLs are r

[Zope-dev] Re: KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Andreas Jung wrote: > > see KeywordIndex_searchResults.stx > > The operator is *NOT* managable through the ZMI but you can pass > it as 'operator' parameter inside the query. even better :-) thankyou... Chris ___ Zope-Dev maillist - [EMAIL PROTEC

Re: [Zope-dev] KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Andreas Jung wrote: > > hmm...please be more detailed. The index management views > don't have an Undo tab. > > > /my_zcatalog//manage_addKeywordIndex by chris > > > > ...when I add an index, which doesn't seem right. Any Undo tab in or above the Catalog will show you this, looks like a bug in

[Zope-dev] Weird message from Python Scripts

2001-07-03 Thread Chris Withers
Zope 2.4.0b2 ZEO client (ZEO 1.0b3) I get lots of these when I first hit /manage: -- 2001-07-03T09:03:31 PROBLEM(100) Script (Python) Object "script name" n eeds to be recompiled. Any ideas? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECT

[Zope-dev] Core Session Tracking doesn't like Zope 2.4.0b2

2001-07-03 Thread Chris Withers
I get this: 2001-07-03T09:17:00 ERROR(200) Zope Couldn't install CoreSessionTracking Traceback (innermost last): File E:\Zope\24C37D~1.0B2\lib\python\OFS\Application.py, line 657, in install_ product (Object: ApplicationDefaultPermissions) (Info: CoreSessionTracking) File E:\Zope\sdcl

Re: [Zope-dev] CST patches for Zope 2.4.0b2

2001-07-03 Thread Chris Withers
Chris Withers wrote: > > Any ideas? Yup, and the patches are attached... cheers, Chris --- SessionIDManager.py.originalTue Apr 10 16:33:00 2001 +++ SessionIDManager.py Tue Jul 03 10:52:44 2001 @@ -174,7 +174,7 @@ __replaceable__ = UNIQUE # singleton f

Re: [Zope-dev] Zope 2.12 - supported Python versions

2008-10-21 Thread Chris Withers
Sidnei da Silva wrote: >> I always was under the impression that Jim feared the code and the >> required security audit was perceived as a major painful undertaking. > > That was my perception too. But after looking at the code it is really > not bad at all. The PyPy guys, who seem to be the auth

Re: [Zope-dev] Issues with restricted Python (was Re: Zope 2.12 - supported Python versions)

2008-10-24 Thread Chris Withers
Jim Fulton wrote: > The problem is that it it starts with an environment in which things > are allowed by default, and takes things away. This means that if > anything is forgotten, then you end up with holes. Isn't there a way we could change the AST manipulation such that we start with noth

Re: [Zope-dev] Issues with restricted Python (was Re: Zope 2.12 - supported Python versions)

2008-10-24 Thread Chris Withers
Jim Fulton wrote: > > On Oct 24, 2008, at 10:01 AM, Chris Withers wrote: > >> Jim Fulton wrote: >>> The problem is that it it starts with an environment in which things >>> are allowed by default, and takes things away. This means that if >>> anythin

Re: [Zope-dev] Proposal: Backporting some Python 2.5/2.6 fixes

2008-10-30 Thread Chris Withers
Sidnei da Silva wrote: > I would like to propose backporting some of the fixes needed for > Python 2.5 and 2.6 all the way down to Zope 2.10. The fixes that would > be backported would only be those that deal with syntax changes (eg: > 'with' and 'as' keyword being used as variables, relative impor

Re: [Zope-dev] Proposal: Backporting some Python 2.5/2.6 fixes

2008-10-30 Thread Chris Withers
Hanno Schlichting wrote: >>> Would anyone be against this? >> I find this pretty disturbing as it implies you *would* be running Zope >> 2.10 on Python 2.5 or 2.6 without fixing RestrictedPython. > > RestrictedPython is its own package. ...which python scripts and page templates rely on heavilly

Re: [Zope-dev] ZCatalog caching with memcached

2008-10-31 Thread Chris Withers
Hedley Roos wrote: > Since memcached is distributed only a single Zope client needs to > perform that query and the result is available to all other Zope > clients. This is where you'll get the big win: no need to load all the catalog-related objects into the zodb cache on all the clients which

Re: [Zope-dev] Bounty for Breaking RestrictedPython?

2008-10-31 Thread Chris Withers
Alan Runyan wrote: > So maybe we could crowd source the RestrictedPython problem? I actually tried this at EPC this year: I was offering a beer for anyone who could break out of the test environment and a bottle of champagne for anyone who did so and provided a test and patch that fixed the prob

Re: [Zope-dev] Issues with restricted Python (was Re: Zope 2.12 - supported Python versions)

2008-10-31 Thread Chris Withers
Shane Hathaway wrote: > Yes, and if such a change leads to faster adoption of new Python > releases by Zope, then it seems like a worthwhile effort. Instead of a > tree mutator, RestrictedPython would use a tree copier with a filter. > New Python features would initially not be supported at all, b

Re: [Zope-dev] problem with svn commit on svn.zope.org: "read-only file-system"???

2008-11-09 Thread Chris Withers
Gary Poster wrote: > Is this fun unique to me, or something problematic on svn.zope.org? http://mail.zope.org/pipermail/zope-web/2008-November/thread.html Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope-dev] deprecate http://download.zope.org/distribution

2008-11-20 Thread Chris Withers
Martijn Faassen wrote: > If we released a version of Grok, say, back in the day that relied on an > egg that's in that location, and someone built an application back in > the day that relies on that version of Grok, and then they wrote a nice > INSTALL.txt that said to the sysadmin how to insta

Re: [Zope-dev] working with SUF

2008-11-21 Thread Chris Withers
abhishek dastidar wrote: > Hi all, You're on the wrong list, you want [EMAIL PROTECTED] as detailed on the product's page at simplistix.co.uk > I am looking at how to use SimpleUserFolder to simulate users in > zope.Since I don't need to add/edit users in zope,I only added the > getUserDetails

Re: [Zope-dev] SVN: Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py Catch all exceptions; it's not required to be able to determine length.

2008-11-28 Thread Chris Withers
Tres Seaver wrote: > Hmm, some exceptions should never be caught (KeyboardInterrupt, > SystemExit, ConflictError). indeed, changing to: except Exception: ...will do the right thing for Python >= 2.5 cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http

Re: [Zope-dev] deprecate http://download.zope.org/distribution

2008-11-28 Thread Chris Withers
Martijn Faassen wrote: > It's clearly the case that people who are reading this thread know how > to avoid download.zope.org. The people who are not reading this thread > just get "tough luck" from the Zope community when their software > doesn't work anymore. No, that's not quite what I said. I'

[Zope-dev] zope.dottedname and releases

2008-12-02 Thread Chris Withers
Hi All, How do I go about getting myself added to the Zope 3 packages so I can do releases to PyPI? (my PyPI username is chrisw) I'm not planning on doing this without getting consent from the powers that be (unless its trivial, as in this case) but it'd be handy to roll out releases if needed

Re: [Zope-dev] zope.dottedname and releases

2008-12-03 Thread Chris Withers
Chris Withers wrote: > I merged my testcases into those for zope.dottedname and tidied up the > docs a bit, no changes to the code at all. However, I'd like to role out > a 3.4.3 release with these new docs in. Thanks to some help from Stephan: http://pypi.python.org/pypi/z

[Zope-dev] adapting to None

2008-12-12 Thread Chris Withers
Hi All, I have a need to be able to adapting certain objects to None, eg: def some_adapter(obj): if something: return None return somethingelse This is tricky, since returning None from an adapter results in a TypeError. I eventually came up with the idea of having a subclass of Inte

Re: [Zope-dev] adapting to None

2008-12-13 Thread Chris Withers
Dieter Maurer wrote: > I think that in some cases, it would be useful for an adapter factory > to say 'I cannot handle this case' and then the adapter lookup > is continued. Maybe, this is already supported? > Then, maybe, you can use it? That's exactly what returning None indicates... >> def som

Re: [Zope-dev] adapting to None

2008-12-13 Thread Chris Withers
Dieter Maurer wrote: > Then, use something different from adaptation (as adaptation does > not fit your wishes). This is what I'm trying to do with subclassing, and my question was why that subclassing wasn't working... > I expect that your adapter factory can raise "ComponentLookupError" > when

Re: [Zope-dev] adapting to None

2008-12-14 Thread Chris Withers
Dieter Maurer wrote: > I *DO* want that I can rely on the result of "IInterface(...)" really > providing "IInterface" (and not be forced to check against all > potential values others invented to circumvent the adaptation semantics). > Thus, I hope, you will not get your wish :-) FFS, I'm not aski

Re: [Zope-dev] adapting to None

2008-12-15 Thread Chris Withers
Marius Gedminas wrote: > doesn't fail with an exception, I can assume that > > ISomeInterface.providedBy(adapter) ...which in this case should return True, as None does indeed implement the interface in question. >> *That's* what I'm looking for help with, not judgement on whether >> adaptin

Re: [Zope-dev] [Zope3-Users] 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

[Zope-dev] bug in zope.testing 3.7.1?

2008-12-19 Thread Chris Withers
Hi Guys, Line 396 of doctest.py contains code which is, at best, platform-specific (and so a bug) or, more likely, irrelevent. I have the following code that runs the tests in all my package's docs: def test_suite(): suite = unittest.TestSuite() for path in \ glob(os.path.join(o

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

2009-01-09 Thread Chris Withers
Hedley Roos wrote: > Chris mentioned unit tests. You do not have to write a new unit test. > What is required is to have a look at the tests and then identify one > that is relevant to your problematic method. This test should be very > easy to read. The "hard" part is for you to expand this test t

Re: [Zope-dev] bug in zope.testing 3.7.1?

2009-01-09 Thread Chris Withers
Benji York wrote: > On Fri, Dec 19, 2008 at 1:03 PM, Chris Withers wrote: >> Hi Guys, >> >> Line 396 of doctest.py contains code which is, at best, >> platform-specific (and so a bug) or, more likely, irrelevent. > > Line 396 of doctest.py from zope.testing 3.

Re: [Zope-dev] adapting to None

2009-01-09 Thread Chris Withers
Shane Hathaway wrote: > Chris Withers wrote: >> Now, you could, for example, then do: >> >> IFieldType([]) >> >> ...which should return None. > > I don't understand your example: what is a field type, It's a shortened naem for "Type of

[Zope-dev] Why doesn't subclassing an Interface and overriding __call__ work with the C implementation?

2009-01-09 Thread Chris Withers
Alec Mitchell wrote: >> class IFieldType(Interface): >> def __call__(self,*args,**kw): >> r = Interface.__call__(*args,**kw) >> if r is empty: >> return None >> return r >> >> I suspect this would work with the python implementation of Interface, >> but

Re: [Zope-dev] zope.globalrequest?

2009-01-16 Thread Chris Withers
Hanno Schlichting wrote: > Community" in its entirety. Inventing a zope2 or z2c namespace is a poor > choice. Why? That seems like the perfect namespace for this particular package... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk __

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

2009-01-16 Thread Chris Withers
Tim Cook wrote: > I would also like for you to explain just what it is about my "attitude" > that you find so offensive/problematic? As a general rule of thumb, anyone who posts with more than on exlamation mark is likely on the wrong track. Cross posting to several lists is also a bit of a no

Re: [Zope-dev] zope.globalrequest?

2009-01-16 Thread Chris Withers
Andreas Jung wrote: > Namespaces are like dust and smoke. We already have enough (pointless) > namespaces. So let's stick with zope.* and z3c.* for Zope related packages. Why note merge those two into one then? Personally, I've always seen zope.* as being usable on their own or with either Zope

Re: [Zope-dev] Plans for Zope 2.12

2009-01-22 Thread Chris Withers
Andreas Jung wrote: > - - removing ZClasses completely ...into a seperate egg/product, right? > - - how do to a "traditional" SVN checkout of the Zope 2 and the related > Zope 3 modules? The Zope2.buildout maintains its dependencies through > a KGS - the old-style SVN checkout uses svn:exter

Re: [Zope-dev] Plans for Zope 2.12

2009-01-22 Thread Chris Withers
Stephan Richter wrote: > On Wednesday 21 January 2009, Andreas Jung wrote: >> - RestrictedPython security audit: such an audit has been made >> by Stefan and Sidnei. I am not qualified to speak about the >> correctness of the audit. I assume they know what they were >> doing. Unless objection

Re: [Zope-dev] Plans for Zope 2.12

2009-01-22 Thread Chris Withers
Andreas Jung wrote: >> It's a shame Jim has so little time to spend on this... > > Take your hat and collect some money for hiring Jim :-) Zope Corp chose to assume the Zope brand for themselves, given the prevelence of Zope 2 and RestrictedPython, it'd be nice if they could devote some of Jim'

Re: [Zope-dev] Plans for Zope 2.12

2009-01-27 Thread Chris Withers
Dieter Maurer wrote: > Chris Withers wrote at 2009-1-22 09:38 +: >> ... >> One thing that myself and Shane talked briefly about on this list was >> re-implementing the AST manipulation as dissallow-by-default filter >> rather than a straight manipulation. That w

Re: [Zope-dev] Plans for Zope 2.12

2009-01-27 Thread Chris Withers
Shane Hathaway wrote: > Chris Withers wrote: >> I don't think this is such a huge change, it's a change in the style >> of what RP does already, not a complete re-implementation... > > OTOH, with Python 3 now released, it seems unlikely that we'll see any &

Re: [Zope-dev] zope.security changes

2009-01-30 Thread Chris Withers
Fred Drake wrote: > On Thu, Jan 29, 2009 at 4:01 AM, Martijn Faassen > wrote: >> I believe it'd be nicer to extract any ZCML related stuff from >> zope.component at some point and put it into zope.componentzcml or >> something like that. We could then decide to move the and >> directives in the

Re: [Zope-dev] zope.security changes

2009-01-30 Thread Chris Withers
Martijn Faassen wrote: >>> This makes a lot more sense to me than having the ZCML support in >>> either zope.component or zope.security. >> Indeed, surely all zcml stuff belongs in zope.configuration anyway? > > No, not there either, as zope.configuration doesn't define *any* > directives except

Re: [Zope-dev] zope.security changes

2009-01-30 Thread Chris Withers
Brian Sutherland wrote: >> zope.configuration.x >> zope.configuration.y > > Please don't, having namespace packages that contain files (as > zope.configuration already does) breaks setuptools. Then setuptools needs fixing. There's no reason why zope.configuration and zope.configuration.x should

Re: [Zope-dev] zope.security changes

2009-02-06 Thread Chris Withers
Dieter Maurer wrote: > Chris Withers wrote at 2009-1-30 18:50 +: >> Brian Sutherland wrote: >>>> zope.configuration.x >>>> zope.configuration.y >>> Please don't, having namespace packages that contain files (as >>> zope.configuration a

[Zope-dev] multiple packages in the same namespace

2009-02-06 Thread Chris Withers
Jim Fulton wrote: > zope.configuration isn't a namespace package. It is simply a package > with subpackages. Does setuptools support something like: "packagea": packagea/__init__.py packagea/amodule.py "packagea.something": packagea/__init__.py packagea/something/__init__.py packagea/somethin

Re: [Zope-dev] Lower default socket timeout for buildout?

2009-02-06 Thread Chris Withers
Andreas Jung wrote: > At least I added a patch to buildout at some time ago in order to > make the default timeout configurable through a command-line option > (or was it a buildout options - I can't remember). Would be good to know where this lives and/or how Christian was limiting the timeout f

Re: [Zope-dev] Lower default socket timeout for buildout?

2009-02-06 Thread Chris Withers
Christian Theune wrote: > It's only a command line option right now. Which one? > Making it configurable > through a buildout option would be nice too. Yes, so it can live in default.cfg! Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.c

Re: [Zope-dev] Plans for Zope 2.12

2009-02-06 Thread Chris Withers
Lennart Regebro wrote: > On Thu, Jan 22, 2009 at 10:38, Chris Withers wrote: >>> Note that Jim never explained to me how he does these audits, but I gathered >>> some methods he used in conversations. I think I did a pretty thorough job >>> during the review. >>

Re: [Zope-dev] Plans for Zope 2.12

2009-02-06 Thread Chris Withers
Tres Seaver wrote: > Ugh. -1 to any attempt to use "space suits" in Z2. I would rather move > to a model which made it easy to mark some / all TTW objects as > "trusted", disabling security checks altogether: the "untrusted users > can edit TTW code" use case is pretty much irrelevant for any si

Re: [Zope-dev] Translations for zope packages.

2009-02-13 Thread Chris Withers
Adam GROSZER wrote: > Though no idea how the above could be solved with FOSS tools. You know Launchpad is being open sourced, right? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope-

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