Re: [Zope-dev] Simple question about namespaces

2001-09-21 Thread Dieter Maurer

Sidnei da Silva writes:
 > Im trying to do something like this:
 > when a user access:
 > http://www.mysite.com/somefolder
 > i wish to return:
 > http://www.mysite.com/onefolder/anotherfolder/somefolder
 > but do this in a transparent form, without redirecting the user. I guess, by 
Seems to call for a SiteAccess2 AccessRule


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] Simple question about namespaces

2001-09-21 Thread Sidnei da Silva

Hello Antonio, 

Actually, the problem can not be solved by the Virtual Host Product, for what 
i know. Let me explain the situation:
Im trying to create something like a Template Folder, that contains some 
folders with images, some DTML Methods that create menus and the like, and a 
Content Folder, that contains the Content itself. I can have Templates that 
have just specialized parts of the template and look over at the Main 
Template folder, in case of not found some object at the Specialized 
Template. 

Im having trouble at two points: 
* First, in making the Specialized Template look over at the Main Template 
under not found some content (like i said, the specialized content may 
containt one or two images inside a images folder). Ive tried doing this by 
overriding the __bobo_traverse__ method of the Specialized Template, but it 
not worked.

* Second, when i call the Content Folder, it is needed to apply the template 
to it. The content has a property that says what is the Specialized Template 
that has to be applied when calling it, so, when i call:

http://www.mysite.com/ContentFolder

i need to apply the template to the folder, maybe calling:

http://www.mysite.com/MainTemplate/SpecializedTemplate/ContentFolder

But i wish to do this by code, instead of redirecting the user to this url.

Hope you understand what ive explained here, and if cannot help me, maybe can 
tell me who can help me.

Thanx

Em Friday 21 September 2001 10:00, you wrote:
> This is not an answer. But you can find information, in how to´s, Zope Help,
> or Products Help. Look for Virtual Host Product.
> 
> Antonio Carrasco
> 
> ¿The other question?
> 
> - Original Message -
> From: "Sidnei da Silva" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 21, 2001 2:08 PM
> Subject: [Zope-dev] Simple question about namespaces
> 
> 
> > Hello everyone,
> >
> > Im trying to do something like this:
> > when a user access:
> > http://www.mysite.com/somefolder
> > i wish to return:
> > http://www.mysite.com/onefolder/anotherfolder/somefolder
> > but do this in a transparent form, without redirecting the user. I guess,
> by
> > calling the "somefolder" in the context of "onefolder/anotherfolder".
> Maybe
> > by overriding "__bobo_traverse__"
> >
> > Hope you can help me this time, cause the other questions I have asked to
> > this list where not answered by anyone.
> >
> > Thanx in advance.
> >
> > --
> > Sidnei da Silva
> > X3ng Consultoria e Desenvolvimento Ltda.
> > [EMAIL PROTECTED]
> >
> > ___
> > 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 )
> >
> 
> 

-- 
Sidnei da Silva
X3ng Consultoria e Desenvolvimento Ltda.
[EMAIL PROTECTED]

___
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] Simple question about namespaces

2001-09-21 Thread Sidnei da Silva

Hello everyone,

Im trying to do something like this:
when a user access:
http://www.mysite.com/somefolder
i wish to return:
http://www.mysite.com/onefolder/anotherfolder/somefolder
but do this in a transparent form, without redirecting the user. I guess, by 
calling the "somefolder" in the context of "onefolder/anotherfolder". Maybe 
by overriding "__bobo_traverse__"

Hope you can help me this time, cause the other questions I have asked to 
this list where not answered by anyone.

Thanx in advance.

-- 
Sidnei da Silva
X3ng Consultoria e Desenvolvimento Ltda.
[EMAIL PROTECTED]

___
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] Simple Question

2001-05-23 Thread Michel Pelletier

On Wed, 23 May 2001, jawad haider wrote:

>
>
> I wanted to make a search form in which search criteria and search
> result will appear on the same page e.g.search criteria on the top and
> when the submit button is pressed the list of search results should be
> displayed in the bottom of the page.
>
> But when I try to accomplish this using the following code the search
> results are displayed on a separate page.

You want to page to 1) draw a form if there are no search criteria and 2)
call itself when the form is submitted.  Andreas already showed how you
can check for a form submission, and havving the page call itself is
simple:



this form will submit to its own URL.  Your question is out of the scope
of this list, which is about Zope core and product development.  This is a
user question, and should be directed to the Zope list [EMAIL PROTECTED]

-Michel



___
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] Simple Question

2001-05-23 Thread Andreas Jung


- Original Message -
From: "jawad haider" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 7:44 PM
Subject: Re: [Zope-dev] Simple Question


> 
> 
> 
>
>
> Here dtFindCustomer is a DTML method which in turn call z sql method which
performs actual search in the MY SQL DB. The control is transfered to the
next page when the form action method is called.
>
> HOW CAN i redirect the control on the same page and get the results
returned to the same page and displayed on this same page ?
>
> Hope I am able to explain my question this time.

Try to add a name attribute to the submit button like:



Inside the DTML method you must check if the 'submitted' variable is set:


  Form has been submitted
.





   




Andreas



___
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] Simple Question

2001-05-23 Thread jawad haider

Hi:
Thanks for your response. 
I wanted to make a search form in which search criteria and search result will appear on the same page e.g.search criteria on the top and when the submit button is pressed the list of search results should be displayed in the bottom of the page.
But when I try to accomplish this using the following code the search results are displayed on a separate page. 
Following is the piece of code,
 
NameAge
 

Here dtFindCustomer is a DTML method which in turn call z sql method which performs actual search in the MY SQL DB. The control is transfered to the next page when the form action method is called. 
 
HOW CAN i redirect the control on the same page and get the results returned to the same page  and displayed on this same page ?
 
Hope I am able to explain my question this time.
 
Regards
Jawad
 
 

>From: "Andreas Jung" <[EMAIL PROTECTED]>
>To: "jawad haider" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: Re: [Zope-dev] Simple Question 
>Date: Wed, 23 May 2001 15:00:44 -0400 
> 
>After reading your description I don't know yet what your real 
>problem or question is ?! 
> 
>Andreas 
> 
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

___
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] Simple Question

2001-05-23 Thread Andreas Jung

After reading your description I don't know yet what your real
problem or question is ?!

Andreas


From: "jawad haider" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 6:51 PM
Subject: Re: [Zope-dev] Simple Question


> How come no one is answering to my mail below. Is it too trivial or too
complex or the people in the list is too busy ? Please respond if you have
any clue/suggetion.
>



___
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] Simple Question

2001-05-23 Thread jawad haider

How come no one is answering to my mail below. Is it too trivial or too complex or the people in the list is too busy ? Please respond if you have any clue/suggetion.
 
>From: "jawad haider" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] 
>Subject: [Zope-dev] Simple Question 
>Date: Wed, 23 May 2001 10:35:46 
> 
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi:
I have recently started exploring zope and I want to develop this simple thing:
A search form and when somebody presses the submit button after specifying  the search criteria, I want 
search results to be displayed on the same page below the  the search criteria.
 
Following is the piece of code,
 
NameAge
 

Here dtFindCustomer is a DTML method which in turns call z sql method which performs actual search in the MY SQL DB. Any suggetions, links or references to acomplish this are welcome.
 
Regards
Jawad
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

___
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] Simple Question

2001-05-23 Thread jawad haider
Hi:
I have recently started exploring zope and I want to develop this simple thing:
A search form and when somebody presses the submit button after specifying  the search criteria, I want 
search results to be displayed on the same page below the  the search criteria.
 
Following is the piece of code,
 
NameAge
 

Here dtFindCustomer is a DTML method which in turns call z sql method which performs actual search in the MY SQL DB. Any suggetions, links or references to acomplish this are welcome.
 
Regards
Jawad
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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