Re: [Zope-dev] PythonScripts

2001-01-01 Thread Dieter Maurer

Dieter Maurer writes:
  I looked at ZopeCVS's PythonScripts.
  I mostly like it -- with the following exceptions:
  
   * Namespace binding
  
 It does not yet work, apparently:
  
Sorry!

This was my fault:

  I had update my Zope CVS version but not yet recompiled
  the shared objects.


Dieter

___
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] ZPatterns example update....

2001-01-01 Thread Itai Tavor

Steve Spicklemire wrote:

Hi Folks,

The Dumb ZPatterns example is updated. Now there is some more
realistic object referencing going on, borrowing of code snippets
between Specialists and suchlike. There is also more in the way of
reasonable documentation, though everything is in flux, and it still
doesn't resemble a truly completed product. I just feel the need to
get things finished enough that I can stop thinking about them for a
while. ;-) In particular there the ToDos now hold references to Doer
and Deliverable, and no 'lists' are maintained. One thing I need to do
is to have these references automatically 'fixed' when a 'referred to'
entity is removed or modified in such a way that the link should be
broken that's for the next version. If I'm not careful.. it won't
be a 'simple' example anymore. There's got to be a line here somewhere
(in the sand?).

Nice work, Steve.

Removing id lists looks good. I started building objects using 
getXForY(y_id), but the last one I made used an id list following the 
Dumb Example. I've just changed it to use getXForY, and it's much 
cleaner, plus it makes adding X from Y/editInstanceForm easier.

I like the idea of naming all UI methods with '_html' - now, if you 
find yourself referencing a method which doesn't end in '_html' in 
your html code, you know you need to add an interface method. I just 
need to decide if I like it enough to change all my existing code...

Some thoughts about the broken links handling problem: If an object 
depends on the existence of another (for example, if you wanted a 
ToDo to be tightly linked to a Deliverable) then it should be deleted 
when the Deliverable is deleted, right? You'd have WHEN OBJECT 
DELETED CALL ToDos.deleteInstances(myToDoIDs) in the Deliverable 
SkinScript, and you would never have ToDos floating around without a 
Deliverable. As for the Deliverable changing and invalidating the 
link, I think it would be solved if you used immutable ids for all 
objects, and stored the Deliverable title in a separate property. In 
case of weaker links, such as between ToDo and Doer, I guess it 
should be ToDo's responsibility to return None if the Doer referenced 
by doerID doesn't exist - treating it the same way as the case where 
no doer has been assigned. Maybe with this SkinScript: WITH 
Doers.getItem(self.doerID) CALCULATE self.doerID=RESULT.id or '' ? 
But I'm not really sure about this...

I think you've managed very well to stay on the right side of the 
line in the sand... the problem is that complex real world 
applications have a lot of stuff on the other side of the line, and 
the challenge is to pull that stuff over the line. My personal 
problem is figuring out if the stuff I have on the wrong side of the 
line is necessitated by the complexity of the application, or if I'm 
just making things unnecessarily complicated...

Itai
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


___
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 )




[Zope-dev] What's 'section' in blocks[0] in block dtml tag?

2001-01-01 Thread LEE Kwan Soo

Hi. I'm playing/struggling to make a custom block dtml tag.
Let me call it, dtml-quote tag.
dtml-quote tag is similar to dtml-comment tag except it will emit
html_quoted, not rendered version of what lies 
between dtml-quote ... /dtml-quote.
(I feel it will be usefull when I show  write some dtml examples on my
korean zope site).

After seeing around some python sources,
I finally got that tname is the name of the tag, args is args, and section
is something, in the following code.

def __init__(self, blocks):
tname, args, section = blocks[0]

and section seems to have 6 attributes/methods:
'__name__', '_v_blocks', '_v_cooked', '_vars', 'blocks', 'globals', 'raw'

But that mistic raw is null string, '' and blocks is no help for me.

How can I retrieve the raw source string enclosed in a block tag pair?

LEE Kwan Soo.

ps. My English is evem more cryptic this morning. Sorry I've sat up alnight play 
Kingdom Under Fire.

___
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] ZPatterns example update....

2001-01-01 Thread Steve Spicklemire


Hi Itai,

 "Itai" == Itai Tavor [EMAIL PROTECTED] writes:
Itai Steve Spicklemire wrote:

 Hi Folks,
 
 The Dumb ZPatterns example is updated. Now there is some more
 blah blah blah

Itai Nice work, Steve.

Thanks! 

Itai Removing id lists looks good. I started building objects
Itai using getXForY(y_id), but the last one I made used an id
Itai list following the Dumb Example. I've just changed it to use
Itai getXForY, and it's much cleaner, plus it makes adding X from
Itai Y/editInstanceForm easier.

Yup.. this is working nicely for me. 

Itai I like the idea of naming all UI methods with '_html' - now,
Itai if you find yourself referencing a method which doesn't end
Itai in '_html' in your html code, you know you need to add an
Itai interface method. I just need to decide if I like it enough
Itai to change all my existing code...

Right... I was on the lookout for something natural, and sorta
obvious. I liked the fact that there are already examples of 
'standard' interface methods that have '_html', so I wouldn't
have to change *them*... sometimes laziness can be inspiring. ;-)

Itai Some thoughts about the broken links handling problem: If an
Itai object depends on the existence of another (for example, if
Itai you wanted a ToDo to be tightly linked to a Deliverable)
Itai then it should be deleted when the Deliverable is deleted,
Itai right? You'd have WHEN OBJECT DELETED CALL
Itai ToDos.deleteInstances(myToDoIDs) in the Deliverable
Itai SkinScript, and you would never have ToDos floating around
Itai without a Deliverable. As for the Deliverable changing and
Itai invalidating the link, I think it would be solved if you
Itai used immutable ids for all objects, and stored the
Itai Deliverable title in a separate property. In case of weaker
Itai links, such as between ToDo and Doer, I guess it should be
Itai ToDo's responsibility to return None if the Doer referenced
Itai by doerID doesn't exist - treating it the same way as the
Itai case where no doer has been assigned. 

Yes.. I like this.

Itai Maybe with this
Itai SkinScript: WITH Doers.getItem(self.doerID) CALCULATE
Itai self.doerID=RESULT.id or '' ?  But I'm not really sure about
Itai this...

Ahh.. I think my brain just imploded in a recursive death spiral,
but I get intent of the idea. This would work I think:

WITH Doers.getItem(self.doerID) COMPUTE self.myDoer=RESULT or 
Doers.getItem('doNothing')

where there is a default 'doer' named 'doNothing' in one of the Doers
Racks.  This guy would 'fill in' for the ToDo's doer when no 'real'
doer can be found... I like that. ;-)

Itai I think you've managed very well to stay on the right side
Itai of the line in the sand... the problem is that complex real
Itai world applications have a lot of stuff on the other side of
Itai the line, and the challenge is to pull that stuff over the
Itai line. My personal problem is figuring out if the stuff I
Itai have on the wrong side of the line is necessitated by the
Itai complexity of the application, or if I'm just making things
Itai unnecessarily complicated...

Thanks... don't want to mix metaphors, but I'm fearing that the line
in the sand may be on a slippery slope ;-). Seriously though. It would
be really easy to make this 'dumb' example so complex that a beginner
in ZPatterns couldn't make it through without brain damage but never
fear.. I've already squandered all my free time for the next three
months on this... so it will very likely stay stuck where it is for
some time now... I hope that some ZPatterns beginners find it useful
as a starting place.

take care,
-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] Re: Z-Commerce components

2001-01-01 Thread Gerriet Mueller

Happy new Year,
I tried the site too, but there was no problem. Congratulation, looks very
nice.
Gerriet.

On Mon, 1 Jan 2001, Jason Cunliffe wrote:

 Hi Brad
 
 Delighted to hear that Wampum and Zope work well for you.
 I just took a quick look at your site - very nice.
 
 However it seems very slow to load even a simple page and when I tried to
 but something the Checkout pages came up with broken icons :-(
 
 Am I unlucky or do you have a problem?
 
 thanks
 
 - Jason
 ___
 Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']
 
 From: Brad Clements [EMAIL PROTECTED]
   Do you know is anyone _using_ Wampum :
  
   a. For handling real transactions, or is it still in development stages
 ?
 
  We are using it for real transactions at http://www.adirondackcraft.com
  (RH Linux 7)
 
  So far has worked perfectly.
 
  We created our own shopping cart and checkout stuff.
 
 
 
 ___
 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 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] cgi help

2001-01-01 Thread Carol Zick

Hi,

I would like to do free web hosting. I have emailed someone who said that I should 
check out Zope, because it already does some of what I am interested in doing.  I have 
on my computer a couple of CGIs that collectively do the functions of free web 
hosting, but lack any type of security and some of the functions that I need. Plus, I 
would like to take advantage of Python persitent CGI(to speed up the process). If 
anyone can be of any assistance in making this work, please email me as soon as 
possible.

Thanks!
Jeanie Zick


theglobe.com
  Your friendly full-service integrated online community.
  http://www.theglobe.com

___
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] terrible kludge to set password

2001-01-01 Thread Kyler B. Laird


I was unsuccessful at finding any examples of
changing a user's password from DTML, but I
did see a few requests for such functionality.
I bumped around quite awhile today trying to
figure out how to do it.  I didn't come up
with a good way, but I did find something that
works.

So, although it's terribly ugly, I thought I'd
throw my example out.  Perhaps it'll save
someone else some time.
dtml-call "REQUEST.set('name', 'k.laird.1')"
dtml-call "REQUEST.set('password', '5678')"
dtml-call "REQUEST.set('confirm', '5678')"
dtml-call "REQUEST.set('roles', ['CRUP_admin'])"
dtml-call "acl_users.manage_users('Change', REQUEST, RESPONSE)"

--kyler

___
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 eating CPU/RAM - how do I find the culprit?

2001-01-01 Thread Cees de Groot

Jon Prettyman [EMAIL PROTECTED] said:
If you are using ZSQLMethods and your database returns column names in
one case (UPPER) but you reference them with another (lower) it
appears that instances of SQLAlias get leaked.

Thanks for the info (and another reason to keep SQL names in lowercase ;-)).


-- 
Cees de Groot   http://www.cdegroot.com [EMAIL PROTECTED]
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B

___
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] Something missing in Python Methods

2001-01-01 Thread Curtis Maloney


Greetings


Yeh, yeh.. I know.. I should be using Python Scripts, or whatever... but for 
various reasons, I'm still using 2.1.6...

What I want to know is, why can't Python Methods refer to anything not 
explicitly passed to them?  I don't want to have to make everything that 
invokes the method have to know to pass it half a dozen objects.

Isn't the idea of a method to be executed in the namespace of it's parent?  I 
want my method to be able to access objects in it's own folder...


What am I missing?

Curtis

___
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] How to store a dictionary in propert sheet?

2001-01-01 Thread Dirksen

Please give me a hint.

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

___
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 )