Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-15 Thread Tom Willis
sqlalchemy core is a better option than going straight to the driver imo. And you can call postgresql functions from the session, however if you are using pyramid transaction and zope.sqlalchemy you will want to get in the habit of marking the transactions as changes were made for the functions

Re: [pylons-discuss] Rendering a deform form with a template, but placing nodes inside of HTML tags

2018-07-17 Thread Tom Andrews
at you're looking for. > > IIRC the button is also just an ordinary field of the form, which can be > rendered the same way. > > > HTH, > Andreas > > On 17 Jul 2018, at 13:17, Tom Andrews wrote: > > > I'm trying to construct a treeview-like structure with ch

Re: [pylons-discuss] Rendering a deform form with a template, but placing nodes inside of HTML tags

2018-07-17 Thread Tom Andrews
> http://deformdemo.repoze.org/checkboxchoice/ > > The templates for such widgets use Chameleon for templating. > I'm not fluent in Chameleon, so hopefully someone else can fill > in the blanks. > > --steve > > > On 7/17/18 at 4:17 AM, schrot...@web.de (Tom Andrews)

[pylons-discuss] Rendering a deform form with a template, but placing nodes inside of HTML tags

2018-07-17 Thread Tom Andrews
Hello, I'm trying to construct a treeview-like structure with checkbox widgets from deform and have all of the checkboxes as part of one form. If I just render the form normally and pass the generated html to my template, I'll obviosuly not get the structure I want. So far I've tried to pass

Re: [pylons-discuss] [off-topic] The Case Against Python 3

2016-11-24 Thread Tom Lazar
I can literally +1 *all* of the previous replies. Sent from a phone, please excuse the brevity. > On 24 Nov 2016, at 15:08, John Anderson wrote: > > For the last 2 years every project I've worked on has been Python3 only. At > SurveyMonkey we had ~60 different services and

[pylons-discuss] Re: Tuning the number of waitress threads for production

2016-03-12 Thread Tom Wiltzius
Thank you both for the information! It sounds like there isn't any significant downside the increasing the number of waitress threads beyond the number of available CPU cores if we expect them to be I/O bound rather than CPU bound. Is that true? I will investigate our nginx configuration;

[pylons-discuss] Tuning the number of waitress threads for production

2016-03-11 Thread Tom Wiltzius
n references greatly appreciated! Thanks, Tom [1] http://docs.pylonsproject.org/projects/waitress/en/latest/design.html [2] https://groups.google.com/d/topic/pylons-discuss/cC5Thn4fvyE/discussion -- You received this message because you are subscribed to the Google Groups "pylons-discuss&qu

Re: [pylons-discuss] what is the ideal way to connect to postgresql using alchemy scaffold

2015-12-14 Thread Tom Lazar
> On 14 Dec 2015, at 04:40, kk wrote: > > Hello all, > I am going to use Postgresql in my Pyramid REST ap[app. > I wish to know what is the most ideal way of securing my database? there is nothing pyramid specific in securing your database connection. > What I wish to know

Re: [pylons-discuss] pyramid or repoze.who for auth auth middleware?

2015-07-16 Thread Tom Lazar
consider using a JWT plus custom AuthenticationPolicy approach again in the future. hope that helps, tom On 16 Jul 2015, at 21:34, Iain Duncan iainduncanli...@gmail.com wrote: Hi folks, just getting back into Pyramid and Python after a long absence of being an Angular dev. I'm going

Re: [pylons-discuss] Re: what's replaced colander/deform/etc

2015-06-15 Thread Tom Lazar
FTR same here. although for a next project i will give wichert’s toolkit a spin. it looks cleaner and with less moving parts. cornice sometimes seems to get a bit in the way. but otherwise we’re happy with it, too. hth, tom On 14 Jun 2015, at 20:50, Vincent Catalano vinc

Re: [pylons-discuss] manage.py equivalent?

2015-06-01 Thread Tom Lazar
i heartily second that suggestion. click is a joy to work with! On 01 Jun 2015, at 14:00, Oliver dief...@gmail.com wrote: If you want a really easy framework for managing script options and so on, I recommend http://click.pocoo.org On 01.06.2015 12:08, Chris Withers wrote: On 01/06/2015

Re: [pylons-discuss] Webtest NoSectionError

2015-05-29 Thread Tom Lazar
, tom On 29 May 2015, at 16:47, Brian Looker look...@uwosh.edu mailto:look...@uwosh.edu wrote: I've encountered a NoSectionError while trying to test my Pyramid project, and I haven't been able to figure out why. I have successfully used ConfigParser with the interpreter to read my .ini file

Re: [pylons-discuss] Re: Connection issue with redis_session

2015-05-16 Thread Tom Lazar
FWIW we've been using 'regular' cookies with content encrypted by http://pythonhosted.org/itsdangerous/ for many projects now. Works like a charm. Sent from a phone, please excuse the brevity. On 16.05.2015, at 01:58, Jonathan Vanasco jonat...@findmeon.com wrote: Sorry a bit confused

Re: [pylons-discuss] Re: trypyramid.com and python 2.x

2015-05-10 Thread Tom Lazar
Great explanation! We should include it on the site... Sent from a phone, please excuse the brevity. On 10.05.2015, at 02:45, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/09/2015 08:02 PM, Mike Orr wrote: I don't know what by artisans is

Re: [pylons-discuss] WebTest functional testing

2015-02-11 Thread Tom Lazar
have you looked into pytest’s parametrize feature? sounds like it could apply to your case… http://pytest.org/latest/parametrize.html http://pytest.org/latest/parametrize.html hth, tom On 11 Feb 2015, at 21:12, Robert Daniels robertdaniels2...@gmail.com wrote: I am testing some code

Re: [pylons-discuss] Dynamically-generated PDF to download

2015-01-30 Thread Tom Lazar
Fyi I've had good experiences using phantomjs Sent from a phone, please excuse the brevity. On 25.01.2015, at 18:17, Wichert Akkerman wich...@wiggy.net wrote: On 25 Jan 2015, at 14:40, Adam Morris adam.mor...@igbis.edu.my wrote: Okay, I get that bit now, and coded it up, but when I go

Re: [pylons-discuss] Verifying user password

2015-01-13 Thread Tom Lazar
scope to assigning the Verified role, perhaps in a custom callback. just a quick thought, hope it helps. cheers, tom On 12 Jan 2015, at 22:33, Theron Luhn the...@luhn.com wrote: I'm working on authorization+authentication for my webapp. The login has a remember feature so users don't

Re: stable and security upgrade

2013-08-05 Thread Tom Lazar
Basically there are two popular approaches: either pip + requirements.txt or buildout + versions.cfg. Googling those should give you a good starting point :-) Sent from a phone, please excuse the brevity. On 05.08.2013, at 16:11, wilk w...@flibuste.net wrote: Hi, I'm testing pyramid with

Re: Storing settings on module level -- bad idea?

2012-02-01 Thread Tom Lazar
Amen, brother! Sent from a phone, please excuse the brevity. On 01.02.2012, at 09:03, Rob Miller r...@kalistra.com wrote: These are reasonable points to make. But Pyramid is explicitly not trying to be the same thing that either Django or Rails is trying to be. Those are what we call

Re: Storing settings on module level -- bad idea?

2012-01-31 Thread Tom Lazar
convenient access to a request. sorry for rambling, i guess, i'm (ab-)using the list for rubberducking... :) tom - C -- 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

Re: Storing settings on module level -- bad idea?

2012-01-31 Thread Tom Lazar
, tom regards robert On Tue, Jan 31, 2012 at 12:30 PM, Tom Lazar t...@pyfidelity.com wrote: On 31.01.2012, at 05:48, Chris McDonough wrote: I think it might be significantly better to just create a settings.py module in your app and put stuff in there instead of in your config file hm, i

Re: Storing settings on module level -- bad idea?

2012-01-31 Thread Tom Lazar
was in poor (or no) design of what needs to be done where. once i re-arranged the furniture, the problem went away. passing the request around seems the right thing™ to do. at least now i know *why* instead of just blindly cargo-culting :) cheers, tom - C -- You received

Re: Storing settings on module level -- bad idea?

2012-01-31 Thread Tom Lazar
involved, no wsgi app instantiated! That object might be an environment in which code executes. in my case that's an instance of a 'dropbox' class that receives a root path in its init. i'm actually rather happy with how it turned out :) tom \malthe -- You received this message

Storing settings on module level -- bad idea?

2012-01-30 Thread Tom Lazar
config.make_wsgi_app() and henceforth wherever i need access to the settings: from myapp import settings ... settings['myapp.foo'] is this a bad idea? it seems 'dirty' but it would keep my tests and code significantly leaner... any opinions? cheers, tom -- You received this message because you

Re: ATTN: Please keep general discussion on pylons-discuss

2011-03-15 Thread Tom Ekberg
Ben, Thank you for your reasoned response. I am fairly new to Pylons, and so was only aware of the pylons-discuss news group. I'll be looking at the pylons-devel to see of others have encountered the situation I am having. --tom On Tue, Mar 15, 2011 at 1:01 PM, Ben Bangert b...@groovie.org

Re: best hosting services for Pylons

2010-08-14 Thread tom . willis
I am very happy with webfaction for what it's worth. From My Phone -Original Message- From: Eric ericrasmus...@gmail.com Sender: pylons-discuss@googlegroups.com Date: Sat, 14 Aug 2010 18:08:22 To: pylons-discusspylons-discuss@googlegroups.com Reply-To: pylons-discuss@googlegroups.com

Re: Building EGGs

2009-11-10 Thread tom . willis
python setup.py sdist has given me the most benefit. I think this is ok, unless you have platform specific c code or something. Sent from my BlackBerry device from Cincinnati Bell Wireless -Original Message- From: gsandorx gsand...@gmail.com Date: Tue, 10 Nov 2009 07:33:10 To:

Re: Routing to controllers in subdirectories

2009-09-23 Thread Tom Blackmore
Thanks Mike works like a dream. 2009/9/23 Mike Orr sluggos...@gmail.com On Wed, Sep 23, 2009 at 1:00 PM, Tom B tablackm...@gmail.com wrote: I need to get at the routing to do some fancy stuff. When I alter the routing to the following: map.connect('/services/foo/bar', controller

Re: Authkit vs repoze.who for openid

2009-07-18 Thread Tom Longson (nym)
This is exactly the reason I would use django for my next big project. Much better openid support, like with django-clickpass. I hear repoze.what is making progress with .who but I believe the user base is still pretty small. Cheers, Tom Longson (nym) -- http

Re: Web technologies and pylons in the real world

2009-07-16 Thread Tom Longson (nym)
I think the relative number of django apps in the wild vs pylons apps is a good indicator of how easy it is to get something launched. Not that I don't 3 pylons, but django's developer base speaks for itself. Either that, or pylons needs a marketing campaign with a pony or something. Cheers, Tom

Re: Web technologies and pylons in the real world

2009-07-15 Thread Tom Longson (nym)
I know people here won't like me saying this, but I recommend looking at Django. If you have real heavy lifting on ORM, it's not as good, but for 98% of the time Django is easier to develop in than Pylons. Cheers, Tom Longson (nym) -- http://tomlongson.com On Wed

Paster Shell Not Known

2009-05-19 Thread Tom Longson (nym)
', paster_plugins.txt is created. Nevertheless, running 'paster shell' gives me the same old message: Command 'shell' not known (you may need to run setup.py egg_info) Any help would be really appreciated! Cheers, Tom Longson (nym) --~--~-~--~~~---~--~~ You

Re: Repoze.what Implementing permission system based on reputation

2009-04-23 Thread Tom Longson (nym)
This reminds me of http://everything2.com/ (if you haven't been there, check it out already!) Good stuff guys! Cheers, Tom Longson (nym) - Tackle Human Dilemmas. http://stopthespin.com/ On Thu, Apr 23, 2009 at 7:38 AM, Gustavo Narea m...@gustavonarea.net

Re: updating database schema

2009-04-22 Thread Tom Longson (nym)
, Tom Longson (nym) - Tackle Human Dilemmas. http://stopthespin.com/ On Wed, Apr 22, 2009 at 7:21 AM, Wichert Akkerman wich...@wiggy.net wrote: Previously Ross Vandegrift wrote: On Wed, Apr 22, 2009 at 12:36:09AM -0700, Richard Jones wrote: Is there a way

Re: Web based email sql admin for Pylons?

2009-03-24 Thread Tom Longson (nym)
Sounds like you want Django or Drupal. Pylons is lightweight, which means these things are up to you. There's no administrative backend. Cheers, Tom Longson (nym) - Tackle Human Dilemmas. http://stopthespin.com/ On Tue, Mar 24, 2009 at 2:43 PM, Kevin Ar18

Re: Catch unimplemented action

2009-03-23 Thread Tom Longson (nym)
Check out the ErrorController (controllers/error.py). Here's more information on error handling in Pylons: http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents Cheers, Tom Longson (nym) - Tackle Human Dilemmas. http://stopthespin.com/ On Mon, Mar 23

Re: 'who is online' feature

2009-03-10 Thread Tom Longson (nym)
On stopthespin.com (my pylons site) we track whoever last logged on. It's not quite what you're asking for, but a cheap way to get a similar result. Cheers, Tom Longson http://stopthespin.com/ On Tue, Mar 10, 2009 at 9:54 AM, Jonathan Vanasco jonat...@findmeon.com wrote: that would be a bit

Re: Problem with javascript content files loaded three times.

2009-03-10 Thread Tom Longson (nym)
be a pylons issue at all. Cheers, Tom Longson http://stopthespin.com/ On Tue, Mar 10, 2009 at 6:12 AM, Marc Lagrange marko...@gmail.com wrote: Hi, I load my javascripts files via: script type=text/javascript src=/js/jquery-1.2.6.min.js/script script type=text/javascript src=/js/jajax.js/script

Re: Clickpass?

2009-02-25 Thread Tom Longson (nym)
I think the point of clickpass is to create a system that is easy for anyone to use, instead of something that just confuses users. Tom Longson On Wed, Feb 25, 2009 at 12:22 PM, Dalius Dobravolskas dalius.dobravols...@gmail.com wrote: Tom Longson (nym) wrote: Has anyone had experience

Re: Pylons vs Thundercats

2009-01-30 Thread Tom Longson (nym)
Thundercats for the win, no question. On Fri, Jan 30, 2009 at 10:01 AM, Jonathan Vanasco jvana...@gmail.com wrote: If we're going to make ridiculous comparisons, I vote for a thread on this one. --~--~-~--~~~---~--~~ You received this message because you

Re: Pylons vs Thundercats

2009-01-30 Thread Tom Longson (nym)
On Fri, Jan 30, 2009 at 11:26 AM, Tycon adie...@gmail.com wrote: How many request per seconds can the thundercats serve ? Old thundercats or new thundercats? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Help Installing pylons on Vista

2009-01-16 Thread Tom Longson (nym)
I've been reading the book today and really dig it. I recommend picking it up and giving it a go. Tom Longson http://truefalsemaybe.com/ On Thu, Jan 15, 2009 at 11:19 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Jan 15, 2009 at 10:47 PM, Steve smill...@gmail.com wrote: I have python 2.5

Re: Flickr tutorial under 0.9.7?

2008-12-15 Thread Tom Longson (nym)
middleware entirely. I also strongly suggest using Google's AJAX API http://code.google.com/apis/ajaxlibs/documentation/index.html to serve up prototype and scriptaculous since it is already on their CDN, and is already cached by many people's browsers. Tom Longson (nym) http://truefalsemaybe.com/ On Mon

Re: Flickr tutorial under 0.9.7?

2008-12-15 Thread Tom Longson (nym)
Yes Rod, that's my understanding. This comment from a Google employee seems to support that opinion: http://code.google.com/p/google-ajax-apis/issues/detail?id=50#c44 They purposely did not include the ext javascript library because of concern for commercial users. Tom Longson (nym) http

Re: auth and auth

2008-11-24 Thread Tom Longson (nym)
I've implemented repoze.who in one app so far. It was a bit difficult at first, but from my understanding is getting easier. I wrote a very simple tutorial at http://truefalsemaybe.com/2008/06/authorization-in-pylons-with-repozewho-part-1-htaccess/ I imagine I will write a followup soon, as I

'+' in URL not getting stripped away like '%20'

2008-06-19 Thread Tom
I've come across an issue involving the use of '+' and '%20' for representing spaces in a URL. Many apps treat the plus sign and the %20 code the same, however pylons does not. Lets say you have a def which takes in one argument, lets call it 'title', sets it as c.title, and a mako template

Re: '+' in URL not getting stripped away like '%20'

2008-06-19 Thread Tom
() in the second one or adding str() to the first one did not work. On Jun 19, 1:28 pm, Tom [EMAIL PROTECTED] wrote: I've come across an issue involving the use of '+' and '%20' for representing spaces in a URL. Many apps treat the plus sign and the %20 code the same, however pylons does not. Lets say you