Re: [Zope] redirect timeout doesn't work

2009-03-12 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 15:18, Dvir Bar-lev dvi...@puresight.com wrote:
 Hi just wanted to add something that I forgot to meantion.
 The problem I described only happenes on  IE, on firefox it does the redirect 
 even after I refresh the page manually

So yet another IE bug then.


You want a lot of timeouts and redirections and stuff in your
application. Are you sure old-school HTML is the right way to do this?
Sounds like an AJAX app could be more suitable.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] redirect timeout doesn't work

2009-03-12 Thread Dvir Bar-lev
It's ok I solved this by using a javascript at the end to achieve this

-Original Message-
From: Lennart Regebro [mailto:rege...@gmail.com] 
Sent: Thursday, March 12, 2009 10:22 AM
To: Dvir Bar-lev
Cc: zope@zope.org
Subject: Re: [Zope] redirect timeout doesn't work

On Wed, Mar 11, 2009 at 15:18, Dvir Bar-lev dvi...@puresight.com wrote:
 Hi just wanted to add something that I forgot to meantion.
 The problem I described only happenes on  IE, on firefox it does the redirect 
 even after I refresh the page manually

So yet another IE bug then.


You want a lot of timeouts and redirections and stuff in your
application. Are you sure old-school HTML is the right way to do this?
Sounds like an AJAX app could be more suitable.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] redirect timeout doesn't work

2009-03-11 Thread Dvir Bar-lev
Hi

 

I want to redirect a user from my page to another page after a certain
time, I put this code in the dtml  page at the top I want to redirect
from:

 

dtml-call REQUEST.RESPONSE.setHeader('Refresh', '5', 'URL Address')

 

But although it does refresh after the timeout it stays in the same page
instead of going to the address listed in URLAddress.

Anyone knows what I did wrong? Or I even did it the right way?

___
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] redirect timeout doesn't work

2009-03-11 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11.03.2009 13:59 Uhr, Dvir Bar-lev wrote:
 Hi
 
  
 
 I want to redirect a user from my page to another page after a certain
 time, I put this code in the dtml  page at the top I want to redirect from:
 
  
 
 dtml-call REQUEST.RESPONSE.setHeader('Refresh', '5', ‘URL Address’)

Likely improper syntax. The correct syntax for the Refresh header is

Refresh: 5; url=http://foo.com

- -aj
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkm3unIACgkQCJIWIbr9KYxzVgCg0qp4wPDCQygnDCv4aUQlqNKG
QxcAoKgZndhxhKPfyYhTOb82nRWPZR08
=L8/u
-END PGP SIGNATURE-
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd.  Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
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] redirect timeout doesn't work

2009-03-11 Thread Dvir Bar-lev
Yep, you were right, the syntax I used was bad, but now I encountered a 
diffrent problem.
If i set the header as you said and manually refresh the page than it wont 
redirect again.
Anyone encountered this before? Can't find anything on the web about this 
problem

-Original Message-
From: Thierry Florac [mailto:thierry.flo...@onf.fr] 
Sent: Wednesday, March 11, 2009 3:24 PM
To: Dvir Bar-lev
Cc: zope@zope.org
Subject: Re: [Zope] redirect timeout doesn't work

Le mercredi 11 mars 2009 à 14:59 +0200, Dvir Bar-lev a écrit :
 I want to redirect a user from my page to another page after a certain
 time, I put this code in the dtml  page at the top I want to redirect
 from:
 
  
 
 dtml-call REQUEST.RESPONSE.setHeader('Refresh', '5', ‘URL
 Address’)

Maybe I'm wrong but I think it should be something like :

  setHeader('Refresh', '5;URL=http://...')


  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : thierry.flo...@onf.fr
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85

___
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] redirect timeout doesn't work

2009-03-11 Thread Dvir Bar-lev
Hi just wanted to add something that I forgot to meantion.
The problem I described only happenes on  IE, on firefox it does the redirect 
even after I refresh the page manually

-Original Message-
From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Dvir 
Bar-lev
Sent: Wednesday, March 11, 2009 3:47 PM
To: zope@zope.org
Subject: Re: [Zope] redirect timeout doesn't work

Yep, you were right, the syntax I used was bad, but now I encountered a 
diffrent problem.
If i set the header as you said and manually refresh the page than it wont 
redirect again.
Anyone encountered this before? Can't find anything on the web about this 
problem

-Original Message-
From: Thierry Florac [mailto:thierry.flo...@onf.fr] 
Sent: Wednesday, March 11, 2009 3:24 PM
To: Dvir Bar-lev
Cc: zope@zope.org
Subject: Re: [Zope] redirect timeout doesn't work

Le mercredi 11 mars 2009 à 14:59 +0200, Dvir Bar-lev a écrit :
 I want to redirect a user from my page to another page after a certain
 time, I put this code in the dtml  page at the top I want to redirect
 from:
 
  
 
 dtml-call REQUEST.RESPONSE.setHeader('Refresh', '5', ‘URL
 Address’)

Maybe I'm wrong but I think it should be something like :

  setHeader('Refresh', '5;URL=http://...')


  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : thierry.flo...@onf.fr
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85

___
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 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] Redirect URL

2008-07-16 Thread Subhendu Kumar Giri




I modify the rewrite rule


VirtualHost xxx.xxx.xxx.xxx
ServerName mydomain.org
RewriteEngine On
RewriteRule ^/article/view/([0-9]*)/(.*) /archieve/$1 [R]
RewriteRule ^/zoperoot(.*)
http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/VirtualHostRoot/_vh_zoperoot$1
[P,L]
RewriteRule ^/(.*)
http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/$1
[P,L]
/VirtualHost

and it is working 
Thanks for the support.

Subhendu


Subhendu Kumar Giri wrote:

  
Andreas,
  
Thanks for the response.
  
I write in rewrite rule in httpd.conf
  
VirtualHost xxx.xxx.xxx.xxx
ServerName mydomain.org
ServerAlias www.mydomain.org
ProxyPass /
  http://xxx.xxx.xxx.xxx/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/
ProxyPassReverse /
  http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/
/VirtualHost
  
How can i redirect www.mydomain.com/article/view/11525/1/
to
  www.mydomain.com/archieve/11525
  
  
Andreas Jung wrote:
  

--On 15. Juli 2008 13:14:53 +0530 Subhendu Kumar Giri
[EMAIL PROTECTED]
wrote: 

Hi All, 
  
Previously I have a website running in php. Now we migrated it to plone
  
2.5.5 and zope 2.9. After that I want to maintain all the previous
links 
. Earlier it was like www.mydomain.com/article/view/11525/1/
(where 
11525 is the article id). Now I created a archieve folder where I 
migrated the contents. The new link is www.mydomain.com/archieve/11525.
I 
tried to redirect it from default_error_message but it did not work as
it 
shows the folder contents of article folder. 
  
What should be done to redirect the old url to new url. 


Apache rewrite rules? 

-aj
  


-- 


Subhendu Kumar Giri
Subhendu Kumar Giri [  ]






___
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] Redirect URL

2008-07-15 Thread Subhendu Kumar Giri
Title: Subhendu Kumar Giri




Hi All,

Previously I have a website running in php. Now we migrated it to plone
2.5.5 and zope 2.9. After that I want to maintain all the previous
links . Earlier it was like www.mydomain.com/article/view/11525/1/
(where 11525 is the article id). Now I created a archieve
folder where I migrated the contents. The new link is www.mydomain.com/archieve/11525.
I tried to redirect it from default_error_message but it did
not work as it shows the folder contents of article folder.

What should be done to
redirect the old url to new url.

Please help me to find the solution.




-- 



Subhendu Kumar Giri [  ]



___
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] Redirect URL

2008-07-15 Thread Andreas Jung



--On 15. Juli 2008 13:14:53 +0530 Subhendu Kumar Giri 
[EMAIL PROTECTED] wrote:



Hi All,

Previously I have a website running in php. Now we migrated it to plone
2.5.5 and zope 2.9. After that I want to maintain all the previous links
. Earlier it was like  www.mydomain.com/article/view/11525/1/ (where
11525 is the article id). Now I created a archieve folder where I
migrated the contents. The new link is www.mydomain.com/archieve/11525. I
tried to redirect it from default_error_message but it did not work as it
shows the folder contents of article folder.

What should be done to redirect the old url to new url.


Apache rewrite rules?

-aj

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


Re: [Zope] Redirect URL

2008-07-15 Thread Subhendu Kumar Giri
Title: Subhendu Kumar Giri




Andreas,

Thanks for the response.

I write in rewrite rule in httpd.conf

VirtualHost xxx.xxx.xxx.xxx
ServerName mydomain.org
ServerAlias www.mydomain.org
ProxyPass /
http://xxx.xxx.xxx.xxx/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/
ProxyPassReverse /
http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/
/VirtualHost

How can i redirect www.mydomain.com/article/view/11525/1/ to
www.mydomain.com/archieve/11525


Andreas Jung wrote:

  
--On 15. Juli 2008 13:14:53 +0530 Subhendu Kumar Giri
[EMAIL PROTECTED] wrote:
  
  
  Hi All,


Previously I have a website running in php. Now we migrated it to plone

2.5.5 and zope 2.9. After that I want to maintain all the previous
links

. Earlier it was like www.mydomain.com/article/view/11525/1/ (where

11525 is the article id). Now I created a archieve folder where I

migrated the contents. The new link is www.mydomain.com/archieve/11525.
I

tried to redirect it from default_error_message but it did not work as
it

shows the folder contents of article folder.


What should be done to redirect the old url to new url.

  
  
Apache rewrite rules?
  
  
-aj



-- 



Subhendu Kumar Giri [  ]





___
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] Redirect URL

2008-07-15 Thread Andreas Jung



--On 15. Juli 2008 13:55:12 +0530 Subhendu Kumar Giri 
[EMAIL PROTECTED] wrote:




How can i redirect www.mydomain.com/article/view/11525/1/ to
www.mydomain.com/archieve/11525


By reading the Apache manual.

-aj

pgpXb4rI5fA1H.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] redirect after file upload

2006-03-10 Thread Olivier Wambacq
hello people,

I managed to upload a file to the external folder with plonelocalfolderng
and simultaniously to a database.

but as you all know, after uploading a file with htmlformuploadfile, this
automaticly redirects to plfng_view.
but I made my own view of the files available in the folder, based on the
content of my database.
So after upload, I want it to redirect to this page again, and not to the
plfng_view of plonelocalfolderNG.

I tried putting a javascript in this file, and changing the links in
plfng_view, but I can't seem to find just where to put it.

maybe someone can help?

thanks
Olivier

___
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] redirect after file upload

2006-03-10 Thread Dieter Maurer
Olivier Wambacq wrote at 2006-3-10 10:57 +0100:
I managed to upload a file to the external folder with plonelocalfolderng
and simultaniously to a database.

but as you all know, after uploading a file with htmlformuploadfile, this
automaticly redirects to plfng_view.
but I made my own view of the files available in the folder, based on the
content of my database.

Thus, you use your own action wrapper which calls the orginal action
and then redirects as you want it. The second redirect
overrides the first one.


-- 
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] Redirect Exception and Five

2006-03-07 Thread Santi Camps
Hi all,

I have a problem developing a Product using Five.When a Redirect
Exception is raised from a PluggableUserFolder inside my product, it
is not handled by the publisher, and I have an error message instead a
browser redirect. The same test inside a normal Folder works fine.

I'm using Zope 2.9.0, and tried to add this ZCML statements, but I've
no luck, and I can't find any other message talking about this.

 five:traversable class=OFS.Application.Application/
 five:traversable class=OFS.Folder.Folder/
 five:traversable class=zExceptions.Redirect/
 five:traversable
class=Products.PluggableUserFolder.PluggableUserFolder.PluggableUserFolder/
 five:traversable class=.folder.APWebFolder/

Anybody knows what could happen ?

Thanks
--
--
Santi Camps
Earcon S.L. - http://www.earcon.com
  - http://www.kmkey.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 )


[Zope] redirect on Authorization

2000-11-03 Thread Spicklemire, Jerry

Daniel says:

 We have a very large site and many of Users bookmark pages. 
 This can cause several problems especially if the site layout
 changes, security changes at different levels and a user 
 bookmarks a result pages that depends on previous page(s) 
 submissions.

Yes, it's easy to redirect to a "front page" upon authentication,
but what's to keep the user from hitting the bookmark again, 
after signing on?

The real question is, "How can we keep users from bookmarking
dynamic pages?". It may be frustrating, but this is something 
that will haunt us as long as browsers have a bookmark button.

Worse, the browser cache, and higher levels of caching (e.g. 
Squid), are clueless and will obliviously serve up expired pages. 
You need to be very diligent to include metatags on every 
dynamic page to explicitly prevent caching!

The only answer I can come up with is to include checking for 
valid prerequisites, and redirect the user to the starting 
point of each process when they ask for the last page first.

An interesting problem, which I haven't got a canned answer for.

Later,
Jerry S.

___
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] redirect on Authorization

2000-11-02 Thread Daniel Rusch

Is there a way of having all users redirected upon Authorization?  

Let me explian. We have a very large site and many of Users bookmark
pages. This can cause several problems especially if the site layout
changes, security changes at different levels and a user bookmarks a
result pages that depends on previous page(s) submissions.


In other words can zope be hacked to return a preselected URL instead of
the page the user has bookmarked?

___
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] redirect

2000-10-24 Thread Joaldo Junior

how to for that function REDIRECT understand a variable.

ex.

dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
test')"

___
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] redirect

2000-10-24 Thread Rik Hoekstra

 
 how to for that function REDIRECT understand a variable.
 
 ex.
 
 dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
 test')"

You can't nest dmtl tags

try :

dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)"

Rik

___
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] redirect

2000-10-24 Thread Daniel Rusch

dtml-call
"RESPONSE.redirect('http://zope.org/index.htm?cod='+_.str(test))"

You can't (and don't need to) put dtml tags inside dtml tags. 

Joaldo Junior wrote:
 
 how to for that function REDIRECT understand a variable.
 
 ex.
 
 dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
 test')"
 
 ___
 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 )




Re: [Zope] redirect

2000-10-24 Thread Phil Harris

dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)"

- Original Message - 
From: "Joaldo Junior" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 24, 2000 3:38 PM
Subject: [Zope] redirect


 how to for that function REDIRECT understand a variable.
 
 ex.
 
 dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
 test')"
 
 ___
 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 )




Re: [Zope] redirect

2000-10-24 Thread Christian Scholz

Hi!

 how to for that function REDIRECT understand a variable.
 
 ex.
 
 dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
 test')"

use

dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)"

with "" you will enter the python scope and thus no dtml syntax is allowed
anymore. Instead you have to use python syntax (test should be a string
btw, otherwise use _.str(test) to make it one).

cheers,
  Christian

___
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] redirect

2000-10-24 Thread Aleksander Salwa


On Tue, 24 Oct 2000, Joaldo Junior wrote:

 how to for that function REDIRECT understand a variable.
 
 ex.
 
 dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
 test')"

DTML tags can't be nested.
Try:
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)"

[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/



___
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] redirect to user's folder not working

2000-10-06 Thread knight

 On Fri, 06 Oct 2000, Andy McKay wrote:
  AUTHENTICATED_USER is not a string so need to cast it before doing the
  string operation:
 
  dtml-call "RESPONSE.redirect(URL1 + '/' + _.str(AUTHENTICATED_USER))"
 
  dtml-var AUTHENTICATED_USER effectively does the same thing, it calls the
  string representation of AUTHENTICATED_USER.
 
 
 A more 'polite' way to get the user name is to use 
 AUTHENTICATED_USER.getUserName().  Not as short, true, but definitely more 
 explicit.

Agreed. Any remember, several user managers don't completely conform to
the AUTHENTICATED_USER "standards", and you might see calling
AUTHENTICATED_USER directly fail completely.

;]

Knight
[EMAIL PROTECTED]


___
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] redirect to user's folder not working

2000-10-05 Thread Erik Myllymaki

I am using this line in my index_html DTML method in the base root folder to
redirect users to their proper folder so content can be specialized for each
of them:

dtml-call "RESPONSE.redirect(URL1 + '/' + AUTHENTICATED_USER)"

I get an error:

Error Type: TypeError
Error Value: illegal argument type for built-in operation

It works fine like hard-coded like this:

dtml-call "RESPONSE.redirect(URL1 + '/' + 'username')"


I can use dtml-var AUTHENTICATED_USER on the page and get the appropriate
username though?!

Any help appreciated.

-- 
Erik Myllymaki
[EMAIL PROTECTED]



___
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] redirect to user's folder not working

2000-10-05 Thread Andy McKay

AUTHENTICATED_USER is not a string so need to cast it before doing the
string operation:

dtml-call "RESPONSE.redirect(URL1 + '/' + _.str(AUTHENTICATED_USER))"

dtml-var AUTHENTICATED_USER effectively does the same thing, it calls the
string representation of AUTHENTICATED_USER.

- Original Message -
From: "Erik Myllymaki" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 05, 2000 8:48 AM
Subject: [Zope] redirect to user's folder not working


 I am using this line in my index_html DTML method in the base root folder
to
 redirect users to their proper folder so content can be specialized for
each
 of them:

 dtml-call "RESPONSE.redirect(URL1 + '/' + AUTHENTICATED_USER)"

 I get an error:

 Error Type: TypeError
 Error Value: illegal argument type for built-in operation

 It works fine like hard-coded like this:

 dtml-call "RESPONSE.redirect(URL1 + '/' + 'username')"


 I can use dtml-var AUTHENTICATED_USER on the page and get the
appropriate
 username though?!

 Any help appreciated.

 --
 Erik Myllymaki
 [EMAIL PROTECTED]



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




RE: [Zope] Redirect Back

2000-07-07 Thread Chris McDonough

You may either use Javascript's history method or use
RESPONSE.REDIRECT(REQUEST['HTTP_REFERER']).  The former is preferred as
the latter isn't always accurate nor available.

 -Original Message-
 From: Aaron Williamson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 07, 2000 11:45 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Redirect Back
 
 
 Does anyone know if RESPONSE.redirect() can somehow be used 
 to send the
 user "back," like they clicked the back button on the browser?
 
 Thanks,
 
 Aaron Williamson
 Operation Mobilisation
 [EMAIL PROTECTED]
 
 
 ___
 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 )




RE: [Zope] Redirect Back

2000-07-07 Thread Chris McDonough

Oops, sorry, not RESPONSE.REDIRECT, instead RESPONSE.redirect.

 -Original Message-
 From: Chris McDonough [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 07, 2000 11:54 AM
 To: 'Aaron Williamson'; [EMAIL PROTECTED]
 Subject: RE: [Zope] Redirect Back
 
 
 You may either use Javascript's history method or use
 RESPONSE.REDIRECT(REQUEST['HTTP_REFERER']).  The former is 
 preferred as
 the latter isn't always accurate nor available.
 
  -Original Message-
  From: Aaron Williamson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 07, 2000 11:45 AM
  To: [EMAIL PROTECTED]
  Subject: [Zope] Redirect Back
  
  
  Does anyone know if RESPONSE.redirect() can somehow be used 
  to send the
  user "back," like they clicked the back button on the browser?
  
  Thanks,
  
  Aaron Williamson
  Operation Mobilisation
  [EMAIL PROTECTED]
  
  
  ___
  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 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] Redirect Back

2000-07-07 Thread Andy McKay

And Javascripts back function is javascript:history.back()

so i think RESPONSE.redirect('javascript:history.back()')

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "'Aaron Williamson'"
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 07, 2000 8:56 AM
Subject: RE: [Zope] Redirect Back


 Oops, sorry, not RESPONSE.REDIRECT, instead RESPONSE.redirect.

  -Original Message-
  From: Chris McDonough [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 07, 2000 11:54 AM
  To: 'Aaron Williamson'; [EMAIL PROTECTED]
  Subject: RE: [Zope] Redirect Back
 
 
  You may either use Javascript's history method or use
  RESPONSE.REDIRECT(REQUEST['HTTP_REFERER']).  The former is
  preferred as
  the latter isn't always accurate nor available.
 
   -Original Message-
   From: Aaron Williamson [mailto:[EMAIL PROTECTED]]
   Sent: Friday, July 07, 2000 11:45 AM
   To: [EMAIL PROTECTED]
   Subject: [Zope] Redirect Back
  
  
   Does anyone know if RESPONSE.redirect() can somehow be used
   to send the
   user "back," like they clicked the back button on the browser?
  
   Thanks,
  
   Aaron Williamson
   Operation Mobilisation
   [EMAIL PROTECTED]
  
  
   ___
   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 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] Redirect when not authenticated

2000-07-06 Thread Paul Gresham

Hi All,
I have a secure directory (no Anon access) and when I access it, it will
throw me to a login screen in the GUF folder in that dir. What I really
want to happen is for the user to be thrown back up a level to the main
login/news etc etc screen which is a better place to start. however I
seem to be getting all sorts of security problems. Any ideas anyone?

Many thanks
Gresh

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