durusmail: quixote-users: quixote 2.4 and _q_access
quixote 2.4 and _q_access
2008-04-22
2008-04-22
2008-04-22
2008-04-22
2008-04-22
2008-04-23
quixote 2.4 and _q_access
R J Ladyman
2008-04-23
I don't know if this helps at all, but I've just had a similar problem when I
used the SCGIMount format (SCGIMount /qdemo 127.0.0.1:4000) for apache2
instead of the ... format when I moved a Quixote *1*
install to a new server: it bypassed _q_access completely when using the new
format (it called _     q_index I think). Perhaps it works the other way around
for Q2.

RJL



On Tuesday 22 April 2008 21:23:22 alexander krohn wrote:
> Titus Brown schrieb:
> > [...]
> >
> > Hi, Alexander, can you give us a short example that doesn't work?
> >
> > cheers,
> > --titus
> >
> >
> i think it's a problem about the traversal.
>
> anyway, here you go:
>
> import quixote
> from quixote.publish import Publisher
> from quixote.server.simple_server import run
> from quixote.directory import Directory, AccessControlled
> from quixote.errors import AccessError
>
> class RootDirectory(Directory, AccessControlled):
>     _q_exports = ['', ]
>     def _q_index(self):
>         return "moin"
>
>     def _q_access():
>         raise AccessError()
>
> def create_publisher():
>     return Publisher(RootDirectory())
>
> if __name__ == '__main__':
>     run(create_publisher, host = 'localhost', port = 9999)
>
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>
>



--

Robert Ladyman
File-Away Limited, 32 Church Street,Newtyle
Perthshire, PH12 8TZ SCOTLAND
Registered in Scotland, Company Number: SC222086
Tel: +44 (0) 1828 898 158
Mobile: +44 (0) 7732 771 649
VOIP: 7714336@sipgate.co.uk

http://www.file-away.co.uk

reply