Re: [Zope-dev] What from zope.app are you using

2006-04-05 Thread Philipp von Weitershausen
Brian Sutherland wrote:
> On Wed, Apr 05, 2006 at 11:18:46PM +0200, Philipp von Weitershausen wrote:
>> Brian Sutherland wrote:
>>> On Wed, Apr 05, 2006 at 05:29:41PM +0200, Philipp von Weitershausen wrote:
 I would like to know what other zope.app packages your 3rd party
 software is using.
>>> Er, FiveSQLOS is using quite a lot actually:
>>>
>>> https://codespeak.net/svn/z3/sqlos/trunk/Zope2/FiveSQLOS/dependencies-meta.zcml
>>> https://codespeak.net/svn/z3/sqlos/trunk/Zope2/FiveSQLOS/dependencies.zcml
>> Why are you loading zope.app.component/meta.zcml and
>> zope.app.security/meta.zcml? Five should provide all the necessary
>> directive registrations
> 
> I havn't touched that code since the Zope2.8 days. I'll believe you for
> now and try testing it when the dust has settled.

Ok. By the way, that "should" in "Five should provide..." also means
that if Five doesn't provide the necessary directive registrations yet
(which might very well be), then we need to make it.

>> As for zope.app.rdb, I guess we'll have to move it down to zope.rdb.
> 
> I can probably take care of that in the next days.

Great. Note that I'm working on the jim-adapter branch. I suggest you do
your modifications there as well.

Philipp

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] makerequest issues

2006-04-05 Thread Paul Winkler
On Wed, Apr 05, 2006 at 11:23:40PM +0200, Stefan H. Holek wrote:
> Out of curiosity, you know that SimpleItem does not have a  
> constructor? You just inherit the one from ExtensionClass.Base, which  
> accepts everything and subsequently ignores it. So your item will  
> have an empty id. This *may* be what you want so your physical path  
> starts with '' instead of 'blah', but I'm not sure...

I didn't know that. Thanks.
 
-- 

Paul Winkler
http://www.slinkp.com
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] makerequest issues

2006-04-05 Thread Stefan H. Holek
Out of curiosity, you know that SimpleItem does not have a  
constructor? You just inherit the one from ExtensionClass.Base, which  
accepts everything and subsequently ignores it. So your item will  
have an empty id. This *may* be what you want so your physical path  
starts with '' instead of 'blah', but I'm not sure...


On 5. Apr 2006, at 17:21, Paul Winkler wrote:


item = SimpleItem(id='blah')


--
Anything that happens, happens.  --Douglas Adams


___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Philipp von Weitershausen
Brian Sutherland wrote:
> On Wed, Apr 05, 2006 at 05:29:41PM +0200, Philipp von Weitershausen wrote:
>> I would like to know what other zope.app packages your 3rd party
>> software is using.
> 
> Er, FiveSQLOS is using quite a lot actually:
> 
> https://codespeak.net/svn/z3/sqlos/trunk/Zope2/FiveSQLOS/dependencies-meta.zcml
> https://codespeak.net/svn/z3/sqlos/trunk/Zope2/FiveSQLOS/dependencies.zcml

Why are you loading zope.app.component/meta.zcml and
zope.app.security/meta.zcml? Five should provide all the necessary
directive registrations

As for zope.app.rdb, I guess we'll have to move it down to zope.rdb.

> zope.app.container

Will move to zope.container.

> zope.app.location

Moved to zope.location.

> zope.app.exception

What from zope.app.exception are you using? If it's just UserError, than
that's ok. It's moved to zope.exceptions now.

Philipp
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: Question about RTFExport

2006-04-05 Thread Philipp von Weitershausen
[EMAIL PROTECTED] wrote:
> I'm using the RTFExport product. It woks well, but I have a question.
> I'm exporting the fields of my archetype, and the result file shows
> every field. This result file hasn't any format. I would like to create
> a RTF file with the same format that I see in the Edit mode or the View
> mode (in Plone). Is it possible?

Dear BKJ,

this list is NOT about *using* Zope or developing *with* Zope. It is
about the development *of* Zope.

Since you are having problems with a third-party add-on product, we
unfortunately cannot help you. You mention Plone in your email; I
therefore suggest you contact the Plone users list. See
http://plone.org/support for more info.

Philipp
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: What from zope.app are you using

2006-04-05 Thread Philipp von Weitershausen
Paul Winkler wrote:
> On Wed, Apr 05, 2006 at 05:29:41PM +0200, Philipp von Weitershausen wrote:
>> I would like to know what other zope.app packages your 3rd party
>> software is using. If thereare any other used than the ones mentioned in
>>  the proposal, we'll have to move them out of zope.app. I'd like to ask
>> for your help on that, otherwise future Zope 2 versions might not
>> anymore include the package you're using.
> 
> Aside from stuff mentioned on your proposal, we are using macros from
> zope.app.rotterdam.standardmacros.

Aha. Why? Are you actually using parts of the Rotterdam skin?

Philipp
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: What from zope.app are you using

2006-04-05 Thread Philipp von Weitershausen
Martin Aspeli wrote:
>> Well, CMFonFive uses zope.app.publisher.browser, because that's where
>> the menus hang.
> 
> We would like to start using browser menus in Plone

I was asking about current usage, not pious new years resolutions :).

>> CPS uses zope.app.container for the container events and the IAdding
>> interface all over the place.
> 
> We may want to reuse zope 3 containment concepts in Archetypes over time.

Off-topic-ness aside, this would not be Archetypes role to play. We
probably want make Zope 3 style containment an alternative to
Acquisition in Zope 2 at some point.

Of course, ideas, proposals and code would be welcome :).

>> And we use zope.app.testing a lot, which you suggested not to move if
>> I understand you correctly.
> 
> Anything to make testing easier, please. :)

Bottom line: Stop using zope.app.placelesssetup. If you *are* using it,
it's most probably my fault for telling you to use it.

Philipp
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Hunting down objects without classes...

2006-04-05 Thread Dieter Maurer
Chris Withers wrote at 2006-4-4 17:28 +0100:
>I'm currently plagued by the following annoying:
>
>ZODB Could not import class 'BTree' from module 'BTree'
>
>What's the recommended way of tracking these down?

At this place, nothing is known (beside the information you see).

You can however log the traceback as well.
With some luck (and, if necessary, "__traceback_info__" additions),
this will allow you to locate the problem.

-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Philipp von Weitershausen
Lennart Regebro wrote:
> On 4/5/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote:
>> I would like to know what other zope.app packages your 3rd party
>> software is using.
> 
> Well, CMFonFive uses zope.app.publisher.browser, because that's where
> the menus hang.

Menu support will be moved to zope.menu.

> CPS uses zope.app.container for the container events and the IAdding
> interface all over the place.

Container support will be moved to zope.container once I figure out how
to sanely deal with existing pickles.

Is anyone in Zope 2 persisting zope.app.container.btree.BTreeContainer,
zope.app.container.ordered.OrderedContainern or using the contained
proxy (which is also persistent)?

> CPSMailAccess uses zope.app.cache, zope.app.dublincore,
> zope.app.copypastemove, and of course zope.app.mail.

I've added these four to my list. They'll appear in an updated version
of the proposal. I propose to move them all down to zope.* as they are
(zope.app.mail should probably be called zope.sendmail). They're all not
very complicated cases except zope.app.cache which has zope.app.form
dependencies.

I'd be glad if you could help me with moving them. I'm working on the
jim-adapter branch. Straight moves usually just entail

1. svn mv'ing the directory
2. fixing up imports inside and outside the package
3. running the tests
3. providing BBB (I'm still figuring out a good way to do this w/o
getting in circular import troubles)

> (And also zope.app.pagetemplate and
> zope.app.publisher.browser.BrowserView but I suspect those are special
> hacks or something, that may be avoidable now, Tarek might know more.)

BrowserView will move to zope.publisher.browser. I haven't really made
up my mind about zope.app.pagetemplate yet. Some use cases might be
helpful. I'm also very much open for suggestions and, of course, for
help :). The proposal still isn't finished regarding many important
details. I myself am not sure what to do with some of the packages or
the things we need from some packages.

> And we use zope.app.testing a lot, which you suggested not to move if
> I understand you correctly.

Indeed. What from zope.app.testing are you using? If it's
PlacelessSetup, I bet it's not needed (on Zope >2.9 that is). If you
need Component Architecture setup and teardown, use zope.component.testing.

Philipp
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Lennart Regebro
On 4/5/06, Lennart Regebro <[EMAIL PROTECTED]> wrote:
> CPSMailAccess uses zope.app.cache, zope.app.dublincore,
> zope.app.copypastemove, and of course zope.app.mail.
> (And also zope.app.pagetemplate and
> zope.app.publisher.browser.BrowserView but I suspect those are special
> hacks or something, that may be avoidable now, Tarek might know more.)

On an unrelated note, I would like to point out how cool it is that
the CPSMailAccess uses so many parts of Zope3 in Zope2, and how well
it works. The calendar uses almost nothing of zope.app directly,
although it's a heavy user of Five integrational stuff.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Philipp von Weitershausen
Bernd Dorn wrote:
> i use zope.app.cachedescriptors in zope2 for various projects

You probably mean zope.cachedescriptors. That isn't part of zope.app and
therefore no problem in the zope.app vs. Zope 2 issue.

Philipp

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Paul Winkler
On Wed, Apr 05, 2006 at 05:29:41PM +0200, Philipp von Weitershausen wrote:
> I would like to know what other zope.app packages your 3rd party
> software is using. If thereare any other used than the ones mentioned in
>  the proposal, we'll have to move them out of zope.app. I'd like to ask
> for your help on that, otherwise future Zope 2 versions might not
> anymore include the package you're using.

Aside from stuff mentioned on your proposal, we are using macros from
zope.app.rotterdam.standardmacros.

-- 

Paul Winkler
http://www.slinkp.com
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Bernd Dorn


On 05.04.2006, at 17:29, Philipp von Weitershausen wrote:


 implementing this proposal on the
jim-adapter branch of Zope 3.

I would like to know what other zope.app packages your 3rd party
software is using. If thereare any other used than the ones  
mentioned in
 the proposal, we'll have to move them out of zope.app. I'd like to  
ask

for your help on that, otherwise future Zope 2 versions might not
anymore include the package you're using.


i use zope.app.cachedescriptors in zope2 for various projects

regards, bernd
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Martin Aspeli


Lennart Regebro-2 wrote:
> 
> Well, CMFonFive uses zope.app.publisher.browser, because that's where
> the menus hang.
> 

We would like to start using browser menus in Plone



> CPS uses zope.app.container for the container events and the IAdding
> interface all over the place.
> 

We may want to reuse zope 3 containment concepts in Archetypes over time.



> CPSMailAccess uses zope.app.cache, zope.app.dublincore,
> zope.app.copypastemove, and of course zope.app.mail.
> 

We'd certainly want DC and Mail in Plone over time. Cache and copypastemove
sounds like it would be useful, but I don't know what they do.



> And we use zope.app.testing a lot, which you suggested not to move if
> I understand you correctly.
> 

Anything to make testing easier, please. :)

Martin
--
View this message in context: 
http://www.nabble.com/What-from-zope.app-are-you-using-t1400253.html#a3767850
Sent from the Zope - Dev forum at Nabble.com.

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Lennart Regebro
On 4/5/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote:
> I would like to know what other zope.app packages your 3rd party
> software is using.

Well, CMFonFive uses zope.app.publisher.browser, because that's where
the menus hang.

CPS uses zope.app.container for the container events and the IAdding
interface all over the place.

CPSMailAccess uses zope.app.cache, zope.app.dublincore,
zope.app.copypastemove, and of course zope.app.mail.
(And also zope.app.pagetemplate and
zope.app.publisher.browser.BrowserView but I suspect those are special
hacks or something, that may be avoidable now, Tarek might know more.)

And we use zope.app.testing a lot, which you suggested not to move if
I understand you correctly.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What from zope.app are you using

2006-04-05 Thread Philipp von Weitershausen
Hi there,

we don't really want to ship all of zope.app with Zope 2. zope.app is
supposed to be the Zope 3 application server. It shouldn't be included
in Zope 2, especially since it requires twisted and such.

We're therefore moving everything that isn't part of the core Zope 3
application server out of zope.app so that we won't have to include
zope.app in future Zope 2 versions. Perhaps we can deprecate zope.app in
Zope 2.10.

I've compiled a list of zope.app subpackages that are directly used by
Zope2/Five in a proposal: http://dev.zope.org/Zope3/MakeZopeAppSmaller.
I am currently in the process of implementing this proposal on the
jim-adapter branch of Zope 3.

I would like to know what other zope.app packages your 3rd party
software is using. If thereare any other used than the ones mentioned in
 the proposal, we'll have to move them out of zope.app. I'd like to ask
for your help on that, otherwise future Zope 2 versions might not
anymore include the package you're using.

Philipp

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] makerequest issues

2006-04-05 Thread Paul Winkler
On Wed, Apr 05, 2006 at 11:48:31AM +0200, Stefan H. Holek wrote:
> Regarding your patch, why do you use lambda: () and not lambda: ('',)?

Because that would change the path of the wrapped object,
which is not a desirable side effect.

Here's the behavior with my patch:

>>> from Testing.makerequest import makerequest
>>> from OFS.SimpleItem import SimpleItem
>>> item = SimpleItem(id='blah')
>>> # Wrapping an object with makerequest should not change its path.
>>> makerequest(app).getPhysicalPath() == app.getPhysicalPath()
True
>>> makerequest(item).getPhysicalPath() == item.getPhysicalPath()
True
>>> makerequest(item).getPhysicalPath()
('',)

Now here's the behavior with your suggestion:

>>> from Testing.makerequest import makerequest
>>> from OFS.SimpleItem import SimpleItem
>>> item = SimpleItem(id='blah')
>>> makerequest(app).getPhysicalPath() == app.getPhysicalPath()
True
>>> makerequest(item).getPhysicalPath() == item.getPhysicalPath()
False
>>> item.getPhysicalPath()
('',)
>>> makerequest(item).getPhysicalPath()   # uh-oh
('', '')

-- 

Paul Winkler
http://www.slinkp.com
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Question about RTFExport

2006-04-05 Thread [EMAIL PROTECTED]
Hello,
I'm using the RTFExport product. It woks well, but I have a question. I'm exporting the fields of my archetype, and the result file shows every field. This result file hasn't any format. I would like to create a RTF file with the same format that I see in the Edit mode or the View mode (in Plone). Is it possible? 
Thanks.

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] makerequest issues

2006-04-05 Thread Stefan H. Holek

On 4. Apr 2006, at 22:08, Paul Winkler wrote:


On Tue, Apr 04, 2006 at 08:09:05PM +0200, Stefan H. Holek wrote:

This looks fine to me because the world ends at parent. Your earlier
example wrapped an object that was in the middle of an acquisition
chain (IIRC),


no, I think you invented that :)



Ok, I retract ;-)


which I am not sure I like. You are safe to wrap the
top-most object, be it a true "app" or not.


OK. In that case, 2057 really *is* a bug.
http://www.zope.org/Collectors/Zope/2057


Well, thing is that getPhysicalPath of Traversable looks like this:

def getPhysicalPath(self):
path = (self.getId(),)
p = aq_parent(aq_inner(self))
if p is not None:
path = p.getPhysicalPath() + path
return path

whereas getPhysicalPath of Application looks like this:

def getPhysicalPath(self):
# We're at the base of the path.
return ('',)

As you can see Application is designed to terminate the lookup  
recursion. With "safe" I meant with regard to acquiring the REQUEST,  
granted getPhysicalPath breaks (time for another half-retraction it  
seems).


Regarding your patch, why do you use lambda: () and not lambda: ('',)?

Stefan

--
Anything that happens, happens.  --Douglas Adams

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )