durusmail: quixote-users: Is there an example of how to do this.
Is there an example of how to do this.
2005-08-02
2005-08-02
2005-08-02
2005-08-06
Is there an example of how to do this.
vincent delft
2005-08-02
I hope I've understood currectly the request.

With the Extended Directory I've writen
(http://quixote.ca/qx/ExtDirectory) you can do it very
simply:
"
from extdirectory import ExtDirectory
from quixote.publish import Publisher

class Customer(ExtDirectory):
    def _q_lookup(self,id,action='show'):
        return "Customer ID:%s, action:%s" %
(id,action)
class Root(ExtDirectory):
    pass

def publisher():
    root=Root()
    root._q_exports.append('customer')
    root.customer=Customer()
    pub=Publisher(root)
    return pub

if __name__=="__main__":
    from quixote.server.simple_server import run
    run(publisher,host='localhost',port=8080)
"

You can run it, and use your prefered browser with the
following urls:
http://localhost:8080/customer/
http://localhost:8080/customer/10
http://localhost:8080/customer/10/edit


Vincent















--- David Driver  wrote:

> Suppose that I have a URL that looks like
> http://mysite/ar/customer/
> /customer/ is to resolve to a screen for looking up
> customers.
> /customer/10 shows a summary of the customer and
> links to other
> reports for the customer and an edit link so that
> /customer/10/edit shows a ui for editing the
> customer
>
> If I am using dynamic exporting directory and I
> don't want the user to
> see the other links (for reports and editing) untill
> they have looked
> up a customer or entered the url directly. Also how
> do the subsiquent
> directories get called?
>
> I would eventually see doing something like
> /customer/10/aging/detailed
> How does aging know that wer are talking about
> customer 10 if detailed
> is also q lookup in aging?
>
>
>
> --
>
> ***********************************
> See there, that wasn't so bad.
> ***********************************
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
>
http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
reply