Re: lighttpd use

2008-06-01 Thread Noah Tye

I use lighttpd with FastCGI.

$HTTP[host] =~ ^noah.tyes.us$ {
  url.rewrite-once = (
^/notebook/(.*)$ = /wbm/dispatch.fcgi/$1,
  )
}

$HTTP[host] =~ ^noah.tyes.us$ {
  url.redirect = (
^/$=  http://noah.tyes.us/
notebook/
  )
}

When it comes to separating static and dynamic pages, I just keep
everything handled by Pylons in a single directory.  This way I can
have multiple apps running if I want.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



strange behavior with pylons and sqlalchemy threadlocal

2008-06-01 Thread arashf

I'm having some interesting behavior with threadlocal sqlalchemy/
pylons.

after a session.commit() the next connection used is different from
the original despite the fact that the it's on the same thread/
request. isn't threadlocal was supposed to prevent this? here is a
code sample I'm running: http://pastebin.com/m40d94ca7. for some
reason, the connection id's returned are different. if this is the
expected behavior, is there any straight forward way to keep the same
connection or reacquire it?

for those wondering why I need this: I'm using the mysql GET_LOCK()
method to create application level locks that span multiple servers
and the lock must be released by the same connection that acquired it.
I also need to release the lock /after/ the transaction is committed
(or rolled back) which is why I can't simply release the lock within
the initial transaction.

any help would be greatly appreciated. thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Routes and REST controller (map.resource)

2008-06-01 Thread Nick

Ive just started using map.resource, but im having a few problems
determining what is actually being generated. Anyone give me a quick
pointer on how to look into the data structs generated by routes?

Basically i've got this:

map.resource('user', 'users', controller='wusers')

And when i do this:

 h.url_for('user')
'/wusers/show'

it works as it's pointing to the right controller but if i do this

 h.url_for('users')
'/users'

it points to the 'users' controller rather than 'wusers'. Anyone have
any idea either what i'm doing wrong or how i can fix it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



AW: Pylons Doc as compiled windows help file (chm)

2008-06-01 Thread Andrew Smart

 -Ursprüngliche Nachricht-
 Von: pylons-discuss@googlegroups.com 
 [mailto:[EMAIL PROTECTED] Im Auftrag von Ben Bangert
 Gesendet: Sonntag, 1. Juni 2008 06:33
 An: pylons-discuss@googlegroups.com
 Betreff: Re: Pylons Doc as compiled windows help file (chm)
 
 On May 31, 2008, at 6:03 PM, Shannon -jj Behrens wrote:
 
  I recently learned about http://sphinx.pocoo.org/.  It's a PyDoc 
  replacement.  It generates static HTML, but it has a built in index 
  with a JavaScript search feature.  In my mind, that's the 
 best of both 
  worlds.
 
 Also, the new Pylons docs are being written with it, and it 
 can build CHM files for Windows as well as Latex for nice PDF files.

I've references to Sphinx in the Pylons mailing list, and I did have a
look at it. But the homepage didn't make any references to chm, so I've
looked for other packages, and finally got to an eypdoc + chm solution.

After your postings I've digged a bit deeper, and yes, there is ONE single
reference to CHM in the documentation PDF. Arg...

Of course I'll switch to Sphinx if I get chm's: better visual output,
official Python doc utility, now-official Pylons doc utility... :-)

But leaves one question unanswered: anyone interested in the chm files?

Andrew


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



paste.progress not works

2008-06-01 Thread IQDoctor

setup paste.progress.UploadProgressMonitor in middlware.py
app = UploadProgressMonitor(app, threshold = 1024)
and then upload a 15M file, paste raised exception ...
have any example about pylons with paste.progress?

---
Exception happened during processing of request from ('127.0.0.1', 35823)
Traceback (most recent call last):
  File /opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
 tpserver.py, line 1056,
in process_request_in_thread
self.finish_request(request, client_address)
  File /opt/python/2.5//lib/python2.5/SocketServer.py, line 254, in
finish_req  uest
self.RequestHandlerClass(request, client_address, self)
  File /opt/python/2.5//lib/python2.5/SocketServer.py, line 522, in __init__
self.handle()
  File /opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
 tpserver.py, line 432,
in handle
BaseHTTPRequestHandler.handle(self)
  File /opt/python/2.5//lib/python2.5/BaseHTTPServer.py, line 316, in handle
self.handle_one_request()
  File /opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
 tpserver.py, line 427,
in handle_one_request
self.wsgi_execute()
  File /opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
 tpserver.py, line 287,
in wsgi_execute
self.wsgi_start_response)
  File /opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/pr
 ogress.py, line 147, in
__call__
_ProgressFile(environ, environ['wsgi.input'])
  File /opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/pr
 ogress.py, line 52, in
__init__
self.flush = rfile.flush
AttributeError: 'LimitedLengthFile' object has no attribute 'flush'

-- 
Best regrads,
IQDoctor

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: lighttpd use

2008-06-01 Thread Paul Bloch

Right, that's the usual assumption.  I've been trying to fill the
place in between for a number of years to little success.  I'm a
designer that uses OS X and adobe products so I don't have much use
for open source applications, even design related apps, because the
quality is so low (this is based on my own testing and critiquing).
I've still attempted to make opensource as beautiful as I can to
varying success.  My efforts are often thwarted by the very developers
I try to help, because as you say, most just opt to use a developer
with what you refer to as talent and very few use a contracted
designer, but some projects have actually hired and payed me for work.

You can see some of the work I've contributed on gnome-look.org, just
look up my name.  Take a look at the pidgin logo and the compiz fusion
logo I made, I'm really happy how those turned out.  I unfortunately
didn't win the FreeBSD logo contest awhile back, as I think my entry
was a better choice, it still got 4th place though and my Lighttpd
logo obviously won the competition.

Projects I've worked with are the Mirth project (logo), Mixxx.org
(logo), Sojourner Linux (logo), Lighttpd (logo), Compiz/Beryl (didn't
win), PC-BSD (I made a number of design submissions that never got
implemented, BSD Foundation (some branding work), and much much more.
I actually have a project I've never published where I redid a huge
number of logos for opensource OSes.  I think soon I'll just put it
out into the ether.

I don't use any of this software but I believe in open source, I want
it to succeed, so I do what I can even though developers often keep my
hands firmly tied behind my back. I'm actually a creative director so
it's a shame that more people don't take advantage of the services I
offer for free.  It's been a frustrating career in the opensource
world for me so I've nearly given up entirely.  I've even tried to
join a number of foundations to head up a design/interaction team, but
there haven't been any takers.

If you ask me what keeps the opensource world back from total takeover
I could point you to a number of things that I've written about.  But
for now I remain a bit in the shadow of the opensource scene, not many
people know me or my work.  Still I subscribe to a number of mailing
lists and chime in from time to time. :)

All the best,

Paul aka openartist

On Sun, Jun 1, 2008 at 12:42 AM, Jose Galvez [EMAIL PROTECTED] wrote:
 so you don't use lighttp but you made their logo? how does that work, I
 would have assumed that the logo would have been made by either a user with
 graphics talent or a contracted graphics designer.

 Paul Bloch wrote:

 Well, I don't use it but I made the logo. :)

 On Sat, May 31, 2008 at 11:07 PM, Jose Galvez [EMAIL PROTECTED] wrote:


 Just started playing around with lighttpd and I'm trying to figure out how
 to get it to serve my static content  while letting pylons do the fun
 stuff.  Here is a copy of my config.  This works but I wanted to see how
 others are using lighttpd.


 # set up folders and files to serve with lighttpd
 static_folders = ^/img/|^/static|^/static2

 hidden_static_folders = ^/css

 static_pages = \.html|\.jpg|\.png|\.gif

 # enable dir listing for some folders
 $HTTP[url] =~ static_folders {
 dir-listing.activate = enable
 }

 # make sure dirlisting stays off for some folders
 $HTTP[url] =~ hidden_static_folders {
 dir-listing.activate = disable
 }


 # if its not static content let pylons handle the request
 $HTTP[url] !~ static_folders + | + hidden_static_folders + | +
 static_pages {
 proxy.server = (  = (
 (host=127.0.0.1,
 port=5000)
 )
 )
 }



 Jose




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: AW: Pylons Doc as compiled windows help file (chm)

2008-06-01 Thread Jose Galvez
question -  are you using eypdoc to generate you docs by parsing your 
python source files, or are you writing your own docs and them 
processing them with eypdoc?  I've used eypdoc in the past, but only to 
parse my python souce files.  I took a look at Sphinx and it looks like 
you  have to write you own docs and then parse them with sphinx rather 
then having it parse you source files.  What I would like to see (and 
didn't see on their web site) is a simple complete example.
Jose

Andrew Smart wrote:
 -Ursprüngliche Nachricht-
 Von: pylons-discuss@googlegroups.com 
 [mailto:[EMAIL PROTECTED] Im Auftrag von Ben Bangert
 Gesendet: Sonntag, 1. Juni 2008 06:33
 An: pylons-discuss@googlegroups.com
 Betreff: Re: Pylons Doc as compiled windows help file (chm)

 On May 31, 2008, at 6:03 PM, Shannon -jj Behrens wrote:

 
 I recently learned about http://sphinx.pocoo.org/.  It's a PyDoc 
 replacement.  It generates static HTML, but it has a built in index 
 with a JavaScript search feature.  In my mind, that's the 
   
 best of both 
 
 worlds.
   
 Also, the new Pylons docs are being written with it, and it 
 can build CHM files for Windows as well as Latex for nice PDF files.
 

 I've references to Sphinx in the Pylons mailing list, and I did have a
 look at it. But the homepage didn't make any references to chm, so I've
 looked for other packages, and finally got to an eypdoc + chm solution.

 After your postings I've digged a bit deeper, and yes, there is ONE single
 reference to CHM in the documentation PDF. Arg...

 Of course I'll switch to Sphinx if I get chm's: better visual output,
 official Python doc utility, now-official Pylons doc utility... :-)

 But leaves one question unanswered: anyone interested in the chm files?

 Andrew


 

   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes and REST controller (map.resource)

2008-06-01 Thread Steve M



On Jun 1, 7:03 am, Nick [EMAIL PROTECTED] wrote:
 Ive just started using map.resource, but im having a few problems
 determining what is actually being generated. Anyone give me a quick
 pointer on how to look into the data structs generated by routes?
From 
http://wiki.pylonshq.com/display/pylonscookbook/How+map.resource+enables+controllers+as+services:

POST   /messages - messages.create()-
url_for('messages')
GET/messages - messages.index() -
url_for('messages')
GET/messages.xml - messages.index(format='xml') -
url_for('formatted_messages', format='xml')
GET/messages/new - messages.new()   -
url_for('new_message')
GET/messages/new.xml - messages.new(format='xml')   -
url_for('formatted_new_message', format='xml')
PUT/messages/1   - messages.update(id)  -
url_for('message', id=1)
DELETE /messages/1   - messages.delete(id)  -
url_for('message', id=1)
GET/messages/1/edit  - messages.edit(id)-
url_for('edit_message', id=1)
GET/messages/1.xml/edit  - messages.edit(id, format='xml')  -
url_for('formatted_edit_message', id=1, format='xml')
GET/messages/1   - messages.show(id)-
url_for('message', id=1)
GET/messages/1.xml   - messages.show(id, format='xml')  -
url_for('formatted_message', id=1, format='xml')


 Basically i've got this:

 map.resource('user', 'users', controller='wusers')

 And when i do this:

  h.url_for('user')

I don't believe that's a valid invocation of the 'user' route.
You could try h.url_for('user', id=4)

to get the url /users/4/show

which should call the show() method on your wusers controller.

I'm not sure what the rest of the problem is, but how did you create
the controller to which you are mapping? If you used restcontroller,
it would have created the python file and class based on the plural
name argument to the restcontroller command. So then using
map.resource as above, there would be no controller to map it to. Or
did you make it from scratch?

Do you really need to have the controller name be different from the
resource name?


 it works as it's pointing to the right controller but if i do this

  h.url_for('users')

 '/users'

 it points to the 'users' controller rather than 'wusers'. Anyone have
 any idea either what i'm doing wrong or how i can fix it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: lighttpd use

2008-06-01 Thread Jose Galvez
Wow! from time to time we have projects at the University that could 
really use a professional hand, would you mind if I emailed you the next 
time one came up and asked you to submit a bid?
Jose

Paul Bloch wrote:
 Right, that's the usual assumption.  I've been trying to fill the
 place in between for a number of years to little success.  I'm a
 designer that uses OS X and adobe products so I don't have much use
 for open source applications, even design related apps, because the
 quality is so low (this is based on my own testing and critiquing).
 I've still attempted to make opensource as beautiful as I can to
 varying success.  My efforts are often thwarted by the very developers
 I try to help, because as you say, most just opt to use a developer
 with what you refer to as talent and very few use a contracted
 designer, but some projects have actually hired and payed me for work.

 You can see some of the work I've contributed on gnome-look.org, just
 look up my name.  Take a look at the pidgin logo and the compiz fusion
 logo I made, I'm really happy how those turned out.  I unfortunately
 didn't win the FreeBSD logo contest awhile back, as I think my entry
 was a better choice, it still got 4th place though and my Lighttpd
 logo obviously won the competition.

 Projects I've worked with are the Mirth project (logo), Mixxx.org
 (logo), Sojourner Linux (logo), Lighttpd (logo), Compiz/Beryl (didn't
 win), PC-BSD (I made a number of design submissions that never got
 implemented, BSD Foundation (some branding work), and much much more.
 I actually have a project I've never published where I redid a huge
 number of logos for opensource OSes.  I think soon I'll just put it
 out into the ether.

 I don't use any of this software but I believe in open source, I want
 it to succeed, so I do what I can even though developers often keep my
 hands firmly tied behind my back. I'm actually a creative director so
 it's a shame that more people don't take advantage of the services I
 offer for free.  It's been a frustrating career in the opensource
 world for me so I've nearly given up entirely.  I've even tried to
 join a number of foundations to head up a design/interaction team, but
 there haven't been any takers.

 If you ask me what keeps the opensource world back from total takeover
 I could point you to a number of things that I've written about.  But
 for now I remain a bit in the shadow of the opensource scene, not many
 people know me or my work.  Still I subscribe to a number of mailing
 lists and chime in from time to time. :)

 All the best,

 Paul aka openartist

 On Sun, Jun 1, 2008 at 12:42 AM, Jose Galvez [EMAIL PROTECTED] wrote:
   
 so you don't use lighttp but you made their logo? how does that work, I
 would have assumed that the logo would have been made by either a user with
 graphics talent or a contracted graphics designer.

 Paul Bloch wrote:

 Well, I don't use it but I made the logo. :)

 On Sat, May 31, 2008 at 11:07 PM, Jose Galvez [EMAIL PROTECTED] wrote:


 Just started playing around with lighttpd and I'm trying to figure out how
 to get it to serve my static content  while letting pylons do the fun
 stuff.  Here is a copy of my config.  This works but I wanted to see how
 others are using lighttpd.


 # set up folders and files to serve with lighttpd
 static_folders = ^/img/|^/static|^/static2

 hidden_static_folders = ^/css

 static_pages = \.html|\.jpg|\.png|\.gif

 # enable dir listing for some folders
 $HTTP[url] =~ static_folders {
 dir-listing.activate = enable
 }

 # make sure dirlisting stays off for some folders
 $HTTP[url] =~ hidden_static_folders {
 dir-listing.activate = disable
 }


 # if its not static content let pylons handle the request
 $HTTP[url] !~ static_folders + | + hidden_static_folders + | +
 static_pages {
 proxy.server = (  = (
 (host=127.0.0.1,
 port=5000)
 )
 )
 }



 Jose




 

 

   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: lighttpd use

2008-06-01 Thread Paul Bloch

Sure :)

On Sun, Jun 1, 2008 at 10:14 PM, Jose Galvez [EMAIL PROTECTED] wrote:
 Wow! from time to time we have projects at the University that could really
 use a professional hand, would you mind if I emailed you the next time one
 came up and asked you to submit a bid?
 Jose

 Paul Bloch wrote:

 Right, that's the usual assumption.  I've been trying to fill the
 place in between for a number of years to little success.  I'm a
 designer that uses OS X and adobe products so I don't have much use
 for open source applications, even design related apps, because the
 quality is so low (this is based on my own testing and critiquing).
 I've still attempted to make opensource as beautiful as I can to
 varying success.  My efforts are often thwarted by the very developers
 I try to help, because as you say, most just opt to use a developer
 with what you refer to as talent and very few use a contracted
 designer, but some projects have actually hired and payed me for work.

 You can see some of the work I've contributed on gnome-look.org, just
 look up my name.  Take a look at the pidgin logo and the compiz fusion
 logo I made, I'm really happy how those turned out.  I unfortunately
 didn't win the FreeBSD logo contest awhile back, as I think my entry
 was a better choice, it still got 4th place though and my Lighttpd
 logo obviously won the competition.

 Projects I've worked with are the Mirth project (logo), Mixxx.org
 (logo), Sojourner Linux (logo), Lighttpd (logo), Compiz/Beryl (didn't
 win), PC-BSD (I made a number of design submissions that never got
 implemented, BSD Foundation (some branding work), and much much more.
 I actually have a project I've never published where I redid a huge
 number of logos for opensource OSes.  I think soon I'll just put it
 out into the ether.

 I don't use any of this software but I believe in open source, I want
 it to succeed, so I do what I can even though developers often keep my
 hands firmly tied behind my back. I'm actually a creative director so
 it's a shame that more people don't take advantage of the services I
 offer for free.  It's been a frustrating career in the opensource
 world for me so I've nearly given up entirely.  I've even tried to
 join a number of foundations to head up a design/interaction team, but
 there haven't been any takers.

 If you ask me what keeps the opensource world back from total takeover
 I could point you to a number of things that I've written about.  But
 for now I remain a bit in the shadow of the opensource scene, not many
 people know me or my work.  Still I subscribe to a number of mailing
 lists and chime in from time to time. :)

 All the best,

 Paul aka openartist

 On Sun, Jun 1, 2008 at 12:42 AM, Jose Galvez [EMAIL PROTECTED] wrote:


 so you don't use lighttp but you made their logo? how does that work, I
 would have assumed that the logo would have been made by either a user with
 graphics talent or a contracted graphics designer.

 Paul Bloch wrote:

 Well, I don't use it but I made the logo. :)

 On Sat, May 31, 2008 at 11:07 PM, Jose Galvez [EMAIL PROTECTED] wrote:


 Just started playing around with lighttpd and I'm trying to figure out how
 to get it to serve my static content  while letting pylons do the fun
 stuff.  Here is a copy of my config.  This works but I wanted to see how
 others are using lighttpd.


 # set up folders and files to serve with lighttpd
 static_folders = ^/img/|^/static|^/static2

 hidden_static_folders = ^/css

 static_pages = \.html|\.jpg|\.png|\.gif

 # enable dir listing for some folders
 $HTTP[url] =~ static_folders {
 dir-listing.activate = enable
 }

 # make sure dirlisting stays off for some folders
 $HTTP[url] =~ hidden_static_folders {
 dir-listing.activate = disable
 }


 # if its not static content let pylons handle the request
 $HTTP[url] !~ static_folders + | + hidden_static_folders + | +
 static_pages {
 proxy.server = (  = (
 (host=127.0.0.1,
 port=5000)
 )
 )
 }



 Jose








 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



AW: AW: Pylons Doc as compiled windows help file (chm)

2008-06-01 Thread Andrew Smart


question -  are you using eypdoc to generate you docs by parsing your
python source files, or are you writing your own 
docs and them processing them with eypdoc?  I've used eypdoc in the past,
but only to parse my python souce files.  I took a 
look at Sphinx and it looks like you  have to write you own docs and then
parse them with sphinx rather then having it parse 
you source files.  What I would like to see (and didn't see on their web
site) is a simple complete example.

Currently I'm using epydoc only to extract the documentation out of the
sourcecode. I've assumed that the same can be done with Sphinx. I've looked
into the documentation and I've seen that this applies not fully. Sphinx has
the ability to extrace docstrings out of a class/function/method, but
doesn't seem to support generation of corresponding index files to make the
generation process fully automatic. 

Arg.

Since Spinx is 0.3 I would bet 10k of source that this feature will be
avaiable in the future, but up to now Sphinx can't be seen as full
replacement for epydoc.

Citation of Sphinx doc:
---
The focus is on hand-written documentation, rather than auto-generated API
docs. Though there is limited support for that kind of docs as well (which
is intended to be freely mixed with hand-written content), if you need pure
API docs have a look at Epydoc, which also understands reST.

Option 1: extend Epydoc to create stuff which can be processed by Sphinx:
-
I've digged a bit into epydoc's HTMLWriter() class. One could think about a
comparable class which creates Sphinx templates and index files. Lots of the
HTMLWriter() stuff is done by Sphinx itself, like indexes, so only the main
tocindex file and the main content files must be generated.

Problem 1: if the epydoc-reST parser is used the text, which is avaiable in
HTMLWriter, is formatted as HTML, not as reST. One could use the
plaintext-markup, but then the @param and @return parameter wouldn't be
recognized.

Problem 2: Sphinx has no concept at all for @param, @return and comparable
attributes which are situated below a class/function/... definition. There
is lots of cross-referencing markup options, but nothing to describe a
function signature or the return type in detail. So if one wants to have
such stuff treated explicitly inside Sphinx generated doc then some
translation must be done. Which means: creating a Sphinx-specific
reST-Parser for epydoc.

Hm... 

Sounds a bit like trying to marry apples and pears to me.

Option 2: Write a custom Sphinx generator script 

Take the module, all class definitions, all functions and methods and such
and extract the docstrings. Write them in a way that Sphinx could process
the whole package. Use the autoclass features of Sphinx. Forget about @param
at first, maybe Sphinx will support them in later releases.

Option 3: leave the stuff alone. Use Epydoc for source, Sphinx for
handwritten docs. 

I can't come to a final conclusion up to now. It would be NICE and
PROFESSIONAL to have one style from both source docs as well as
handwritten docs. It would also very nice to be able to link between
handwritten docs and the source documentation inside one documentation setup
(HTML, PDF, CHM). 

I'm CC'ed Georg which is owner of Sphinx - maybe he can enlight us in our
search for the perfect documentation (tool/setup/path).

Andrew


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: [ANN] ToscaWidgets 0.9 has been released

2008-06-01 Thread Noah Gift
Alberto,
Glad to hear you have an update for ToscaWidgets.  I had a Google App Engine
related question and suggestion.  I talked to Guido at the Google I/O
conference and he mentioned that the only thing missing with the default
webapp framework included with GAE is form validation.  In those cases
people could obviously use Django newforms, but I wonder if ToscaWidgets
might be a great fit for people who want to use the default set up
components included with GAE, and use a library for forms.  I think there is
a great opportunity for someone to tackle form validation OUTSIDE of a web
framework on GAE.

Noah

On Sun, Jun 1, 2008 at 5:45 PM, Alberto Valverde [EMAIL PROTECTED] wrote:


 Hi all,

 ToscaWidgets 0.9 has been released a couple of minutes ago. Here's the
 CHANGELOG:

 0.9.1 (Jun, 1 2008):
 -

 * made ``inject_resources`` default in middleware since else dynamic js
 calls
  wont be included

 0.9 (Jun, 1 2008):
 -

 * retrieve_css and retrieve_javascript have been deprecated and now return
  empty lists so resources are not included twice in TG1.
 * tw.mods.tg now injects resources with resource injector
 * JSLink and CSSLink now allow to override link to specify external
 resources.
  (Closes #7)
 * Removed hard dependency from PasteScript.
 * ToscaWidgets no longer has any external dependency with C extensions
 since
  dependencies on RuleDispatch and PyProtocols have been dropped
 * ``display``, ``render``, ``adapt_value`` and ``retrieve_resources`` are
 no
  longer generic functions but are still exported so they can be easily
 extended
  with PEAK-Rules if neccesary
 * Removed un-needed dependency from decorator module.

 An upgrade of tw.forms is recommended too for best results since newest
 version leverages some improvements made in tw.core::

 easy_install -U ToscaWidgets tw.forms

 Should get you rolling.

 Special thanks to the sprinters, specially Laureano, Sanjiv and Chris P
 for their invaluable help in testing this release.

 Enjoy,
 Alberto

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: [ANN] ToscaWidgets 0.9 has been released

2008-06-01 Thread Alberto Valverde

Noah Gift wrote:
 Alberto,

 Glad to hear you have an update for ToscaWidgets.  I had a Google App
 Engine related question and suggestion.  I talked to Guido at the
 Google I/O conference and he mentioned that the only thing missing
 with the default webapp framework included with GAE is form
 validation.  In those cases people could obviously use Django
 newforms, but I wonder if ToscaWidgets might be a great fit for people
 who want to use the default set up components included with GAE, and
 use a library for forms.  I think there is a great opportunity for
 someone to tackle form validation OUTSIDE of a web framework on GAE.
Hi Noah,

tw.forms uses FormEncode for validation. That would be a better fit IMHO
it tackles form validation specifically, TW does more things which might
not be needed.

Anyway, I'm planning to get TW + tw.forms usable in GAE before 1.0. That
should be much easier now since TW no longer has any C based
dependencies. If Mako or Genshi and FE can be used on GAE there TW
probably can be used too or the fix should be trivial.

Cheers,
Alberto

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: [ANN] ToscaWidgets 0.9 has been released

2008-06-01 Thread Noah Gift
On Sun, Jun 1, 2008 at 6:04 PM, Alberto Valverde [EMAIL PROTECTED] wrote:


 Noah Gift wrote:
  Alberto,
 
  Glad to hear you have an update for ToscaWidgets.  I had a Google App
  Engine related question and suggestion.  I talked to Guido at the
  Google I/O conference and he mentioned that the only thing missing
  with the default webapp framework included with GAE is form
  validation.  In those cases people could obviously use Django
  newforms, but I wonder if ToscaWidgets might be a great fit for people
  who want to use the default set up components included with GAE, and
  use a library for forms.  I think there is a great opportunity for
  someone to tackle form validation OUTSIDE of a web framework on GAE.
 Hi Noah,

 tw.forms uses FormEncode for validation. That would be a better fit IMHO
 it tackles form validation specifically, TW does more things which might
 not be needed.

 Anyway, I'm planning to get TW + tw.forms usable in GAE before 1.0. That
 should be much easier now since TW no longer has any C based
 dependencies. If Mako or Genshi and FE can be used on GAE there TW
 probably can be used too or the fix should be trivial.

 Cheers,
 Alberto


Great to hear.  I personally would LOVE to see Genshi or Mako based forms
and widgets on GAE.





 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



[ANN] ToscaWidgets 0.9 has been released

2008-06-01 Thread Alberto Valverde

Hi all,

ToscaWidgets 0.9 has been released a couple of minutes ago. Here's the
CHANGELOG:

0.9.1 (Jun, 1 2008):
-

* made ``inject_resources`` default in middleware since else dynamic js
calls
  wont be included

0.9 (Jun, 1 2008):
-

* retrieve_css and retrieve_javascript have been deprecated and now return
  empty lists so resources are not included twice in TG1.
* tw.mods.tg now injects resources with resource injector
* JSLink and CSSLink now allow to override link to specify external
resources.
  (Closes #7)
* Removed hard dependency from PasteScript.
* ToscaWidgets no longer has any external dependency with C extensions since
  dependencies on RuleDispatch and PyProtocols have been dropped
* ``display``, ``render``, ``adapt_value`` and ``retrieve_resources`` are no
  longer generic functions but are still exported so they can be easily
extended
  with PEAK-Rules if neccesary
* Removed un-needed dependency from decorator module.

An upgrade of tw.forms is recommended too for best results since newest
version leverages some improvements made in tw.core::

easy_install -U ToscaWidgets tw.forms

Should get you rolling.

Special thanks to the sprinters, specially Laureano, Sanjiv and Chris P
for their invaluable help in testing this release.

Enjoy,
Alberto

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: How did you begin your fun with Pylons?

2008-06-01 Thread Noah Gift
On Fri, May 30, 2008 at 2:40 PM, Alberto Valverde [EMAIL PROTECTED]
wrote:


 Shannon -jj Behrens wrote:
  I'm not making any judgments about anyone.  However, I did see a great
  talk yesterday called How Open Source Projects Survive Poisonous
  People: http://youtube.com/watch?v=ZSFDm3UYkeE
 
  It's definitely worth watching ;)
 
 Nah, I don't think there has been any bad intentions from any side. Just
 an unfortunate misunderstanding, we can now all continue to get along ;)


For the record, Alberto, in my experience with him, is one of the most
helpful people I have met in Open Source :)  He is a good guy to have
involved in any project in my opinion.



 Cheers,
 Alberto

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: [ANN] ToscaWidgets 0.9 has been released

2008-06-01 Thread Walter Cruz

 Anyway, I'm planning to get TW + tw.forms usable in GAE before 1.0. That
 should be much easier now since TW no longer has any C based
 dependencies. If Mako or Genshi and FE can be used on GAE there TW
 probably can be used too or the fix should be trivial.

Mako trunk is supported.
Genshi info can be found here http://genshi.edgewall.org/wiki/AppEngine
FormEncode works on appengine.

I've uploaded everything, and tried to make a simple form, and it
worked. The only concern is the number of files: my app (Pylons based)
has now ~900 files (the appengine limit is 1000)

(i've reverted my form to the html template, as I will don't have time
to verify the code right now :) )


[]'s
- Walter

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: How did you begin your fun with Pylons?

2008-06-01 Thread iain duncan

On Sun, 2008-01-06 at 18:15 -0400, Noah Gift wrote:
 
 
 On Fri, May 30, 2008 at 2:40 PM, Alberto Valverde [EMAIL PROTECTED]
 wrote:
 
 Shannon -jj Behrens wrote:
  I'm not making any judgments about anyone.  However, I did
 see a great
  talk yesterday called How Open Source Projects Survive
 Poisonous
  People: http://youtube.com/watch?v=ZSFDm3UYkeE
 
  It's definitely worth watching ;)
 
 
 Nah, I don't think there has been any bad intentions from any
 side. Just
 an unfortunate misunderstanding, we can now all continue to
 get along ;)
 
 
 For the record, Alberto, in my experience with him, is one of the most
 helpful people I have met in Open Source :)  He is a good guy to have
 involved in any project in my opinion.

I would also like to say that I have had great experiences with both the
TG list and the pylons list ( what little I have used it ). And Alberto
has fixed things very quickly and responded to me personally when I was
pretty much the only one in time sensitive trouble over the issue. 

thanks y'all
Iain

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: How did you begin your fun with Pylons?

2008-06-01 Thread Mateusz Haligowski
If I could add my 2c to the discussion, I also would like to complain about
the documentation:)

My personal favorite type of documentation (ie. learning new stuff) is:
1. very general tutorial (like the one on the PylonsHQ)
2. expanded tutorials - general tutorial divided into parts, with deeper
explanation of what happens
3. HowTos on most popular tasks - something I'm really missing on Pylons. I
still can't do a good user system at my application
4. Up-to-version screencasts - they are lovely indeed, provided that they
consider the current version.

I find the Django documentation better than Pylons one, but it still lacks a
lot. Although, I keep my fingers crossed and can't wait for the book!

Regards,
halish

2008/6/2 iain duncan [EMAIL PROTECTED]:


 On Sun, 2008-01-06 at 18:15 -0400, Noah Gift wrote:
 
 
  On Fri, May 30, 2008 at 2:40 PM, Alberto Valverde [EMAIL PROTECTED]
  wrote:
 
  Shannon -jj Behrens wrote:
   I'm not making any judgments about anyone.  However, I did
  see a great
   talk yesterday called How Open Source Projects Survive
  Poisonous
   People: http://youtube.com/watch?v=ZSFDm3UYkeE
  
   It's definitely worth watching ;)
  
 
  Nah, I don't think there has been any bad intentions from any
  side. Just
  an unfortunate misunderstanding, we can now all continue to
  get along ;)
 
 
  For the record, Alberto, in my experience with him, is one of the most
  helpful people I have met in Open Source :)  He is a good guy to have
  involved in any project in my opinion.

 I would also like to say that I have had great experiences with both the
 TG list and the pylons list ( what little I have used it ). And Alberto
 has fixed things very quickly and responded to me personally when I was
 pretty much the only one in time sensitive trouble over the issue.

 thanks y'all
 Iain

 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---