Almost any other templating system would be better here as tempita is
unmaintained. Any of Mako, Jinja2 or Chameleon would work; each is Py3
compat.
> - PasteScript: we have a bunch of code generation utilities that are
> done using PasteScript.
If it's only about creating Pyramid scaffolding, Pyramid now has code
generation facilities built in to it. See
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/scaffolding.html
> - FormEncode: we use it a lot for validation, (not html filling or
> generation). I really like the FormEncode encoding approach for multi
> input fields ( variableencode )
FormEncode has picked up a maintainer, so this is probably safe.
Although I don't think it's Py3 compat, not sure if that's on the radar.
> - PyQuery
Haven't used it.
> - BeautifulSoup
This got a release recently which is Py3 compat.
- C
FormEncode has picked up a maintainer, so this is probably safe.
Although I don't think it's Py3 compat, not sure if that's on the radar.
>Almost any other templating system would be better here as tempita is
> - Tempita: our form/field generating system uses tempita as a light
> fast template language for tiny templates, this could be replaced
unmaintained. Any of Mako, Jinja2 or Chameleon would work; each is Py3
compat.
> - PasteScript: we have a bunch of code generation utilities that areIf it's only about creating Pyramid scaffolding, Pyramid now has code
> done using PasteScript.
generation facilities built in to it. See
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/scaffolding.html
> - FormEncode: we use it a lot for validation, (not html filling orFormEncode has picked up a maintainer, so this is probably safe.
> generation). I really like the FormEncode encoding approach for multi
> input fields ( variableencode )
Although I don't think it's Py3 compat, not sure if that's on the radar.
> - PyQuery
Haven't used it.
> - BeautifulSoup
This got a release recently which is Py3 compat.
That's me(the new maintainer -- also David Stanek). Py3 compatibility is on the radar, but we haven't had time to get fully through the bug or the docs backlog. We will be at Pycon and we are planning on sprinting: https://us.pycon.org/2012/community/sprints/projects/On Sat, Feb 11, 2012 at 6:58 AM, Chris McDonough <chr...@plope.com> wrote:
FormEncode has picked up a maintainer, so this is probably safe.
Although I don't think it's Py3 compat, not sure if that's on the radar.
BeautifulSoup can handle bad HTML better. If your HTML files are
coming from a third party and you can't control their quality, it may
be better to use BeautifulSoup than get an exception. I have an
application with an online glossary, and the glossary is maintained by
another person using some visual tool. So when I get an update, I use
BeautifulSoup to parse it.
--
Mike Orr <slugg...@gmail.com>
Not sure what you're trying to optimize for. What does "lightweight"
mean in this (or really any) context? If lightweight means "fast",
there's no way tempita is appreciably faster than any of mako,
chameleon, or jinja2, and it's likely much slower.
> > - PasteScript: we have a bunch of code generation utilities
> that are
> > done using PasteScript.
>
>
> If it's only about creating Pyramid scaffolding, Pyramid now
> has code
> generation facilities built in to it. See
> http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/scaffolding.html
>
>
>
>
> Is this api compatible with pastescript code generation or will it
> require a fair bit of retooling? I gather you are replacing
> pastescript because of the maintenance/documentation/python3
> situation?
Yes. It's pretty close to compatible. The docs explain what needs to
change.
- C
The way the glossary works, in case anyone is interested, is I parse
the terms and definitions out of the HTML file and put them in a data
structure (currently a pickle file, but I think the next version will
have a database table). I sort them into first-letter groups
(capitalized), and make a page for each letter.
The definitions sometimes contain cross-references to other terms. I
got the maintainer to use an agreed format for cross-reference anchors
(<a href="LETTER#term-lowercase-with-hyphens"> I think), and then I
just keep the anchors in the definitions.
--
Mike Orr <slugg...@gmail.com>
On Sat, 2012-02-11 at 12:55 -0800, Iain Duncan wrote:
> >
> > - Tempita: our form/field generating system uses tempita as
> a light
> > fast template language for tiny templates, this could be
> replaced
>
>
> Almost any other templating system would be better here as
> tempita is
> unmaintained. Any of Mako, Jinja2 or Chameleon would work;
> each is Py3
> compat.
> If it's only about creating Pyramid scaffolding, Pyramid nowYes. It's pretty close to compatible. The docs explain what needs to
> has code
> generation facilities built in to it. See
> http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/scaffolding.html
>
>
>
>
> Is this api compatible with pastescript code generation or will it
> require a fair bit of retooling? I gather you are replacing
> pastescript because of the maintenance/documentation/python3
> situation?
change.
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.