[Zope] Re: [Zope-dev] Poor programming practice?

2001-01-31 Thread Robin Becker

In article <p04330111b69dab5cf543@[134.76.136.114]>, Ragnar Beer
<[EMAIL PROTECTED]> writes
>What's the go4 book?
>
>Ragnar
>
>>yes I have the go4 book and I fully agree that one or other of the above
>>patterns would be feasible. The problem is that the base medusa comes
>>from Sam Rushing and Zope makes use of it. I guess since I already patch
>>the Zope code I could just extend the patch, but the best solution would
>>come from having two main players agree on such stuff.
>>--
>>Robin Becker
>
gang of four Gamma et al
-- 
Robin Becker

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




Re: [Zope] Python script safety

2001-01-29 Thread Robin Becker

In article <[EMAIL PROTECTED]
in>, Michel Pelletier <[EMAIL PROTECTED]> writes
>
>
>On Sat, 27 Jan 2001, Robin Becker wrote:
>

>> seems to be taking an awful lot of my machine's resources
>
>The saftey restraints in through the web code try to catch only the most
>naive programmer errors (like obvious infinite loops ie "while 1:"), *not*
>DOS attacks.  If you are worried about that, do not give untrusted users
>the ability to write scripts or methods.  DTML and Perl are just as
>susceptible to this problem.  For example, all executable code is limited
>to a finite number of iterations, but this is trivial to defeat:
>
>
>  
>
>  ...
>
>you get the idea.  Only allow trusted users to create executable content.
>If you feel the restraints placed on you by through the web scripts to be
>too much, use an external method.
>
>-Michel
I feel that allowing any scripting to be public will inevitably invite
such attacks. So what you are implying is that even trusted users can
make mistakes as allowing non trusted users to do scripting shouldn't be
done. When the trusted user has got his script working properly can he
then remove the restraints? What happens when I really want to make very
large xranges etc or use those rather useful things which are presently
forbidden.

Yes, I can use External Methods if I have access to the machine, but
those 'trusted' scripts could be just as easily handled by a 'Trusted
Python Scripts' Zope object which didn't have all the rather (as you say
yourself) pointless safety checks. Then I could handle the safety issue
in Zope and not in the base OS. There would be many advantages in having
allowing 'unsafe' scripting inside the Zope domain. 
-- 
Robin Becker

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




[Zope] Re: Zope 2.3 uses Python 1.5.2

2001-01-29 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Chris Withers
<[EMAIL PROTECTED]> writes
>Robin Becker wrote:
>> 
>> Does this use Python 2.0 or 1.5.2? 
>
>1.5.2
>
>cheers,
>
>Chris
>
yes I found that out now and still have problems with popen3.
-- 
Robin Becker

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




[Zope] Python script safety

2001-01-27 Thread Robin Becker

There seems to be some attempts to avoid DOS attacks by eliminating
excessive resource usage. Might I point out that the first script I
tried out

m=range(99)
m=[m,m[:],m[:],m[:],m[:],m[:],m[:]]
m=[m,m[:],m[:],m[:],m[:],m[:],m[:]]
m=[m,m[:],m[:],m[:],m[:],m[:],m[:]]
m=[m,m[:],m[:],m[:],m[:],m[:],m[:]]
m=[m,m[:],m[:],m[:],m[:],m[:],m[:]]
m=[m,m[:],m[:],m[:],m[:],m[:],m[:]]
return m

seems to be taking an awful lot of my machine's resources
-- 
Robin Becker

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




Re: [Zope] ANNOUNCE: Zope 2.3.0 final released

2001-01-26 Thread Robin Becker

Very nice. Thanks. 

Does this use Python 2.0 or 1.5.2? Bits of win32pipe extension under
2.2.2 don't work too well so this isn't a trivial question. 

Can we convert existing databases to use the newer ZClass bases?
-- 
Robin Becker

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




Re: [Zope] case insensitive search?

2001-01-04 Thread Robin Becker

In article <00c601c0766e$c8280540$ae03a8c0@fork>, Andy McKay
<[EMAIL PROTECTED]> writes
>No im being stupid and did a replace of sort for search in my caffeine
>deprived brain.
>--
>  Andy McKay, Developer.
>  ActiveState.
>
>
...
nevEr miNd we're all a BIt dUMb nOW and THEn :)
-- 
Robin Becker

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




Re: [Zope] WIN2k batch problem

2001-01-04 Thread Robin Becker

In article <002b01c0765d$cc54cec0$[EMAIL PROTECTED]>, Phil Harris
<[EMAIL PROTECTED]> writes
>The only thing I could think of is that the output is getting piped to more
>or similar!?
>
>Phil
>
...
seems like it's only with .bat, I turned it into a .cmd and it's ok now.
-- 
Robin Becker

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




[Zope] WIN2k batch problem

2001-01-04 Thread Robin Becker

I'm trying to run Zope 2.2.2 under win2000 in a batch file. I'm just
watching error messages and prints. I find that when zope has written a
page to the cmd.exe window it locks further prints from python until I
hit a key in the window and then it releases another page full. Is there
a Win NT/2K guru who knows about such things and how to prevent this? 
-- 
Robin Becker

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




Re: [Zope] case insensitive search?

2001-01-03 Thread Robin Becker

In article <Pine.LNX.4.21.0101032012320.775-101000@localhost>, Aleksander Salwa
<[EMAIL PROTECTED]> writes
>On Wed, 3 Jan 2001, Robin Becker wrote:
>
>> Is there an easy way to make the Find tab case insensitive. It seems
>> like a very common need, but I see that FindSupport.py is calling
>> string.find which makes it seem as though this is harder than it should
>> be.
>
>Now, I did it better way. No regular expressions. Just case-insensitive
>search. "Case insensitive" checkbox on "Find" form.
>If you need it - just take a look at an attachment.
>Maybe I will send it to the Collector...
>
>
>[EMAIL PROTECTED], [EMAIL PROTECTED]
>
>/--\
>| `long long long' is too long for GCC |
>\--/
>
>[ A MIME APPLICATION / x-gtar part was included here. ]
>
that looks like a nice way to do it, but I reckon we could make the lambda stuff a bit 
cleverer
ie modify the default find

eg
  if search_caseins:
FINDER = lambda ob,p=lower(obj_searchterm): 
find(lower(ob.PrincipiaSearchSource()),p)
  else:
FINDER = lambda ob,p=obj_searchterm: find(ob.PrincipiaSearchSource(), p)

and then we use

FINDER(ob)


-- 
Robin Becker

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




[Zope] case insensitive search?

2001-01-02 Thread Robin Becker

Is there an easy way to make the Find tab case insensitive. It seems
like a very common need, but I see that FindSupport.py is calling
string.find which makes it seem as though this is harder than it should
be.
-- 
Robin Becker

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




Re: [Zope] Bizarre Netscape Problem

2000-12-18 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Oleg
Broytmann <[EMAIL PROTECTED]> writes
>On Mon, 18 Dec 2000, Robin Becker wrote:
>> attempt to view the permission with Netscape it seems as though Netscape
>> starts to use larger and larger amounts of memory. I have no explanation
>
>   Netscape definetely has a lot of problems, memory leaks, etc. Especially
>in big forms (many inputs, large text in textarea).
>
>Oleg.
...
yes, but it seems it's only when it's on the same box that it has this
trouble. I'm worrying that it might be some netscape virus, or some
other strange interaction that causes it to blow up. 
-- 
Robin Becker

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




[Zope] Bizarre Netscape Problem

2000-12-18 Thread Robin Becker

On my Win98 SE Zope 2.2.2 I have some zope permissions which I can view
fine in IE 5 or from a networked box with Netscape 4.7. However, when I
attempt to view the permission with Netscape it seems as though Netscape
starts to use larger and larger amounts of memory. I have no explanation
and checking the xml dump of the permission it seems to have a similar
structure.

In desperation I changed the netscape to 4.76, but the problem persists.

I am stumped! Any one got any ideas?
-- 
Robin Becker

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




Re: [Zope] FTP for ZClass hierarchies

2000-12-07 Thread Robin Becker

In article <[EMAIL PROTECTED]>, M. Adam Kendall
<[EMAIL PROTECTED]> writes
>In the past few days I have been working on a patch that will
>let you edit ZClasses via FTP without the need for typing in
>actual pathnames to get to the methods (mainly so I can edit
>ZClasses with HTML-Kit).  Strangely enough, even with the 
>modifications, I see this same thing.
>
>I've included this patch in case anyone wants to play around
>with it.  It's not the greatest, and definitely needs to be
>modified (some of the security mechanisms are bound to be 
>broken).  But it is a start anyway. ;)  
>
>> Interestingly, but perhaps merely coincidental, I notice that the URLs
>> of contained ZClasses as generated by the Zope management interface
>> have a "%20" immediately following the name of each contained ZClass
>> (but not the top-level ZClasss) - e.g, 
>[ A MIME application / octet-stream part was included here. ]
>
Does this let you write the methods back?
-- 
Robin Becker

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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Robin Becker

I'm a bit puzzled as to how you get things like index_html to appear. My
homesite seems to need an extension list.
-- 
Robin Becker

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




Re: [Zope] security

2000-11-29 Thread Robin Becker

In article <[EMAIL PROTECTED]>, seb bacon
<[EMAIL PROTECTED]> writes
>* Dieter Maurer <[EMAIL PROTECTED]> [001128 00:12]:
>> Bowyer, Alex writes:
>>  > Can some one explain how the Define Permissions screen works. I really 
>don't
>>  > understand the concept behind it, what does it mean for a permission 
>setting
>>  > to own a permission?
>>  > 
>>  > All I need to do is to make certain ZClass methods have a certain level of
>>  > security and the other methods of the class have no security.
>
>> It is quite good explain in the upcoming Zope book.
>
>In fact, I think Alex was referring to ZClass security, which isn't
>covered in the book, and is something I've never go to the bottom of either.
>on the 'define permissions' tab, it says:
>
>   The table below has two columns. The first column lists the 
>   permissions for this object. The second column specifies the
>   permissions that should have this permission in this product 
>   or ZClass. 
>
>I'm probably being intellectually lazy or something, but that doesn't
>make any sense to me at all.
...
I also find this a bit unobvious. I guess it must be a mapping from
permissions --> permissions, but I can't see what it's supposed to mean
or accomplish.

Proxies I can almost cope with, ie this is a trusted method make it
behave as though it were ZopeGod I can understand.
-- 
Robin Becker

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <00a501c05999$460c1840$0202a8c0@typhoon>, Phil Harris
<[EMAIL PROTECTED]> writes
>Robin,
>
>My educated guess is that what you want can't be achieved other than with
>css.
>
>The  tag has no properties for changing colors of one particular link.
>
>The  tag is the only place for this and as you know this changes them
>globally.
>
>This taken from the HTML reference Library:
>
>NAME="URL_fragment"
>TITLE="Title_of_destination"
>REL="Forward_relationship"
>REV="Reverse_relationship"
>URN="Uniform_Resource_Name"
>METHODS="Function_information"
>TARGET="Name_of_target_window_or_frameset"
>ACCESSKEY="Shortcut_setting"
>LANG="Document language"
>LANGUAGE="Script_language"
>INDEXSTRING="NetHelp_index_keyword"
>TOCSTRING="NetHelp_contents_entry"
>CLASS="className"
>ID="unique_id"
>STYLE="style_setting"
>DATAFLD="Column name"
>DATASRC="Data Source"
>>


this isn't complete as it's easy to show that

text

does work as do inlines for font-weight etc. The problem is that the CSS
attributes are :link,  etc ie pseudo classes and there doesn't seem to
be any way to get at class values in inline styles.

I'm using named CSS classes, but the complexities of CSS are a bit of a
pain.
-- 
Robin Becker

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <009c01c05961$a584d6a0$ae03a8c0@fork>, Andy McKay
<[EMAIL PROTECTED]> writes
>I think this is a css question and not related to DTML. Go to
>http://freezope.nipltd.net/dna and you will see a simple style sheet that
>shows use of active and visited links.
>--
...
yes I know how to set up style sheets; what I want is to be able to use
inline definitions for the :link, :active, :visited (:hover) colours. I
just don't know the correct incantation.
-- 
Robin Becker

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Simon Michael <[EMAIL PROTECTED]>
writes
>Robin Becker <[EMAIL PROTECTED]> writes:
>> I am trying to change the colour of links dynamically using dtml.
>> However, I cannot find the right incantation to change my links using an
>> inline style except for
>> 
>> A
>
>Do you mean something like
>
>A
>
>I guess this is dynamic at page load time. Perhaps you want the colors
>to change without refreshing the page ?
>
>-Simon
...
I know about the style="color: red" type of inline, I was looking for
the :link, :active, :visited etc attributes for inline style. I can't
seem to get these to work. The color attribute seems to set all of the
states.
-- 
Robin Becker

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Dany Rioux
<[EMAIL PROTECTED]> writes
>Robin,
>
>IIRC it can be done but I never used it myself because I think it's
>annoying and it is confusing for the visitors. *G* But you should
>definitively check www.echoecho.com. If it is possible it *will* be
>posted there.
>
...
thanks I'll have a look there.
-- 
Robin Becker

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Chris Withers
<[EMAIL PROTECTED]> writes
>Robin Becker wrote:
>> 
>> I can do this using a class
>
>So maybe do it using a class then? ;-)
>
>Chris
>
yes I am, but surely there has to be a way to do this stuff in line.
That way I don't have to predefine all the link behaviours and include
in the standard header. I know that the pseudo class things are called 
:link :active etc.
-- 
Robin Becker

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




[Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

I am trying to change the colour of links dynamically using dtml.
However, I cannot find the right incantation to change my links using an
inline style except for

A

I really would like to be able to set the link, active and visited
colours.

I can do this using a class

eg



<!--
A:link, A:visited, A:active {font-weight: bold}
A.badLink:link, A.bad:visited, A.bad:active {color: red; font-weight:
bold}
-->



.

 works
-- 
Robin Becker

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




Re: [Zope] Search and replace

2000-11-20 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Daniel Rusch
<[EMAIL PROTECTED]> writes
>I have been following this thread with mild amusement. Those of you who
>don't think that there is any need for a search and replace are being,
>at the least, disingenuous. Have you never needed to replace a dtml var
>that is on a hundred or more pages with another one, but replace it only
>on some of the pages???
>
>The lack of a search and replace, a find that actually "finds" a string
>on a page (instead of just the page) and other standard editor features
>are the reasons why Zope is being phased out of this companies (15,000
>person worldwide company, the worlds largest web hosting and fiber optic
>network) web tool set. 
...
I also would like to be able to search dtml-method code that I put under
ZClasses in my products. I can now after a bit of messiness with certain
'reserved' names (eg filtered_meta_types) get out all of the code in my
product using ftp, but getting modified versions back is a problem. A
source export/import to filesystem would be useful and allow all of the
traditional tools to be used at least.
-- 
Robin Becker

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




[Zope] cross-referencing product

2000-11-13 Thread Robin Becker

I need to cross-reference a bunch of links in my pages so that I can
tell which of my documents is using the one I'm editing. This must be a
common requirement so has anyone else already done this?
-- 
Robin Becker

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




Re: [Zope] Dump .zexp export to readable source?

2000-11-08 Thread Robin Becker

In article <7BD10B680501D411B9DF009027E06F32197AD5@exchange>, Max Møller
Rasmussen <[EMAIL PROTECTED]> writes
>From: Alex Khan [mailto:[EMAIL PROTECTED]]
>
>>I can probably learn more from reading other people's code than by reading
>>the fragmented documentation.
>>I can do this easily with products but not zexp's. Thanks in advance...
> 
>zClasses are not written in Python so there is no code to see. Except fot
>the dtml code and you can see that when you have imported a zClass product.
>
>Regards Max M
>
...
I disagree strongly. Many of the useful coding tools need line oriented
Ascii text; where is diff or grep for my ZClass code. The XML export
form would do except that the differences caused by ordering/numbering
mean that diff reports many irrelevant differences. Zope loses by not
having a decent external storage mechanism for its programming.
-- 
Robin Becker

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




[Zope] recursive constructions

2000-11-06 Thread Robin Becker

I would like to duplicate a folderish zclass path and copy some properties across from 
one
tree /R/A/B/C to another /L/A/B/C.

The request to create an object is

http://localhost/R/manage_addProduct/myProd/myProd_factory/myProd_add?id=A,prop=1

I would like to then create  /L/A/B/C etc using some kind of recursive scheme, but I 
don't
know how to call a method to do this recursively and maintain the original permissions.
Somehow I seem to lose something along the way.

the actual sequence of calls would be
http://localhost/L/manage_addProduct/myProd/myProd_factory/myProd_add?id=A,prop=1
http://localhost/L/A/manage_addProduct/myProd/myProd_factory/myProd_add?id=B,prop=1
http://localhost/L/A/B/manage_addProduct/myProd/myProd_factory/myProd_add?id=C,prop=1
-- 
Robin Becker

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




Re: [Zope] Zope Book Beta

2000-11-06 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Michel Pelletier
<[EMAIL PROTECTED]> writes
>Robin Becker wrote:
>> 
...
>I belive all reference to xslt methods has been removed.  Python methods
>will be part of the 2.3 release, and Perl methods are mentioned in the
>book as being a component add on that must be installed.
>

well I think I read about them in the recently released beta, not how
they work, but I didn't pluck the name out of thin air.

>> So is there an alpha of this future zope that we could
>> use to check the book?
>
>Check out Zope and Python Methods from CVS.  Perl Methods can be
>downloaded from the Perl wiki on (I believe) dev.zope.org.
>
>-Michel
>

I'm using the CVS checkout of Zope2, where are python methods in the CVS
tree?
-- 
Robin Becker

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




Re: [Zope] Zope Book Beta

2000-11-05 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Jan H. Haul <[EMAIL PROTECTED]> writes
>Fred Yankowski wrote:
>> 
>> I agree completely that the Zope Book beta will get more reviewers,
>> and better feedback to the authors, if it is available as PDF.  
>
>A valid point.
>I do not care about the format that much. But what I care about
>is a clear method of referencing the text, to the line or
>paragraph level, so that we can get comments and corrections to
>the authors/copyeditors efficiently.
>
>A PDF *with page and line numbers* would fit the bill nicely. As
>would a HTML file with paragraph numbers (as HTML comments,
>maybe?).
>
>The point is that we should be able to give meaningful feedback,
>like "page 147, line 15: there should be their" (a totally
>made-up example, do not go hunting for that one).
>It just does not do to quote full sentences and have the
>copyeditor search for all that stuff. Too much wasted time on
>both ends.
>
>Cheers,
>Jan


I agree about the numbering, but even more I would like to know which
version of Zope the book is supposed to be about. It mentions stuff such
as XSLT methods, perl methods and python methods none of which are in an
official zope. So is there an alpha of this future zope that we could
use to check the book?
-- 
Robin Becker

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




Re: [Zope] preventing acquisition

2000-11-02 Thread Robin Becker

In article <[EMAIL PROTECTED]
iams.com>, Farrell, Troy <[EMAIL PROTECTED]> writes
>Sorry.  -2 points for lack of clarity (my fault)
>
>I thought you were talking about a document.  If you want to do something
>like that you will need to use  inside your documents.  The only
>way I know to prevent a user from doing this by typing a URL is to set some
>security permissions.
>
>You might look at
>http://www.zope.org/Members/rossl/SpecificContext
>It is not specific to your problem, but it might help.
>
>Troy
>
...
well I eventually succeeded for dtml-methods with this kind of thing


  .

-- 
Robin Becker

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




[Zope] unacquired lock?

2000-11-01 Thread Robin Becker

My CVS version Zope is hanging strangely and when I keyboard ctrl-c it
I see the following traceback

Traceback (innermost last):
  File "C:\Python\devel\Zope\z2.py", line 757, in ?
asyncore.loop()
  File "C:\Python\devel\Zope\ZServer\medusa\asyncore.py", line 146, in
loop
poll_fun (timeout, map)
Error in sys.exitfunc:
Traceback (innermost last):
  File "C:\Python\Lib\threading.py", line 475, in __exitfunc
self._Thread__stop()
  File "C:\Python\Lib\threading.py", line 397, in __stop
self.__block.notifyAll()
  File "C:\Python\Lib\threading.py", line 233, in notifyAll
self.notify(len(self.__waiters))
  File "C:\Python\Lib\threading.py", line 216, in notify
assert self._is_owned(), "notify() of un-acquire()d lock"
KeyboardInterrupt
-- 
Robin Becker

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




Re: [Zope] preventing acquisition

2000-10-31 Thread Robin Becker

In message <[EMAIL PROTECTED]
iams.com>, Farrell, Troy <[EMAIL PROTECTED]> writes
>Sorry for the blank.  That was my mistake.  Try the  tag and the
>"only" keyword.
...
It's quite difficult to get netscape/ie to do a ! The
problem I'm seeing is that
in my browser I can use
http://localhost/A/B/C 
correctly, but also incorrectly I can view 
    http://localhost/A/B/C/A/C
-- 
Robin Becker

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




Re: [Zope] Zope Book Beta

2000-10-31 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Michel Pelletier
<[EMAIL PROTECTED]> writes
>
>Amos and I are gibbering like madmen with excitement to announce the
>Zope Book Beta.  This is the complete, technical draft of the book with
>all screenshots (but minus illustrations, those are on there way!). 
>Some other things like a colophon and information about the authors is
>missing. The beta includes all completed chapters, the API reference,
>and the DTML reference.  We've received over a hundred comments,
>corrections, and ideas from you the community and it has made a much
>better book.  This is the one to print out and give to your friends as
>christmas gifts, folks, so get crackin and start reading at
>http://www.zope.org/Members/michel/ZB/.
>
>Enjoy,
>
>-Michel
>
...
wonderful, but the stuff on Python methods seems to refer to features
which are certainly not in 2.2.2 and apparently not in CVS. Indeed CVS
Zope2 doesn't seem to contain any Python method product! Indeed we will
apparently soon be able to create XSLT methods!

Which potential Zope does the book address? 
-- 
Robin Becker

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




[Zope] preventing acquisition

2000-10-31 Thread Robin Becker

I have some folderish Zclasses which have index_html methods to
implement a UI. I would like to inhibit acquisition of these.

So if I have a path

/A/B/C

I would like to inhibit the behaviour that allows
me to view

/A/B/C/A and /A/B/C/A/B/C etc.

to inhibit the first I can put something like


 
  You're not supposed to be looking at 
   
 


in my index_html, but this doesn't work for the second case. Is there a
generic way to do this?
-- 
Robin Becker

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




[Zope] two things at once?

2000-10-28 Thread Robin Becker

I want my form button X to cause some data to be uploaded to the user.
So I make the action call a method that sets up the right response
content type etc and the upload goes well.

1) Can I verify that the action happened?
2) how can I force the page containing the original form to be refreshed
so that I can change button etc.
-- 
Robin Becker

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




[Zope] overriding manage methods

2000-10-23 Thread Robin Becker

In my Z-Class I would like to hook various standard methods in a dtmlish
way.

The frame work would call my dtml method say manage_delObjects and
within that method I would like to call the original manage_delObjects.

I guess this must be a very standard requirement as I see that there are
methods called afterAdd and beforeDelete etc in the object manager. I
just don't know the proper namespace magic to override and eventually
call these.
-- 
Robin Becker

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




Re: [Zope] Black Magic

2000-10-11 Thread Robin Becker

In article <00e801c032ea$50b15970$[EMAIL PROTECTED]>, Evan Simpson
<[EMAIL PROTECTED]> writes
>From: Fred Yankowski <[EMAIL PROTECTED]>
>> The information you just provided about the DTML Method "call
>> signature" and the like is very useful.  Is this kind of reference
>> material written down somewhere in a guide/how-to/wiki/...?
>
>The only thing I could find offhand is
>http://www.zope.org//Wikis/DevSite/Projects/PythonMethods/NamespaceObjectInterfa
>ce, which I wrote.
>I don't know if ZDP or someone else has documented it.
>
>Cheers,
>
>Evan @ digicool & 4-am
OK so I have a similar but still to me confusing problem

I have a Product P containing two folderish ZClasses A and B. A and B
both have class specific methods A_init and B_init to initialise
specific bits of each. The product P has some methods eg M defined which
are useful to both A and B.

1) How do I make the add methods behave identically whether I invoke
as /dir/manage_addProduct/P/A_add or when I invoke from the manage add
interface. I want to know the meta_type of the actual location where the
product will appear not the factory's meta_type.

2) When I attempt to call B_add from inside A's private method A_init
I seem to see a completely different context from when I call B_add
directly on an instance of A.

3) I suppose this is related to the fact that inside A_init (the private
method) I don't seem to see the same context as in A_add, ie the method
M is visible in A_add, but not in A_init.

How do ZClass contexts and the product context relate?
-- 
Robin Becker

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




Re: [Zope] Container Class questions

2000-10-07 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Dieter Maurer
<[EMAIL PROTECTED]> writes
>[EMAIL PROTECTED] writes:
> >   product with associated image 
> > Should I create a product that can contain said images?  If so, how do 
> > I do this?  Should I simply force a naming conventions for the images 
> > and tie them together with the sample catalog items that way?
>I would use a ZClass to model the product.
>I would inherid from "Folder". This makes the ZClass folder-like.
>Especially, I can place images and other related objects inside
>them (if they do not easily fit in properties).
>
>
>Dieter

I'm doing something similar to this inheriting from folder.

I would like to add properties in a property sheet, but cannot find a
neat way to see the properties on the base object and on the
propertySheet.

So I would like my properties to show
id
title

and the properties on my basic properties sheet.

I can easily add properties directly to the object during the Thing_add
and Thing_addForm and these appear on the properties tab for added
objects.

How do I get a tab for the property sheets?
-- 
Robin Becker

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




Re: [Zope] Win2000

2000-06-30 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Jake LeBeau
<[EMAIL PROTECTED]> writes
>I'm running it here on W2K Server - I don't remember having much of a problem 
>setting it up.
>I do run it as a service, and it seems to work fine.
>
>Jake LeBeau
>
>>>> Robin Becker <[EMAIL PROTECTED]> 06/28/00 04:40PM >>>
>The boss says he couldn't install Zope on our Win2000 box. He tried 3
>times. Anybody else have a problem with M$'s latest?
yes he'd been playing with 1.5.2+ and it didn't co-operate well with
pythonservice.

-- 
Robin Becker

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




Re: [Zope] Win2000

2000-06-29 Thread Robin Becker

In article <[EMAIL PROTECTED]>,
Jeff K. Hoffman <[EMAIL PROTECTED]> writes
>On Wed, 28 Jun 2000, Robin Becker wrote:
>
>> The boss says he couldn't install Zope on our Win2000 box. He tried 3
>> times. Anybody else have a problem with M$'s latest?
>
>Nope. 2.1.6, and the 2.2 betas, including the newest 2.2b3, work fine on
>my Win2000 Professional box at home. It's running as a service on port 80.
>Haven't had a single problem, yet.
>
>> Robin Becker
>
>--Jeff
>
>---
>Jeff K. Hoffman   704.849.0731 x108
>Chief Technology Officer  mailto:[EMAIL PROTECTED]
>Going Virtual, L.L.C. http://www.goingv.com/
>
I've got it going using direct invocation of z2.py, but I'm having
problems running it as a service. I think maybe the python version is
slightly more advanced 1.5.2+ than the one which PythonService is using.
Perhaps there's a dll clash.
-- 
Robin Becker

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




[Zope] Win2000

2000-06-28 Thread Robin Becker

The boss says he couldn't install Zope on our Win2000 box. He tried 3
times. Anybody else have a problem with M$'s latest?
-- 
Robin Becker

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




Re: [Zope] Zope in the UK

2000-06-22 Thread Robin Becker

In article <006101bfdbf1$da7eaf40$[EMAIL PROTECTED]>, peter be
<[EMAIL PROTECTED]> writes
>Hello Britts!
> 
>I live and work in London as a webdeveloper, but I haven't had a 
>chance to stuck me teeth to some Z work here yet.
>Are there no Zope developers in the UK, and especially in London 
>where I live?
> 
>If you know about how Zoped UK (London) is on Zope, please let me 
>know.
> 
>Best Regards, Peter 
> 
I live in London & I have done some work in Zope. I wasn't really
'employed' doing it though (I gave my services for free to NIESR).
I learned a lot about Zope in the process.
-- 
Robin Becker

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




Re: [Zope] Using ReportLab with Zope

2000-05-20 Thread Robin Becker

In article <01bfc278$7c017e80$[EMAIL PROTECTED]>,
Richard Folwell <[EMAIL PROTECTED]> writes

On the reportlab site we have several pages which can be viewed as PDF.
The PDF & HTML versions are generated in parallel from a common source
by a python script.

I guess you can get a pythonmethod to run over your existing documents
and produce PDF versions provided you can parse the DTML or some major
subset of it. You would also need to add the generated PDF document into
the ZODB database and modify the DTML to contain a reference to the
generated PDF.

ReportLab doesn't use Zope , but I have some experience with it.

>To sound out what, if anything, other people are doing in this area:
>
>I am interested in using ReportLab with Zope, to provide an improved printed 
>version of
>web-published documents.  What I want to do is fairly straightforward, to create 
>a PDF file with:
>
> - a title/cover page with control information
> - a table of contents
> - the body of the document, with a technical document style header and footer 
>(title, docref,
>revision, date, page x of numpages, etc)
>
>Indexing would be nice, but that involves much more complexity and is outside 
>the scope of what I
>need right now.
>
>Currently I have documents published from Zope, sourced either as HTML (DTML 
>documents) or XML, with
>the intention to also produce documents whose content will come mostly from a 
>database (clearly
>straightforward in Zope).
>
>I think what I need to do is find some way of re-directing the output from Zope 
>(what would normally
>go to the browser) to an external program, which uses ReportLab to generate the 
>PDF file from the
>HTML stream, and returns the location of the file to Zope to pass to the browser 
>as a re-direct (so
>the browser gives the user the option to view or download the PDF file).
>
>Is this correct?  Is anyone already working in this direction?  Any hints or 
>tips?
>
>Richard
>
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>

-- 
Robin Becker

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