Re: [Zope] Defining a Variable

2008-01-03 Thread Dieter Maurer
Victor Subervi wrote at 2008-1-2 14:44 -0400:
> ...
>
>
>
> 
>  

As Andreas already has pointed out, you probably need "getQuote()"
rather than "getQuote" (as the name suggests, it is a method not a
value).

>   

"?var" in a path expression means: replace "?var" by the value of "var".

Therefore, if "num" contains the right value, the above should work.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Ask for collaboration

2008-01-03 Thread Garito
Sorry, Tres, for the private (the stupid gmail reply)
I resend the message to the list (sorry again!)

2008/1/3, Garito <[EMAIL PROTECTED]>:
>
>
>
> 2008/1/3, Tres Seaver <[EMAIL PROTECTED]>:
> >
> >
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Garito wrote:
> > > Hi!
> > > I plan to create a product I call Zope Smart Manager that consist in a
> > view
> > > similar to freemind for Zope
> > > You could see a picture of my prototype here:
> > > http://blogs.sistes.net/Garito/images/ArbolYanged.png
> >
> > While I can see visual differences, how does this tree behave
> > differently than the one which the ZMI shows?
>
>
 Well, it shows (or will show) not only collection objects, it shows simple
item objects and properties (the data we change normally) and it will edit
directly its values, rename objects and so on

> The idea is create a series of monkey patches to all the products we are
> > > interested to see as tree nodes and a series of javascript (prototype
> > +
> > > scriptaculous) for the "client side"
> > >
> > > I plan this ZSM view will be my main work view with edition and
> > creation
> > >
> > > For that I need some help about how to create the simplest monkey
> > patch and
> > > the javascript objects
> >
> > I don't know why you think you need to moneky-patch anything:  you
> > should be able to create such a view using the standard API supplied by
> > pretty much every existing Zope object.  The ZMI tree code is here:
> >
> >   $ZOPE_HOME/lib/python/TreeDisplay/TreeTag.py
>
>
I would like to create a very generic javascript objects useful even with
other servers not only Zope


> I have no experience with monkey patching zope nor javascript object but
> > > I'll learn all the necessary skills if no one wants to help
> > >
> > > Can you help me at any point?
> >
> >
> >
> > Tres.
> > - --
> > ===
> > Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
> > Palladion Software   "Excellence by Design" http://palladion.com
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iD8DBQFHfNNw+gerLs4ltQ4RAqsAAJ0dpeS4NH7xRt6sH4fMHHcBnxcawQCfR4Mr
> > jEC5oHCat7/3EBgnalVVdFc=
> > =OaJS
> > -END PGP SIGNATURE-
> >
> >
>
>
> --
> Mis Cosas
> http://blogs.sistes.net/Garito
>



-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Best Practice for including Javascript in Zope Applications

2008-01-03 Thread Tim Nash
Matt,
  Please keep us updated on your strategy for serving extjs. I am also
considering making my application a product for distribution but I was
thinking along the lines of an install script for macs that would set
up the apache webserver. I also like your approach.

BTW, I haven't done it, but couldn't you just store an object in zodb
that has a pointer to  your video on the filesystem and access the
video via a zope product? But maybe that is what LocalFS does, I
haven't checked.

see ya in the extjs forum. Just do a search for "zope"
Tim


On 1/2/08, Matt Hollingsworth <[EMAIL PROTECTED]> wrote:
> Yep!  I have had very good luck with it so far; my little hack that I posted
> works like a (klutzy) charm and ExtJS is great with zope.  The ExtJS folks
> are very well organized, and the library is quite powerful.  It's working
> great.  However, my application doesn't have quite the segregation that
> yours does; ExtJS and zope (DTML in particular) are much more intermingled,
> and can't be easily separated.  This application is actually a frontend for
> a Java library that controls instruments at CERN (a research lab I work
> for), and I love the solution that it has presented.  It works like a charm.
> (in case you're curious, it makes use of a wonderful python library I ran
> across called JPype (http://jpype.sourceforge.net) to execute the Java code)
>
> I am going to be accessing Zope through apache with the VHM, but there are
> multiple reasons why I don't want to serve the js through apache.  This same
> principle is the reason that I don't want to upload things through FTP or
> WebDAV.  I'm making a product, and I would like to keep it atomic, i.e., I
> want the only install procedure to be "copy product folder to
> instance/Products".  Uploading via WebDAV, or hosting the javascript using
> separate software, defeats that purpose.
>
> The solution that Tom proposed (LocalFS) seems to be what I want, but the
> problem is that I think it is way too out of date; it crashed my zope server
> (2.10.5) when I installed it.  It says nothing can be found after I add an
> instance through the ZMI, and this is after I fixed a deprecated import (
> from OFS.content_types import find_binary -> from zope.app.content_types
> import find binary).  I had to completely remove the product to get my Zope
> instance to work again.
>
> I'm getting the feeling that there isn't really a (recent) canned solution
> for accessing file system content, which is... strange at best, considering
> all the power that zope has at its disposal.  You would think that accessing
> the file system would be present just because it is so simple to do.  I'm
> not complaining, as I'm *very* happy with zope, I'm just surprised :).  I
> realize that zope's principle is to store everything in the database, but
> this is unacceptable for content such as video files, right?  I mean the
> ZODB file would be absolutely humongous (and slow?  I don't know for sure
> how it's implemented).
>
> If there isn't already a working solution, I would be happy to come up with
> one; I could just hack out the parts of LocalFS that work, add a few
> features, and repackage it into a new product.  It's not difficult to do (my
> little trivial solution already would work fine if I did a non-dumb
> implementation of the file-serving logic), and as much as I would like to
> use it for other projects, it would be worth my time.  For example, I want
> to make a little video/music server as a personal project unrelated to my
> current one, and I really don't want to store things in the ZODB if I can
> help it... 1 video = +1 gig ZODB? :S
>
> I don't know much about zope obviously, so if I get some vehement objections
> to this route, I'll pick another :)
>
> Thanks!
>
> -Matt
>
> -Original Message-
> From: Tim Nash [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 02, 2008 2:03 PM
> To: Tom Von Lahndorff
> Cc: Matt Hollingsworth; zope@zope.org
> Subject: Re: [Zope] Best Practice for including Javascript in Zope
> Applications
>
> I am writing an application that uses extjs as the front end and zope
> on the back and they work together really well.
> I am using a webserver to server the extjs library and everything else
> comes out of zope.  So far I have had no trouble with relative links
> or files broken up in different locations. It may be because I have
> fully committed to having an extjs front end. I typically serve a page
> out of zope, it calls the extjs library as well as custom JavaScript
> files. The web2.0 style page then makes multiple xhr calls back to
> zope to load smaller html and json fragments. Works like a charm and
> has the additional benefit of letting me cache the majority of the
> front end in the webserver and in the users browser.
>
> Have fun because you have just come across a wonderful
> combination...extjs and zope!
> Tim
>
>
> On Jan 2, 2008 6:38 AM, Tom Von Lahndorff <[EMAIL PROTECTED]> wrote:
> >
> > On Jan 1, 2008, at 

Re: [Zope] Re: Ask for collaboration

2008-01-03 Thread Andreas Jung



--On 3. Januar 2008 07:22:08 -0500 Tres Seaver <[EMAIL PROTECTED]> 
wrote:



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:

Hi!
I plan to create a product I call Zope Smart Manager that consist in a
view similar to freemind for Zope
You could see a picture of my prototype here:
http://blogs.sistes.net/Garito/images/ArbolYanged.png


While I can see visual differences, how does this tree behave
differently than the one which the ZMI shows?


This is just a tree rotated counter-clockwise.




The idea is create a series of monkey patches to all the products we are
interested to see as tree nodes and a series of javascript (prototype +
scriptaculous) for the "client side"

I plan this ZSM view will be my main work view with edition and creation

For that I need some help about how to create the simplest monkey patch
and the javascript objects


I don't know why you think you need to moneky-patch anything:  you
should be able to create such a view using the standard API supplied by
pretty much every existing Zope object.  The ZMI tree code is here:

  $ZOPE_HOME/lib/python/TreeDisplay/TreeTag.py


The only issue I see here is the problem to render the graph from left to 
right instead from top to bottom. There are several graph-drawing tools
available (best to start with Graphviz) that generate images or 
HTML/Imagemaps.


-aj


pgpOAkMuv06os.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Ask for collaboration

2008-01-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:
> Hi!
> I plan to create a product I call Zope Smart Manager that consist in a view
> similar to freemind for Zope
> You could see a picture of my prototype here:
> http://blogs.sistes.net/Garito/images/ArbolYanged.png

While I can see visual differences, how does this tree behave
differently than the one which the ZMI shows?

> The idea is create a series of monkey patches to all the products we are
> interested to see as tree nodes and a series of javascript (prototype +
> scriptaculous) for the "client side"
> 
> I plan this ZSM view will be my main work view with edition and creation
> 
> For that I need some help about how to create the simplest monkey patch and
> the javascript objects

I don't know why you think you need to moneky-patch anything:  you
should be able to create such a view using the standard API supplied by
pretty much every existing Zope object.  The ZMI tree code is here:

  $ZOPE_HOME/lib/python/TreeDisplay/TreeTag.py

> I have no experience with monkey patching zope nor javascript object but
> I'll learn all the necessary skills if no one wants to help
> 
> Can you help me at any point?



Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfNNw+gerLs4ltQ4RAqsAAJ0dpeS4NH7xRt6sH4fMHHcBnxcawQCfR4Mr
jEC5oHCat7/3EBgnalVVdFc=
=OaJS
-END PGP SIGNATURE-

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


Re: [Zope] transactional mail server for zope 2.7

2008-01-03 Thread Jens Vagelpohl


On Jan 3, 2008, at 11:34 , Yuri wrote:


Andreas Jung wrote:


--On 3. Januar 2008 11:25:25 +0100 Yuri <[EMAIL PROTECTED]> wrote:


Is there a transactional mail server for zope 2.7. I mean, if some
transaction fail, it will not send the mail...


MailDropHost is a well-known secret.

-aj


Can I replace the standard mailhost without any problem in zope 2.7?


Yes.


Is this the new standard in 2.11?


No, Zope 2.11 uses a Zope 3-based approach.

jens


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] transactional mail server for zope 2.7

2008-01-03 Thread Yuri

Andreas Jung wrote:



--On 3. Januar 2008 11:25:25 +0100 Yuri <[EMAIL PROTECTED]> wrote:


Hi all!

Is there a transactional mail server for zope 2.7. I mean, if some
transaction fail, it will not send the mail...


MailDropHost is a well-known secret.

-aj


Can I replace the standard mailhost without any problem in zope 2.7? Is 
this the new standard in 2.11?

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] transactional mail server for zope 2.7

2008-01-03 Thread Andreas Jung



--On 3. Januar 2008 11:25:25 +0100 Yuri <[EMAIL PROTECTED]> wrote:


Hi all!

Is there a transactional mail server for zope 2.7. I mean, if some
transaction fail, it will not send the mail...


MailDropHost is a well-known secret.

-aj

pgpoTdhIGHpMk.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] transactional mail server for zope 2.7

2008-01-03 Thread Yuri

Hi all!

Is there a transactional mail server for zope 2.7. I mean, if some 
transaction fail, it will not send the mail...

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Ask for collaboration

2008-01-03 Thread Garito
Hi!
I plan to create a product I call Zope Smart Manager that consist in a view
similar to freemind for Zope
You could see a picture of my prototype here:
http://blogs.sistes.net/Garito/images/ArbolYanged.png

The idea is create a series of monkey patches to all the products we are
interested to see as tree nodes and a series of javascript (prototype +
scriptaculous) for the "client side"

I plan this ZSM view will be my main work view with edition and creation

For that I need some help about how to create the simplest monkey patch and
the javascript objects

I have no experience with monkey patching zope nor javascript object but
I'll learn all the necessary skills if no one wants to help

Can you help me at any point?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )