Re: [Zope] URL_Rewrite

2007-08-16 Thread Garito
Or as I previously say:

python: url_quote(path("here/Our_Store/CheckOutAfterEditStuff"))

Where path is a method that evaluates a string as a tales expresion like
this

2007/8/16, Peter Bengtsson <[EMAIL PROTECTED]>:
>
> In TAL this::
>
>   python:url_quote(here/Our_Store/CheckOutAfterEditStuff)"
>
> means
>
>here  Our_Store  CheckOutAfterEditStuff
>
> What you need is::
>
>   python:url_quote(here.Our_Store.CheckOutAfterEditStuff())"
>
> [EMAIL PROTECTED] wrote:
> > I have this line of code:
> >
> >  > tal:attributes="href
> > string:${here/renumberTheCart/absolute_url}?doc=${x}">test
> >
> > but I get this error:
> >
> > *Error Type: NameError
> > Error Value: name 'CheckOutAfterEditStuff' is not defined*
> >
> > So I tried this:
> >
> >  > tal:attributes="href
> > string:${here/renumberLarimanCart/absolute_url}?doc=${x}">test
> >
> > and I got the same error, although now it can't find "Our_Store". Now,
> > "Our_Store" is the container for this PT and "CheckOutAfterEditStuff" is
> > in the same container. What am I doing wrong?
> > TIA,
> > Tony
> > 
> > AOL now offers free email to everyone. Find out more about what's free
> > from AOL at *AOL.com* .
> >
> >
> > 
> >
> > ___
> > 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 )
>
> --
> Peter Bengtsson,
> work www.fry-it.com
> home www.peterbe.com
> hobby www.issuetrackerproduct.com
> ___
> 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 )
>



-- 
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] URL_Rewrite

2007-08-16 Thread Peter Bengtsson

In TAL this::

 python:url_quote(here/Our_Store/CheckOutAfterEditStuff)"

means

  here  Our_Store  CheckOutAfterEditStuff

What you need is::

 python:url_quote(here.Our_Store.CheckOutAfterEditStuff())"

[EMAIL PROTECTED] wrote:

I have this line of code:

tal:attributes="href 
string:${here/renumberTheCart/absolute_url}?doc=${x}">test


but I get this error:

*Error Type: NameError
Error Value: name 'CheckOutAfterEditStuff' is not defined*

So I tried this:

tal:attributes="href 
string:${here/renumberLarimanCart/absolute_url}?doc=${x}">test


and I got the same error, although now it can't find "Our_Store". Now, 
"Our_Store" is the container for this PT and "CheckOutAfterEditStuff" is 
in the same container. What am I doing wrong?

TIA,
Tony

AOL now offers free email to everyone. Find out more about what's free 
from AOL at *AOL.com* .





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


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
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] URL_Rewrite

2007-08-16 Thread Garito
This is another problem. You need to import url_quote in order to use it

But my help was about the error you send

See u

2007/8/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Your solution didn't work. It throws an error, stating "url_quote" is not
> defined. Actually, the solution I posted below *did* work, but I needed to
> clean up the code being tossed around (I found a mistake).
> Thanks,
> Tony
>
>
> -Original Message-
> From: Garito <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Sent: Thu, 16 Aug 2007 12:49 am
> Subject: Re: [Zope] URL_Rewrite
>
>  python: url_quote(path('here/CheckOutAfterEditStuff'))
>
> Cheers
>
> 2007/8/15, [EMAIL PROTECTED] < [EMAIL PROTECTED]>:
> >
> > I have this line of code:
> >
> >  > tal:attributes="href
> > string:${here/renumberTheCart/absolute_url}?doc=${x}">test
> >
> > but I get this error:
> >
> > *Error Type: NameError
> > Error Value: name 'CheckOutAfterEditStuff' is not defined*
> >
> > So I tried this:
> >
> >  > tal:attributes="href
> > string:${here/renumberLarimanCart/absolute_url}?doc=${x}">test
> >
> > and I got the same error, although now it can't find "Our_Store". Now,
> > "Our_Store" is the container for this PT and "CheckOutAfterEditStuff" is in
> > the same container. What am I doing wrong?
> > TIA,
> > Tony
> > --
> > AOL now offers free email to everyone. Find out more about what's free
> > from AOL at *AOL.com * <http://www.aol.com/?ncid=AOLAOF0002000437>.
> >
> > ___
> > 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 )
> >
> >
>
>
> --
> Mis Cosas
> http://blogs.sistes.net/Garito
>  --
> AOL now offers free email to everyone. Find out more about what's free
> from AOL at *AOL.com* <http://www.aol.com?ncid=AOLAOF0002000437>.
>



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


[Zope] URL_Rewrite

2007-08-15 Thread tonylabarbara
I have this line of code:

test

but I get this error:

Error Type: NameError
Error Value: name 'CheckOutAfterEditStuff' is not defined

So I tried this:

test

and I got the same error, although now it can't find "Our_Store". Now, 
"Our_Store" is the container for this PT and "CheckOutAfterEditStuff" is in the 
same container. What am I doing wrong?
TIA,
Tony

AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
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 )