[Zope-dev] Patch to allow expression syntax for attribute 'sort' in tag. Very please, test it !

2000-07-01 Thread Adam Karpierz

Dear community

Please check out and test this patch that I would send it to Collector.
I suppose that this feature is very usefull for us and would be good
thing if will be insert in next beta of Zope2.2.0.
This patch is crude, without any checks (because my Zope needs reinstall),
but very simple and I not quess that is so buggy.

PS: Second little patch I have attached is only cosmetic and not important.

(apologies for my 'english'..)
--
Regards
Adam Karpierz
[EMAIL PROTECTED]



begin 666 DT_In.py.patch
M*BHJ(&QI8B]P>71H;VXO1&]C=6UE;G1496UP;&%T92]$5%]);BYP>2YO2 R-2 Q,CHS,SHT,R R,# P"BTM+2!L:6(O<'ET:&]N+T1O8W5M
M96YT5&5M<&QA=&4O1%1?26XN<'D)4W5N($IU;" P,B P,#HQ.3HU.2 R,# P
M"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@,S@U+#,Y," J*BHJ"BTM+2 S.#4L,SDQ
M("TM+2T*("!?7W)C'!R7V=L;V)A;',*("!F'!R/7-O0H@( H@(" @(" @(" @:68@
M:&%S7VME>2@G0H@( H@(" @(" @(" @:68@:&%S7VME>2@G&-E<'0@4WEN=&%X17)R;W(L('8Z"B$@(" @(" @(" @(" @(" @(" @("!R
M86ES92!087)S945R6YT87@@97)R;W(\+W-T
M2@G'!R(&ES(&YO="!.;VYE.B!S;W)T/7-E
M;&8N3(@"B @(" @(" @("!M=6QT71H;VXO1&]C=6UE;G1496UP;&%T92]$5%],970N<'DN;W)G
M"51H=2!*=6P@,CD@,3$Z-38Z,CD@,3DY.0HM+2T@;&EB+W!Y=&AO;B]$;V-U
M;65N=%1E;7!L871E+T147TQE="YP>0E3=6X@2G5L(# R(# P.C(U.C(W(#(P
M,# **BHJ*BHJ*BHJ*BHJ*BHJ"BHJ*B Q,3(L,3$X("HJ*BH*(" @("!A"P@http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Zope2.2.0b3 Image/File object create/upload bug (w/patch)

2000-07-01 Thread Martijn Pieters

On Wed, Jun 28, 2000 at 11:32:48AM +0200, Adam Karpierz wrote:
> Please, can you explain me why this bug and path was retracted from
> Collector with message ?:
> 
> "Retracted by submitter (in Zope-Dev mailinglist, forgot to define
> USE_EXTENSION_CLASS)."

Sorry, that was my fault. I somehow mixed up your entries with that of Brad
Clements, who had retracted his issue:

  http://lists.zope.org/pipermail/zope-dev/2000-June/005632.html

I see that you refiled your issue. Again, apologies.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] EMarket and 2.2.0b3

2000-07-01 Thread R. David Murray

On Sat, 1 Jul 2000, Adam Karpierz wrote:
> In installation of Zope Emarket and eTailer both installed
> and works ok on current 2.2.0 CVS.

Well, they may work OK, but there's still a problem.

> Then you should update some files from current CVS.

I did a full current CVS checkout, and if I access '/manage_main' I still
don't get prompted for a password.  Can you check to see if that happens
for you, as well?  Remember, call that URL as the first thing you do
in the browser session.  You ought to get prompted for a manager login,
but in my case I just get to see the directory listing, as if it
were viewable by Anonymous.

> In original version of 2.2.0b3 Emarket and eTailer even dont install
> correctly in my testing box (Win98).

Funny, I didn't have any install problems with b3.

Before I tried the CVS thing, I did some tracing under b3.  I'm
beyond my Zope Zen level here, so maybe someone else can point me
in the right direction to follow up on what I've found.  What I
did was to run Zope under debug and simply trace the execution of
publishing the URL "/manage_main" both with and without EMarket
installed.  I then diffed the results and looked at the place where
the execution path diverges.  It happens at line 369 of BaseRequest.py,
in the traverse function:

r = getattr(subobject, '__roles__', UNSPECIFIED_ROLES)

When EMarket is not installed, the next thing that happens is a
call to __of__ in PermissionRole.py.  This returns ('Manager',),
and so the page is protected.  If EMarket is installed, execution
continues immediately with line 370 of BaseRequest.py, making r
UNSPECIFIED_ROLES, and so I guess the page is not protected.
Given my limited understanding of what __of__ represents, I presume
this means that somehow the management method has become unwrapped
from its aquisition context after EMarket is installed?  But even
if I'm right about that I don't know where to go from here in
tracking down how it happens.  I tried to set a breakpoint at line
169 so I could inspect the object being manipulated, but I can't
seem to get the debugger to stop at that line.  I hit 'c' and it
just displays the page (or error message, depending on whether or
not EMarket is installed).

Can anyone point me in a useful direction?  Do I need to study the
aquisition module source code next?  Or suggest what I might be
doing wrong in setting the breakpoint in the debugger (I just do
'b ZPublisher/BaseRequest.py:169' and it *seems* happy with it...)

--RDM


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] FWIW, ZCVSMixin now at 0.1.1... and rising. ;-)

2000-07-01 Thread Steve Spicklemire


Hi Jim, et. al... 

> 
> Steve and Shane,
> 
> We've been positively *dying* to have cvs or cvs-like functionality. It's
> one of those things where we left the unix-everything-is-a-file-idiom and
> went, "Oh, um, heh, now what?" =)
> 

Well.. I don't know much about cosource but I did just put the latest 
version on zope.org, with Shane's patches, and incorporating some of his
UI suggestions. (as much as I could get done in a few hours...)  I'm kinda
strapped for time right now.. since I'm working on active, deadline oriented
projects and all.. of course all contributions welcome! This latest for example
just saved me lots of time, since I was about to do the same thing Shane did
in a much less elegant way...  Thanks again Shane!

For what it's worth, we needed this so badly in my project that I was pretty
much forced to implement it, anyway I could! We are using now... and it's 
working pretty well for us. You have to 'understand' too much about what's
going on for my taste but it's getting better.

-steve



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] EMarket and 2.2.0b3

2000-07-01 Thread Steve Spicklemire


Hi David,

   I think the design is flawed from the outset and should be
changed. Basically I was trying to have my cake and eat it too with
this one... and the solution (iterating through the folder class's
manage_options and slapping on my own was goofy anyway...) but there's
really no need. I'm moving MarketItem to a ZClassable object anyway
where this can by much more simply done with 'Views'. The thing I
haven't figured out is how to make the MarketItem ZClasses available
only inside a MarketItemsFolder. I'm thinking I may have to make
ZClasses for everything, but define the 'enclosed' ZClasses inside the
enclosing ZClasses. Also.. ZPatterns may affect this as well. I'm
looking into making all these things 'DataSkins' so that the actual
instance data can be kept in a very flexible way, but in ZODB by
default. ZPatterns looks really cool.. I feel sometimes like a kid
looking at a magic trick... sure that once I really get into it I'll
understand, but somehow not sure that it might *really* just be magic
after all. ;-)

-steve

> "RDM" == R David Murray <[EMAIL PROTECTED]> writes:

RDM> On Fri, 30 Jun 2000, R. David Murray wrote:
>> Darn, I should have done more testing.  I only fixed the prompt
>> for permissions problem.  manage_workspace still goes to the
>> import/export screen...back to the testing.

RDM> Arg, it's worse than I thought.  My original test was broken.
RDM> I haven't found the problem at all.  So please ignore all my
RDM> recent posts about this and I'll crawl back under my rock and
RDM> do some more careful testing.

RDM> --RDM


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )