Paste template "pydap"

13 views
Skip to first unread message

Derek Broughton

unread,
Dec 8, 2009, 8:38:48 PM12/8/09
to py...@googlegroups.com
Despite having used Paster for two years now, I still can't figure out where it
finds its templates.

When I do: paster create -t pydap

where is the "pydap" template? I'd like to modify the template to make the
"data" directory configurable, but I can't even figure out where it is.
--
derek

Roberto De Almeida

unread,
Dec 18, 2009, 6:33:43 AM12/18/09
to py...@googlegroups.com
Hi, Derek!

When you run "paster create -t pydap foobar" the templates are copied from 

  pydap/wsgi/template/templates

to

  foobar/templates

. I'm not sure what you mean with "making the data directory configurable". You can change its location in the file 

  foobar/server.ini

, is that what you want?

Cheers,
--Rob




--

You received this message because you are subscribed to the Google Groups "pydap" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pydap+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pydap?hl=en.





--
Dr. Roberto De Almeida
http://dealmeida.net/
http://lattes.cnpq.br/1858859813771449
:wq

Salve os axolotl! >>o_O<<

Derek Broughton

unread,
Dec 18, 2009, 9:32:16 AM12/18/09
to py...@googlegroups.com, Roberto De Almeida
Thanks Roberto. I think I'd have been a long while tracking it down to
"wsgi".

I want to do this because I have a "buildout" which builds a nice, sandboxed,
implementation of pydap, with all its dependencies, and the only thing it
can't do is make the wsgi configuration point to the correct data files. The
buildout contains a section that writes the WSGIScript file, complete with all
the eggs on the pythonpath, but the server.ini is hard-coded. If the data
directory is specified as a template variable, then it becomes a parameter in
my buildout.cfg file.

I'll post the buildout and any patches for the templates this weekend (I'll
also want to add a template for an apache virtualhost).

derek

> > <pydap%2Bunsu...@googlegroups.com>. For more options, visit this
> > group at
> > http://groups.google.com/group/pydap?hl=en.
>

--
derek

Reply all
Reply to author
Forward
0 new messages