Re: [pylons-discuss] Velruse… or what else?

2019-06-07 Thread Christian Ledermann
https://github.com/python-social-auth/social-app-pyramid may be worth a try
(I used https://github.com/python-social-auth/social-app-django with great
success)

On Fri, 7 Jun 2019 at 08:38, Jens Troeger  wrote:

> Thank you Michael for sharing your insights here. I’ve looked through some
> of the code but, as you said, the testing looked rather daunting to me.
>
> On top of that, it's actually really easy (imo) to consume OAuth 2.x +
>> OpenID Connect apis directly. Most bindings for velruse end up being just a
>> very thin wrapper around a small amount of code you can easily write
>> yourself. It basically just involves implementing a redirection endpoint
>> that the provider will send the browser to once the user has granted
>> access, and from there taking the token and querying whatever you want from
>> the provider's api. OpenID Connect has helped a lot in standardizing the
>> type of data you'd want to receive - something velruse was trying to
>> standardize before that standard existed.
>>
>
> This statement of yours aligns nicely with my thoughts/suspicion that
> perhaps I ought to drop Velruse altogether, and instead use an OAuth2
> package to talk with the providers directly. The website uses only Google,
> LinkedIn, Live anyway (and I’m thinking to add Apple now) and they all—I
> think—speak OAuth2.
>
> The recent OAuth thread
> <https://groups.google.com/forum/#!topic/pylons-discuss/eMWVq8QYM3M>
> recommends requests-oauthlib
> <https://github.com/requests/requests-oauthlib>… Can you recommend any
> particular package, is the that one good?
>
> Much thanks!
> Jens
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pylons-discuss/d1292058-f1d9-48a7-8068-e5f290199bf8%40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/d1292058-f1d9-48a7-8068-e5f290199bf8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CABCjzWooFFaNcCCJnDOvxv13N594J8H0sUVo%2Bc%3DWq55MTEo1SA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pylons-discuss] Porting a ZOPE (2.13) application into PYRAMID

2017-09-20 Thread Christian Ledermann
may be a little OT here, still worth a read in this context
https://www.martinfowler.com/bliki/StranglerApplication.html

On 19 September 2017 at 15:10, Brian Sutherland  wrote:
> On Thu, Sep 14, 2017 at 11:05:17PM +0300, Mikko Ohtamaa wrote:
>> Hi Roberty,
>>
>> You are right; Pyramid is your best bet. Pyramid community knows ho to
>> interact with ZODB and Chameleon is prettty close to ZPT.  I would suggest
>> continuous migration approach, where you start moving views to a Pyramid
>> server URL by URL, using some kind URL map on the front end web server
>> (nginx?)
>
> We are just finishing something like this and took a slightly different
> approach:
>
> * Serve Zope and pyramid via WSGI within one process
> * Use something like the paste.cascade middleware to first attempt
>   pyramid and on a 404 fallback to Zope.
> * Stash the pyramid request inside the WSGI environment to make it
>   available from within Zope. That way you can change helper
>   functions slowly to use the pyramid request and not need 2
>   implementations.
>
> Having the "use Zope if pyramid returns a 404" is probably the best part
> of that, you can replace urls with equivalent implementations slowly
> without breaking links.
>
>> -Mikko
>>
>> On 14 September 2017 at 19:12,  wrote:
>>
>> > Hello to everybody,
>> > I have an alive application running in (on) ZOPE 2.13.
>> > We are maintaining the application with linux virtual machines running
>> > python 2.7 and ZOPE 2.13.
>> >
>> > Here are a summary description of the objects present in ZODB:
>> > - 335 pages are written in *ZPT *(Zope Page Template)
>> > - 230 pages are still written in *DTML *=> we are (slowly) rewriting them
>> > in *ZPT*
>> > - 123 javascript (*DTML *Document type) scripts
>> > - 919 python scripts
>> > - 421 *ZSQL *scripts => we are (slowly) moving SQL queries on server side
>> >
>> > Moreover, we use *ZOPE Extensions* to call *external *services that are
>> > - called through XML/RPC protocol
>> > - 80% provided by a python business application server
>> > - 20% provided by a java-tomcat business application server
>> >
>> > Since ZOPE is dead, or so it seems (at least as own product),
>> > I'm looking for a little-painful-solution to run away from ZOPE.
>> >
>> > My idea was keeping the 2 business server python and java and porting only
>> > the ZOPE stuff in another python framework.
>> >
>> > I thought that PYRAMID could do the job, expecially if I could port easily
>> > the *ZPT *pages to CAMELEON.
>> >
>> > Can anybody give any suggestion?
>> >
>> > Thank you very much,
>> > Roberto Vivarelli
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "pylons-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an
>> > email to pylons-discuss+unsubscr...@googlegroups.com.
>> > To post to this group, send email to pylons-discuss@googlegroups.com.
>> > To view this discussion on the web visit https://groups.google.com/d/
>> > msgid/pylons-discuss/1483d157-bcca-4530-95e6-f886845d9e6f%
>> > 40googlegroups.com
>> > <https://groups.google.com/d/msgid/pylons-discuss/1483d157-bcca-4530-95e6-f886845d9e6f%40googlegroups.com?utm_medium=email&utm_source=footer>
>> > .
>> > For more options, visit https://groups.google.com/d/optout.
>> >
>>
>>
>>
>> --
>> Mikko Ohtamaa
>> http://opensourcehacker.com
>> http://twitter.com/moo9000
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "pylons-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to pylons-discuss+unsubscr...@googlegroups.com.
>> To post to this group, send email to pylons-discuss@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUv8okEsC7_YBBw8kceuzYCy6P7m7X8x2_soBKRy7ky-_Q%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> Brian Sutherland
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this grou

Re: [pylons-discuss] Removing whitespace from chameleon templates

2015-06-11 Thread Christian Ledermann
try the diazo middleware, iirc there is an example how to remove
whitespace and comments

On 11 June 2015 at 13:42, Brian Sutherland  wrote:
> We're using Chameleon quite a bit. I was wondering if there were an
> option to remove whitespace between HTML elements at compile time?
>
> Google fails me on this, but it seems that the right place is at compile
> time as opposed to removing it afterward with some wsgi middleware (for
> example 
> http://htmlmin.readthedocs.org/en/latest/reference.html#wsgi-middlware)
>
> --
> Brian Sutherland
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.



-- 
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.


[pylons-discuss] Running a Plone product on Substance D

2014-11-01 Thread Christian Ledermann
Plone Conference 2014 - Running a Plone product on Substance D - Eric Bréhault

https://vimeo.com/110590834

-- 
Best Regards,

Christian Ledermann

London - UK
Mobile : +44 7474997517

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.


Re: [pylons-discuss] Re: Working with an existing MS Access database

2014-05-23 Thread Christian Ledermann
migrate the backend from access to say postgresql (or another db server)
connect pyramid and access to this serverdb.
his does obviously only work if he can connect to the db server from the
access application (so not from his notebook on the road)



On Fri, May 23, 2014 at 2:02 PM, wilk  wrote:

> On 23-05-2014, tonthon wrote:
> > Hi,
> >
> > One of our customers is using an access database with a desktop
> > application as an internal solution.
> > We'd like to provide him a web access handling the same datas, but he's
> > tied to his desktop app.
> >
> > How would you handle this situation ?
>
> I use pyodbc, directly without orm.
>
> --
> William
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Best Regards,

Christian Ledermann

London - UK
Mobile : +44 7899488511

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.


Re: [pylons-discuss] tutorial or open source projects that uses Pylons?

2014-04-02 Thread Christian Ledermann
You may also want to have a look at kotti
http://kotti.pylonsproject.org/

It uses Chameleon templates, sqlalchemy, traversal and has a very good
implementation of authorization complete with local roles


On Wed, Apr 2, 2014 at 6:00 AM,  wrote:

> Thank you, Paul! I am running the wiki tutorial, based on this URL:
> http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/index.html.
> That seems to be based on 1.4.5, not as new as your link. I'd love to read
> your refreshed one.
>
> I am experimenting creating a users table in database, and have code to
> authenticate user and support ACL backed by the table. So far so good.
>
>
> On Tuesday, April 1, 2014 6:52:50 AM UTC-7, Mário Idival wrote:
>
>> I created a tutorial (a schedule), uses a bit of SQLAlchemy, some
>> comments are on en, but Python is universal:)
>>
>> SqlAlchemy + Jinja2
>>
>> https://github.com/GruPy-RN/agenda_pyramid
>>
>> Mário Idival
>>
>> *Twitter *: *@marioigd*
>> *Facebook*: *mario.idival*
>> *User Linux : **#554446*
>> Skype*: marioidival*
>>
>>
>> 2014-04-01 8:11 GMT-03:00 Paul Everitt :
>>
>>>
>>> Here is a rewrite of the tutorial which goes into more depth,
>>> section-by-section:
>>>
>>>   http://docs.pylonsproject.org/projects/pyramid/en/
>>> master/quick_tutorial/index.html
>>>
>>> It has a little more on authentication and authorization and is aimed at
>>> Jinja2. It might still be too light for your needs. I'd also like to do
>>> some rewriting and condensing on it at some point before, say, next
>>> Wednesday afternoon at 1PM. :)
>>>
>>> On question 3, I've seen other tutorials that do the table setup
>>> implicitly on first startup, or (as you mentioned) just tell you to execute
>>> some command-line tool. I'm not sure what people prefer. Doing it in the
>>> framework means you inherit some configuration.
>>>
>>> --Paul
>>>
>>> On Mar 30, 2014, at 8:02 PM, acces...@gmail.com wrote:
>>>
>>> Newbie to Pylons (in fact, fairly new to Python). Lots of programming
>>> experiences in Java, C++ and Objective-C though.
>>>
>>> Still learning Pylons and I found the wiki tutorial is excellent.
>>> However, there are a few areas that I am interested:
>>> 1. the wiki tutorial is a bit light on authentication and authorization.
>>> 2. I'd like to see how Jinja2 template system is being used.
>>> 3. database side: I am a little confused by the flow. Is it more typical
>>> to have a different tool or even just via SQL DDLs to create
>>> tables/indexes/relationship first, rather than using initializedb.py to
>>> create those tables?
>>>
>>> Could you please recommend some other tutorials or open source projects
>>> for me to study the above?
>>>
>>> Thanks!
>>>
>>> (PS: I picked Pylons over Django, because I always love to go to a bit
>>> low-level and believe in the long run it is better than doing everything
>>> under the constraint of a framework that is less customizable.)
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "pylons-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to pylons-discus...@googlegroups.com.
>>> To post to this group, send email to pylons-...@googlegroups.com.
>>>
>>> Visit this group at http://groups.google.com/group/pylons-discuss.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "pylons-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to pylons-discus...@googlegroups.com.
>>> To post to this group, send email to pylons-...@googlegroups.com.
>>>
>>> Visit this group at http://groups.google.com/group/pylons-discuss.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-di

Re: I look for a standalone hash and check password library which follow « Password Storage» of Mozilla Security Guilines

2013-09-17 Thread Christian Ledermann
have a look at https://github.com/Pylons/shootout (using bcrypt)
or https://github.com/cleder/liches (salted bcrypt password hash)



On Tue, Sep 17, 2013 at 12:34 PM, Stéphane Klein
 wrote:
> Le 17/09/13 11:27, Jesaja Everling a écrit :
>> Hi Stephane,
>>
>> I'm not familiar with the Mozilla password hashing guidelines or the
>> two libraries you found, but have used this package for bcrypt:
>>
>> https://pypi.python.org/pypi/py-bcrypt
>>
>> hmac is part of the standard library, so you should be able to do
>> "import hmac" without having to install anything.
>>
>
> Thanks but I look for a "complete" library with hash password et check 
> password
> functions.
>
> Best regards,
> Stephane
> --
> Stéphane Klein 
> blog: http://stephane-klein.info
> Twitter: http://twitter.com/klein_stephane
> cv: http://cv.stephane-klein.info
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.


Re: OAuth and OpenID on Pyramid made simple with Authomatic

2013-07-22 Thread Christian Ledermann
nice :)

On Tue, Jul 16, 2013 at 4:50 PM, Peter Hudec  wrote:
> Hi everyone,
>
> I have written a simple tutorial about how you can use the Authomatic
> package to authenticate users with OAuth and OpenID in a Pyramid
> application.
> http://peterhudec.github.io/authomatic/examples/pyramid-simple.html
>
> Peter
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Traversal example

2013-07-18 Thread Christian Ledermann
http://kotti.pylonsproject.org/

On Thu, Jul 18, 2013 at 11:49 AM, Arndt Droullier  wrote:
>
>> Are there good open-source examples of large Pyramid projects using
>> traversal?  I'd like to see how other people are laying out their projects.
>
> Here is another project: http://cms.nive.co
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Scam-proof pageviews with Pyramid?

2012-12-16 Thread Christian Ledermann
look at:
http://pypi.python.org/pypi/collective.piwik.now/
http://pypi.python.org/pypi/collective.piwik.pageviews/

not a lot of plone specific code in there, should be easy enough to
port

On Mon, Dec 17, 2012 at 1:23 AM, Zak  wrote:
> I didn't know Google Analytics had that feature. Thanks for the suggestion.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/100qC0fyDToJ.
>
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discuss+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.



-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
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 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: Good form library for pyramid ? Better doing it by hand ?

2012-12-06 Thread Christian Ledermann
sound nice I give it a try :)

On Thu, Dec 6, 2012 at 12:35 PM, Malthe Borch  wrote:
> Hey Nicolas,
>
> I had a realization at some point that form libraries ultimately
> aren't a joy to work with.
>
> Instead, I wrote `repoze.formapi` (see docs at 
> http://docs.repoze.org/formapi/).
>
> It basically just helps you validate input and help with error
> reporting, but it doesn't know about HTML at all – you simply write
> your own.
>
> For instance, in my application we have a page type which is basically
> just a document:
>
> The "page form" template (written in Chameleon's page template language):
>
>http://pastie.org/5487945
>
> The `form` variable in here is a `repoze.formapi.Form` object.
>
> The markup is based on Twitter's Bootstrap.
>
> Note that there's a bit of Javascript in there which automatically
> generates and displays a human-readable URL fragment id based on the
> provided page title.
>
> The template also demonstrates how to set up a simple checkbox.
>
> \malthe
>
> On 6 December 2012 10:27, Nicolas Di Pietro
>  wrote:
>> Hi All,
>>
>> I'm pretty new in the Pyramid world and still in the learning process.
>>
>> My question is about the forms generation and validation libraries, is there
>> a really good one usable with Pyramid AND with good documentation ? For the
>> few last days, I was trying pretty hard to have something working with some
>> of those libraries but I'm at the point where nothing works like I would
>> like.
>>
>> I've tried Deform but I really have problems with the errors, I mean, I find
>> pretty hard to define customized error messages, i.e., you want to generate
>> a login page, this login page must be able to display an error message above
>> the box if the user/password combination is not valid (or another error is
>> occuring). It's pretty easy to get rid of the huge box above the form (There
>> was a problem with your submission, Errors have been highlighted
>> below)(changing the template used), but I'm not able to replace this box by
>> a customized error message that can depend of the error (and keeping also
>> the individual messages for each field (i.e: Required) or changing easily
>> those individual error messages.
>>
>> I've also tried the ToscaWidget2 Lib, the problem I had with this one are:
>> I'm not able to use the i18n, I'm not able to get the tooltips on the fields
>> and the doc is not very very useful (or complete :'( )
>>
>> I've also tried another one (don't remember, I think it was WTForms) but if
>> I remember well, I had problems also with the i18n.
>>
>> So, as I'm loosing a lot of time (let's say about 3-4 days) trying the
>> different libraries, reading the docs, reading the sources (i.e., trying to
>> understand what are the possible parameters for TW2 widgets), and not having
>> exactly what I want, I ask to the list, do you know about a form generation
>> and validation lib, with support for i18n, easy error customization, and
>> ability to use all (or almost all) html attributes (i.e. the title attribute
>> to have tooltips in recent browsers).
>>
>> If some of you don't use at all such a library, do you have a good pointer
>> to resources to validate input in a safe and clean way by hand ?
>>
>> Thank a lot for your comments and ideas.
>>
>> Have a nice day,
>>
>> Nicolas
>>
>> PS: maybe I missed the features of deform and tw2 (and WTForms), I'm sorry
>> if I offense the different authors of those libs and even if what I
>> want/need is not in their libs, I want to say thanks for each bit of the
>> open-source ecosystem.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-discuss" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/pylons-discuss/-/sXm8e2r1R-IJ.
>> To post to this group, send email to pylons-discuss@googlegroups.com.
>> To unsubscribe from this group, send email to
>> pylons-discuss+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-discuss?hl=en.
>
>
>
> --
> Au revoir, et tous mes voeux pour un avenir plein de succès et de bonheur ––
>
> Malthe Borch
> mbo...@gmail.com
>
> --
> 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