Re: Pylons 0.9.2 and Cheetah

2006-09-25 Thread Shannon -jj Behrens
On 9/25/06, Robert [EMAIL PROTECTED] wrote: Bad news, folks, 0.9.2 has just broken the Cheetah support rather completely. The victim is AttribSafeContextObj class of util.py which is IMHO an awful hack by itself. The problem is, calling hasattr(a,*) on an AttribSafeContextObj-wrapped object

Re: exceptions.ImportError: No module named MySQLdb Help Please

2006-10-02 Thread Shannon -jj Behrens
On 9/28/06, Bucco [EMAIL PROTECTED] wrote: When I run pylons I get the following error when I try to load the page being served: exceptions.ImportError: No module named MySQLdb I have SQLObject installed on a Windows XP platform using python 2.4. Any ideas? Help Please. SQLObject is an

Re: automatic form widgets

2006-10-03 Thread Shannon -jj Behrens
On 10/3/06, Ian Bicking [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: I'm heading down the road of using Genshi to automatically populate form field values and error messages as described http://genshi.edgewall.org/wiki/GenshiRecipes/FormFilling. It sure would be nice

Re: FormEncode default checkbox Checked

2006-10-03 Thread Shannon -jj Behrens
Check the HTML source within your browser. Does it say what you wrote? Are you using FormEncode's htmlfill, and if so, is it setting default values for you? By the way, in my source, I use checked=checked as you originally said. Best Regards, -jj On 10/3/06, Muhammad [EMAIL PROTECTED] wrote:

Re: Setting the domain on the session cookie

2006-10-05 Thread Shannon -jj Behrens
On 10/5/06, Geoff Meredith [EMAIL PROTECTED] wrote: I was wondering if it is possible and what is the most appropriate way of setting the domain for the session cookie? I'm in a situation where I would like an authentication to be valid over a range of sub-domains but the session is

reflecting the schema with SQLAlchemy

2006-10-05 Thread Shannon -jj Behrens
Hi, I'm having a hard time reflecting a schema with SQLAlchemy. I get the following: == Error Traceback clear this clear this URL: http://localhost:5000/ Module pylons.error:224 in respond try:

Re: reflecting the schema with SQLAlchemy

2006-10-05 Thread Shannon -jj Behrens
On 10/5/06, Joe [EMAIL PROTECTED] wrote: On Thu, 2006-10-05 at 15:04 -0700, Shannon -jj Behrens wrote: I'm having a hard time reflecting a schema with SQLAlchemy. I get the following: [snip] meta = DynamicMetaData() users_table = Table('users', meta, autoload=True

Re: PrefixMiddleware

2006-10-06 Thread Shannon -jj Behrens
If I'm understanding the question correctly, I think it's common to mount an application at a certain path and proxy that to the real application behind Apache. Of course, it's also common to use Apache in front of multiple applications each with separate domain names instead of mounted as a

Re: the database 'connection' , metadata, and database.py

2006-10-06 Thread Shannon -jj Behrens
On 10/6/06, Joe [EMAIL PROTECTED] wrote: On Fri, 2006-10-06 at 12:48 -0400, John_Nowlan wrote: I understand the sqlalchemy concept that the tables and domain classes are different beasts but I think I'm still wrestling with them and the MVC paradigm that makes me think I'm searching

Re: Using SQLAlchemy with Pylons

2006-10-06 Thread Shannon -jj Behrens
On 10/6/06, Joe [EMAIL PROTECTED] wrote: Hi jj, On Fri, 2006-10-06 at 14:51 -0700, Shannon -jj Behrens wrote: Ok, that's it. I think we should make sure that people like Ben Bangert and Mike Bayer agree with my recommendations, and then perhaps we can update the wiki tutorial

Re: reflecting the schema with SQLAlchemy

2006-10-06 Thread Shannon -jj Behrens
From my limited understanding, it is not necessary to call create_engine() directly, to connect to the database. If you look at the example in http://www.sqlalchemy.org/docs/tutorial.myt, you'll see that although it first shows db = create_engine('sqlite:///tutorial.db') metadata =

my complete current URL

2006-10-09 Thread Shannon -jj Behrens
I need to redirect the user to a login server. I want to pass along my complete current URL. url_for doesn't include the hostname. What's the easiest (i.e. a single method call) way of getting the complete current URL (i.e. it takes care of http vs. https, the port, etc.)? Thanks, -jj -- The

Re: my complete current URL

2006-10-09 Thread Shannon -jj Behrens
Hmm, looks like this is what I want: from paste.request import construct_url print current url:, construct_url(request.environ) unless there's an easier way. -jj On 10/9/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: I need to redirect the user to a login server. I want to pass along my

Re: my complete current URL

2006-10-09 Thread Shannon -jj Behrens
On 10/9/06, Jon Rosebaugh [EMAIL PROTECTED] wrote: On 10/9/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: I need to redirect the user to a login server. I want to pass along my complete current URL. url_for doesn't include the hostname. What's the easiest (i.e. a single method call

Re: my complete current URL

2006-10-10 Thread Shannon -jj Behrens
On 10/9/06, Ben Bangert [EMAIL PROTECTED] wrote: On Oct 9, 2006, at 9:36 PM, Ian Bicking wrote: This has come up before. Should url_for have a fully_qualified keyword argument to do this? Yup, it should, its in the Routes trac as a ticket now. You might also want a global option so

Using SQLAlchemy with Pylons

2006-10-10 Thread Shannon -jj Behrens
I've added my notes to the wiki after incorporating all of your feedback: Using SQLAlchemy with Pylons: http://pylonshq.com/project/pylonshq/wiki/SqlAlchemyWithPylons If you update it, please send email to this list so that the rest of us can benefit from your improvements. Best Regards, -jj

Re: Secure File Download

2006-10-12 Thread Shannon -jj Behrens
I know nothing of this subject matter, but I'm guessing that lambda: f.close() could just be written f.close, unless I'm mistaken. -jj On 10/11/06, askel [EMAIL PROTECTED] wrote: def download(self): ... r = Request(mimetype='application/octet-stream') f = open(filename) r.content

Re: Using SQLAlchemy with Pylons

2006-10-13 Thread Shannon -jj Behrens
On 10/13/06, climbus [EMAIL PROTECTED] wrote: Shannon -jj Behrens napisal(a): I've added my notes to the wiki after incorporating all of your feedback: Using SQLAlchemy with Pylons: http://pylonshq.com/project/pylonshq/wiki/SqlAlchemyWithPylons If you update it, please send email

Re: long running task

2006-10-13 Thread Shannon -jj Behrens
On 10/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Jon Rosebaugh wrote: On 10/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm new to python and I am trying to implement a website which parses newsgroups for cooking recipes. My recommendation would be to write a

Re: Pylons and Genshi

2006-10-15 Thread Shannon -jj Behrens
On 10/15/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: Hello ppl. I'm specially interested in Genshi since I code some plugins for Trac and sooner or latter I'll have to learn how to use it. Since I've seen some Pylons users already using it, what I ask is, what needs to be

Re: Using SQLAlchemy with Pylons

2006-10-15 Thread Shannon -jj Behrens
On 10/14/06, Huy Do [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: On 10/13/06, Huy [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: I've added my notes to the wiki after incorporating all of your feedback: Using SQLAlchemy with Pylons: http://pylonshq.com/project

Re: SQLAlchemy sessions

2006-10-17 Thread Shannon -jj Behrens
On 10/17/06, Robert Ian Smit [EMAIL PROTECTED] wrote: I have a buch of controllers that define a __before__ method to attach a session as per the QuickWiki tutorial. Some methods on my mapped model classes require access to the database. I want to flush or discard all updates resulting from

Re: best way to create select list

2006-10-17 Thread Shannon -jj Behrens
On 10/17/06, Max Slimmer [EMAIL PROTECTED] wrote: Is there a simple yet elegant way to dynamically create a select list in a form. I have a referance table containing a list of possible choices and for some field, any example referance would be appreciated. A) select the choice values in the

Re: Foxmarks: We Just Launched!

2006-10-17 Thread Shannon -jj Behrens
, looking forward to trying on genshi...) On 10/17/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: Please forgive the shameless plug, but: http://jjinux.blogspot.com/2006/10/foxmarks-we-just-launched.html I thought twice about spam^H^H^H^Hnotifying you guys, but you may appreciate

configuring myghty_data_dir in .ini doesn't work

2006-10-18 Thread Shannon -jj Behrens
Hi, I'm trying to configure the myghty_data_dir in my production.ini file to be somewhere in /var, but it insists on creating the data directory in my current working directory: $ ls -R data data: templates data/templates: lock obj data/templates/lock: data/templates/obj: The session

Re: Pylons and Genshi

2006-10-20 Thread Shannon -jj Behrens
On 10/17/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Bangert wrote: I'll ask about maybe getting this ability to setuptools though, then for those not using Myghty that want to cut a package dependency here and there, an

Re: Upload Forget CMS

2006-10-24 Thread Shannon -jj Behrens
On 10/24/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: On 10/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm thinking about a simple yet useful app for managing various files (snip) Currently I'm gathering ideas and thinking how to make it as simple

Re: How to access request object? +minor rant/doc plea

2006-10-24 Thread Shannon -jj Behrens
On 10/24/06, John_Nowlan [EMAIL PROTECTED] wrote: I know this must seem simple to people out there so I'm hoping someone can set me straight. I'm clicking on the following link: http://127.0.0.1:5000/test/twbkwbis.P_GenMenu?name=bmenu.P_WebTailorMnu and in my controller trying to access

Re: Upload Forget CMS

2006-10-24 Thread Shannon -jj Behrens
On 10/24/06, bruno desthuilliers [EMAIL PROTECTED] wrote: Shannon -jj Behrens a écrit : On 10/24/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: On 10/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm thinking about a simple yet useful app for managing

Re: Choosing a web framework

2006-10-25 Thread Shannon -jj Behrens
On 10/25/06, Sandra-24 [EMAIL PROTECTED] wrote: I have a project that involves creating a browser-based interface. I use twisted in the project, so naturally a WSGI web framework that I can use with twisted.web2 is ideal. We use Twisted at my company, but because of the way asynchronous

Re: Choosing a web framework

2006-10-25 Thread Shannon -jj Behrens
On 10/25/06, Sandra-24 [EMAIL PROTECTED] wrote: Well that's certainly an option, I don't need speed at all (and I don't think twisted.web2 is particularily quick from a single connection point of view) To use a threaded server will require me to think about thread safety every time I connect

Re: problem with formbuild

2006-10-27 Thread Shannon -jj Behrens
On 10/27/06, ToddG [EMAIL PROTECTED] wrote: You mentioned not executed, but not what happens -- nothing (server hangs)? 500 server error? I assume you did this but maybe just changing that print statement to return Response(passed validation) or whatever? I'm not sure without looking

Re: ClearSilver Pylons: how?

2006-10-27 Thread Shannon -jj Behrens
On 10/26/06, bruno desthuilliers [EMAIL PROTECTED] wrote: Vit a écrit : Hello, Could someone share ideas/examples how to use ClearSilver together with Pylons? One of the problems with^Mfeatures of clearsilver is that it's a pure push templating system. This means you have to feed it

Genshi-specific validate decorator (was: Formencode - Form fields with multiple values)

2006-10-27 Thread Shannon -jj Behrens
On 10/27/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: I'm trying to find a way to validate a form where some of it's fields have multiple values. The fields(to name them) are mail_alias and forward_address, these are the ones that *can* get back multiple values. What I've

Re: Genshi-specific validate decorator (was: Formencode - Form fields with multiple values)

2006-10-30 Thread Shannon -jj Behrens
Yep, we're all heading down pretty much the same path. I'd just really like to see us all ending up with the same code instead of each having our own separate forks of this code. That means that some part of this stuff belongs in either Genshi or Pylons, unless I'm just confused. Happy Hacking

Re: Apache2 mod_python: HTTP Authentication: how to logout? timeout?

2006-10-31 Thread Shannon -jj Behrens
On 10/31/06, Chris Shenton [EMAIL PROTECTED] wrote: We're running Pylons (0.8.2, upgrading this week) behind Apache2 with mod_python. We use Apache for HTTPS and Digest authentication, works well. Except our customer says we need two features to satisfy our Security group? * A logout

Re: old plain db-api

2006-10-31 Thread Shannon -jj Behrens
On 10/31/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote: sotospeak wrote: I am totally new to Pylons and I would like to try it in a small project but without any orm just plain db-api. Still I was not able to find any tutorial about using Pylons this way Then you might be the one that

setting a cookie whether a redirect happens or not

2006-11-02 Thread Shannon -jj Behrens
I like to have a facility called action_results. It's a place where I can put a message that will show up on the next page. It should work whether a redirect happens or not. In my old days, I use to put it in the session so that it would survive if a redirect happened between the time that the

Re: setting a cookie whether a redirect happens or not

2006-11-02 Thread Shannon -jj Behrens
On 11/2/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: I like to have a facility called action_results. It's a place where I can put a message that will show up on the next page. It should work whether a redirect happens or not. In my old days, I use to put it in the session so

Re: how to use h.redirect_to in myghty template

2006-11-03 Thread Shannon -jj Behrens
On 11/3/06, Beies [EMAIL PROTECTED] wrote: Ben Bangert schreef: On Nov 2, 2006, at 2:47 PM, Beies wrote: Can someone give me a clear example of how to use h.redirect_to in myghty template? It works in a controller but not in a template Out of curiosity, why are you changing

Re: Myghty unicode bug

2006-11-03 Thread Shannon -jj Behrens
On 11/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is probably more appropriate for a the myghty list but since many pylons users use myghty I thought it appropriate. I get this error: Error(UnicodeDecodeError): 'ascii' codec can't decode byte 0xe9 in position 138: ordinal not in

Re: Myghty unicode bug

2006-11-03 Thread Shannon -jj Behrens
On 11/3/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 11/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is probably more appropriate for a the myghty list but since many pylons users use myghty I thought it appropriate. I get this error: Error(UnicodeDecodeError): 'ascii

Re: Myghty unicode bug

2006-11-03 Thread Shannon -jj Behrens
On 11/2/06, ToddG [EMAIL PROTECTED] wrote: I'm probably least qualified here to answer this, but until someone else stops by: I hit the same problem on upgrading last night, and dug around and sort of know what's going on. But my unicode knowledge is woefully inadequate. In short -- as of

Re: Myghty unicode bug [veering OT]

2006-11-03 Thread Shannon -jj Behrens
On 11/3/06, ToddG [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: I'm not using Myghty or Web helpers, but I can give a brain dump on how I'm using encodings since you seemed like you wanted me to: Definitely helpful, thanks. It would seem either a) everyone knows this stuff

Re: ClearSilver Pylons: how?

2006-11-07 Thread Shannon -jj Behrens
On 11/6/06, Vit [EMAIL PROTECTED] wrote: Nice to hear feedback. Thanks, guys. I *love* Trac as well :-) , but ... is it really make sense in migration from native C's ClearSilver to Python's Genshi - according http://genshi.edgewall.org/wiki/GenshiPerformance Genshi is not the winner? P.

Re: 0.9.3: AuthKit or Barrel? examples?

2006-11-07 Thread Shannon -jj Behrens
On 11/4/06, Chris Shenton [EMAIL PROTECTED] wrote: We're currently using Apache's HTTP auth but need to provide a Logout button and have an idle timeout.We'll eventually want to have groups/roles so I'm looking for modules to do this, using form based authentication. AuthKit looks

Re: Different skins for different user bases?

2006-11-16 Thread Shannon -jj Behrens
On 11/16/06, Chris Shenton [EMAIL PROTECTED] wrote: I've got an app I'm writing which will need to present a different look-n-feel for different users. The site admins might see one look, but each of their customers might see a differently branded skin. The code (model, controller) will be

Re: I'm lost with ActiveMapper

2006-11-16 Thread Shannon -jj Behrens
On 11/16/06, Bruno Silva [EMAIL PROTECTED] wrote: I tried SQLAlchemy and ActiveMapper. And now I'm learning Pylons framework, and I would like to use ActiveMapper. I can' t really tell you how much configurations I tried. I found one that works, but I think perhaps It's not the best practice.

Re: No module named lib.base?

2006-11-27 Thread Shannon -jj Behrens
If you change the module name, don't you have to change the controller name to match? I think there is a bit of name magic. -jj On 11/27/06, John_Nowlan [EMAIL PROTECTED] wrote: Thanks, should have known not to call my controller module the same as the webapps. If I change the name of

Re: Internationalization - utf-16

2006-12-11 Thread Shannon -jj Behrens
On 12/11/06, Alagu Madhu [EMAIL PROTECTED] wrote: Hello, i18n/ en: msgid Hello msgstr Hello ar(arabic): msgid Hello msgstr عبدالرحمن عبدالله الصبيحي I am getting the following error when I am using the unicode (utf-16) string. Error Traceback clear this clear this Module

Re: SQLAlchemy, Again

2006-12-11 Thread Shannon -jj Behrens
On 12/11/06, Sean Davis [EMAIL PROTECTED] wrote: Despite a couple of days of reading and typing, I remain at a loss as to how to go about implementing SQLalchemy as a model using reflection. Does anyone have any complete examples of doing so? The quickwiki example is close, but there are so

comments on Unicode document

2006-12-11 Thread Shannon -jj Behrens
James, I have reviewed your Unicode document. Below are my responses: == http://pylonshq.com/project/pylonshq/browser/Pylons/trunk/docs/internationalization.txt == This is a lot of non-Pylons-specific work! == message you will have run into a problem Get rid of will. ==

Re: pylons and Apache's DocumentRoot

2006-12-12 Thread Shannon -jj Behrens
On 12/12/06, Mike Orr [EMAIL PROTECTED] wrote: On 12/12/06, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote: I see that DocumentRoot is a directory where, I think, the pylons egg cannot have been installed; the eggs will install under either the system-wide site-packages or some other

Re: comments on Unicode document

2006-12-12 Thread Shannon -jj Behrens
On 12/12/06, Mike Orr [EMAIL PROTECTED] wrote: On 12/12/06, James Gardner [EMAIL PROTECTED] wrote: For real world use it is recommended that you use the UTF-8 encoding for your file but you must be sure that your text editor actually saves the file as UTF-8 otherwise

Re: comments on Unicode document

2006-12-12 Thread Shannon -jj Behrens
* How to integrate the aquarium code Can Ben or Shannon log a ticket about this one? Done. I've also cut and pasted the appropriate code: http://pylonshq.com/project/pylonshq/ticket/150#preview I hope that's helpful. Best Regards, -jj -- http://jjinux.blogspot.com/

Re: Using Durus with Pylons

2006-12-12 Thread Shannon -jj Behrens
On 12/11/06, Mike Orr [EMAIL PROTECTED] wrote: On 12/11/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 12/11/06, Mike Orr [EMAIL PROTECTED] wrote: Hello again. I'm modifying QuickWiki to use a Durus database, to see how to do it in my applications. Durus is not thread safe

Re: comments on Unicode document

2006-12-12 Thread Shannon -jj Behrens
Ok, I found James's responses in the archive: Then on each controller call the language to be used could be read from the session Syntax error :) Sorry, do you mean lowercase t on Then? I think the sentence is grammatically incorrect and confused ;) Outstanding issues are

Re: New tutorials

2006-12-13 Thread Shannon -jj Behrens
On 12/13/06, Mike Orr [EMAIL PROTECTED] wrote: Merging TurboCheetah into Cheetah should be easy enough; I'll put it in the TODO. On 12/13/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: It'd also be nice if parent class templates where autocompiled like normal templates

Re: pylons and Apache's DocumentRoot

2006-12-13 Thread Shannon -jj Behrens
On 12/13/06, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote: On 12/13/06, Jose Galvez [EMAIL PROTECTED] wrote: Dear Ramon, Do you even need Apache? if most of your application doesn't need static files then you really don't need Apache. Having said that I understand that most of us use

Re: Recent i18n Pylons changes

2006-12-13 Thread Shannon -jj Behrens
On 12/13/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: Hello there! I've recently seen some modifications on pylons i18n support. This mail is to make the discussion into the ML. What's the path these changes will take, because I'm trying to integrate i18n with genshi too,

Re: Recent i18n Pylons changes

2006-12-13 Thread Shannon -jj Behrens
h._ has recently been changed from pointing to gettext to instead point to ugettext. To get ungettext, you use something like h.translation.ungettext, but I'm not sure. -jj On 12/13/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: What is pylons _() attached to? ugettext? Or you

Re: Recent i18n Pylons changes

2006-12-13 Thread Shannon -jj Behrens
On 12/13/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: Well, I'm in favour of still using _() and I guess that _() should also be attached to ugettext, so we handle everything in unicode(more reasonable). What really ain't reasonable is using h.ugettext() or even worst

Re: Recent i18n Pylons changes

2006-12-18 Thread Shannon -jj Behrens
On 12/14/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: One way to use ungettext, or better, we could also attach ungettext to N_() like some C progams do, just an idea. ungettext and N_ aren't the same thing. N_ is used to mark a string for translation but *not* translate it.

Re: Recent i18n Pylons changes

2006-12-18 Thread Shannon -jj Behrens
I'm currently working on the extraction from genshi with help from http://genshi.edgewall.org/wiki/GenshiRecipes/Localization, but the regex presented there is too narrow. So far I've succeeded on extending it a bit more, I can now also match: _(A string which will become \too

Re: Recent i18n Pylons changes

2006-12-18 Thread Shannon -jj Behrens
On 12/16/06, Philip Jenvey [EMAIL PROTECTED] wrote: On Dec 14, 2006, at 12:48 PM, Pedro Algarvio, aka, s0undt3ch wrote: I agree with Ben's arguments, I expect _() to simply exist and do the correct job, what about binding ungettext to N_()? would that clutter the namespace? gettext

Re: Recent i18n Pylons changes

2006-12-19 Thread Shannon -jj Behrens
On 12/18/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: I'm currently working on the extraction from genshi with help from http://genshi.edgewall.org/wiki/GenshiRecipes/Localization, but the regex presented there is too narrow. So far I've

Re: Recent i18n Pylons changes

2006-12-19 Thread Shannon -jj Behrens
On 12/19/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: Is it because since it's inside a it's considered to already be a string, hence does not look for a _() call inside? It's true that xgettext will try to be smart about the syntax of the language at hand and not look inside

Re: Recent i18n Pylons changes

2006-12-19 Thread Shannon -jj Behrens
On 12/19/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shannon -jj Behrens wrote: On 12/18/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: I'm currently working on the extraction from

Re: new project and so many files

2006-12-19 Thread Shannon -jj Behrens
On 12/19/06, Max Ischenko [EMAIL PROTECTED] wrote: Hello, I have created a Pylons project (with paster create --template=pylons qw) and I am a bit intimidated with amount of data pre-generated for me: 33 files with 573 lines in them (16Kb)! Similar situation in TurboGears, btw. Is it

Re: new project and so many files

2006-12-19 Thread Shannon -jj Behrens
On 12/19/06, Ben Bangert [EMAIL PROTECTED] wrote: On Dec 19, 2006, at 11:39 AM, Mike Orr wrote: The Pylons Execution Analysis I posted last week (http://sluggo.scrapping.cc/python/) may help to get a handle on those files and how the framework uses them. It's a bit too detailed for

Re: structuring pylons applications

2006-12-27 Thread Shannon -jj Behrens
On 12/22/06, Ian Bicking [EMAIL PROTECTED] wrote: Max Ischenko wrote: I have a site with a few php modules and I plan to write new ones in python (Pylons). How should I structure those modules? Should I have single Pylons app that just handles it all? Several installations served through

Re: comments on Unicode document

2006-12-27 Thread Shannon -jj Behrens
On 12/19/06, Damjan [EMAIL PROTECTED] wrote: Are we on the same page, or am I still lost? Not lost at all :) Ah, good :-D Except I'd prefer if all Python API's would be unicode aware, I think it's fortunate that most Python APIs *can* ignore the unicode problem. As a stupid American,

Re: Merry Christmas and a Happy New Year

2006-12-27 Thread Shannon -jj Behrens
On 12/27/06, Ian Bicking [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: On 12/27/06, Ian Bicking [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: Agreed! Merry Christmas to everyone! Here is my gift to you all: write a function that acts like max, but instead

Re: Controller attributes and their persistence...

2006-12-28 Thread Shannon -jj Behrens
On 12/28/06, Ian Bicking [EMAIL PROTECTED] wrote: askel wrote: James Gardner wrote: Hi jw, This is because a new instance of the controller object is created on each request, if it wasn't, your controllers would not be thread safe because class members set by one thread might be read by

Re: [slightly OT] file storage in simple CMS

2007-01-19 Thread Shannon -jj Behrens
On 1/13/07, Bob Ippolito [EMAIL PROTECTED] wrote: On 1/13/07, Sean Davis [EMAIL PROTECTED] wrote: This is slightly off-topic, but I'll ask anyway, in case someone has already done this. I want to make a simple file storage system of file uploads. However, I would really like to store the

Re: how (Tosca)Widgets fits into MVC concept

2007-01-22 Thread Shannon -jj Behrens
On 1/21/07, Ksenia [EMAIL PROTECTED] wrote: Hi, I am playing with Pylons several weeks now and it's been a big joy to use. Everything just fits together and I think because of Pylons I finally start to get what MVC is all about and see the advantage of clear separation. The piece that I

Re: Testing with dummy databases

2007-01-24 Thread Shannon -jj Behrens
On 1/24/07, Carlo Sogono [EMAIL PROTECTED] wrote: I have followed the basic testing tutorial in the PylonsHQ site, but am unsure as to how to proceed with more complex scenarios. Basically, like most people, my Pylons data relies heavily on databases (PostgreSQl to be exact). How do people

Re: Small query language?

2007-01-26 Thread Shannon -jj Behrens
On 1/26/07, Sean Davis [EMAIL PROTECTED] wrote: I would like to build a small app akin to a filemaker database, but web-based, of course. One nice feature of filemaker is the ability to search based on pretty much any field (or combination). I know how to do the searches, but I would like

Re: Pagination research

2007-01-26 Thread Shannon -jj Behrens
On 1/25/07, Christoph Haas [EMAIL PROTECTED] wrote: Evening... as some of you may have read on IRC I'm trying to use webhelpers' pagination package. That's a pretty frustrating trip that's more a pydoc text adventure than something that saves me more time than re-inventing the wheel.

gettext.py incompatible with eggs

2007-01-31 Thread Shannon -jj Behrens
I've submitted the following to the Python bug tracker: gettext.py incompatible with eggs http://sourceforge.net/tracker/index.php?func=detailaid=1649329group_id=5470atid=105470 Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~-~--~~~---~--~~ You

Re: IDEs and Pylons applications

2007-02-01 Thread Shannon -jj Behrens
On 1/31/07, Christoph Haas [EMAIL PROTECTED] wrote: Hi, $ALL... I'm currently trying to rewrite the webhelpers.pagination module and sometimes find it hard to understand what each variable is set to and even what type it is. Sure, I can raise exceptions all the time as a poor man's way to

Re: More on unicode

2007-02-01 Thread Shannon -jj Behrens
On 1/31/07, Uwe Feldtmann [EMAIL PROTECTED] wrote: I've cross posted this on the Mako list as well. Now I'm not sure if this is a question for this list or the Mako list. The scenario:- A template contains translatable strings and is rendered by the Pylons controller via Mako. The

Re: ANN: Paste 1.2

2007-02-01 Thread Shannon -jj Behrens
Did any of my code make it in? Can I get a shout out from my homies in Paste land? ;) -jj On 1/31/07, Ian Bicking [EMAIL PROTECTED] wrote: Paste 1.2 - I'm happy to release Paste 1.2. This release contains a mix of small features and bug fixes. This is only a release of core

Re: Patch for webhelpers/pagination/orm.py to raise proper exception

2007-02-01 Thread Shannon -jj Behrens
On 1/31/07, Christoph Haas [EMAIL PROTECTED] wrote: On Wednesday 31 January 2007 09:12, Daniel Néri wrote: Note that raising of strings as exceptions is deprecated in Python 2.5[*] and triggers a warning. Thanks for the pointer. I already wondered why some people already use '''raise

Re: setting a cookie whether a redirect happens or not

2007-02-01 Thread Shannon -jj Behrens
On 1/29/07, Max Ischenko [EMAIL PROTECTED] wrote: Hello Shannon, Some time ago you wrote: I like to have a facility called action_results. It's a place where I can put amessagethat will show up on the next page. It should work whether aredirecthappens or not. In my old days, I use

Re: pylons controller's self vs. c global

2007-02-01 Thread Shannon -jj Behrens
On 1/29/07, Max Ischenko [EMAIL PROTECTED] wrote: From reading the docs at http://pylonshq.com/docs/0.9.4.1/module- pylons.controllers.html I assume that new controller instance is created to handle each incoming request and discarded after it is processed. This means I can safely set and

Re: Myghty - Mako?

2007-02-01 Thread Shannon -jj Behrens
On 1/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Aside from changing .myt to .mak do I need to do anything else? Is there a Mako replacement for myghty.exception? Max I should configure Mako as a supported template engine. Oh, yeah, been there, done that, checked out

Re: More on unicode

2007-02-02 Thread Shannon -jj Behrens
On 2/1/07, Uwe Feldtmann [EMAIL PROTECTED] wrote: Hi James. James Gardner wrote: The translation should occur at run time so this shouldn't be a problem. How are you doing the translation? On closer inspection it doesn't seem to be a problem. I was thinking that the pre-compiled

Re: More on unicode (plus new i18n features like fallbacks)

2007-02-02 Thread Shannon -jj Behrens
On 2/2/07, Max Ischenko [EMAIL PROTECTED] wrote: On Feb 2, 3:39 pm, James Gardner [EMAIL PROTECTED] wrote: Believe it or not you are in luck again. Ben has just implemented this. If you upgrade to the latest paste and pylons dev you should be able to access all the languages as

Re: More on unicode (plus new i18n features like fallbacks)

2007-02-02 Thread Shannon -jj Behrens
On 2/2/07, Max Ischenko [EMAIL PROTECTED] wrote: On Feb 2, 3:39 pm, James Gardner [EMAIL PROTECTED] wrote: Believe it or not you are in luck again. Ben has just implemented this. If you upgrade to the latest paste and pylons dev you should be able to access all the languages as

Re: IDEs and Pylons applications

2007-02-02 Thread Shannon -jj Behrens
where I can get variable results and stuff like that, but I can't figure out how to make it close and go on executing my controller. Thanks in advance for any and all help Jose On 2/1/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 1/31/07, Christoph Haas [EMAIL PROTECTED] wrote

Re: More on unicode

2007-02-05 Thread Shannon -jj Behrens
On 2/4/07, Ben Bangert [EMAIL PROTECTED] wrote: On Feb 4, 2007, at 8:09 PM, Uwe Feldtmann wrote: print request.environ['HTTP_ACCEPT_LANGUAGE'] returns en-GB,en;q=0.9,en-US;q=0.8,en-us;q=0.6,ar-AE;q=0.5,ar;q=0.4,en- gb;q=0.3,en;q=0.1 print request.languages returns ['en-gb', 'en',

Re: Pagination research

2007-02-05 Thread Shannon -jj Behrens
On 2/5/07, Christoph Haas [EMAIL PROTECTED] wrote: On Saturday 03 February 2007 08:01, dds wrote: Thanks for looking into the pagination stuff. No hope too soon. :) On Jan 29, 11:54 pm, Christoph Haas [EMAIL PROTECTED] wrote: The documentation

Re: How to build/use an egg with lots of lib/* command utils?

2007-02-05 Thread Shannon -jj Behrens
On 2/5/07, Philip Jenvey [EMAIL PROTECTED] wrote: On Jan 31, 2007, at 7:23 PM, Chris Shenton wrote: My application has two parts, a webapp, and a bunch of commandline programs that do a bunch of analysis; they both talk to the same SQLAlchemy-fronted DB, and both reference files from

Re: Separate access for internal and external users?

2007-02-05 Thread Shannon -jj Behrens
On 1/31/07, Chris Shenton [EMAIL PROTECTED] wrote: I've got a pylons app that started out mostly as an internal customer/sytem/contact management system. Until now it's been internal only so we've had no auth whatsoever. I've been adding a way to send email to customers with status and

Re: popup window feedback to main window

2007-02-05 Thread Shannon -jj Behrens
On 2/3/07, Sean Davis [EMAIL PROTECTED] wrote: I have a single page for creating/editing an object with foreign keys to several other smaller tables. When the user is working on the main page, I would like to let him/her have the option of creating a new one of the smaller objects. One way

Re: setting a cookie whether a redirect happens or not

2007-02-05 Thread Shannon -jj Behrens
On 2/3/07, Damjan [EMAIL PROTECTED] wrote: The exmaple from Sergey Lipnevich seems to me more clean than what's implemented in the ticket #136. This is what he said on Nov 3 2006: response = redirect_to(controller = '...', action = '...', id = '...') # set cookie return response

Re: Separate access for internal and external users?

2007-02-05 Thread Shannon -jj Behrens
On 2/5/07, Chris Shenton [EMAIL PROTECTED] wrote: Shannon -jj Behrens [EMAIL PROTECTED] writes: I think you're on the right path. It sounds like you're having a hard time figuring out what you should do than figuring out how to do it. If I had to implement different access controls

Unicode document needs updating

2007-02-12 Thread Shannon -jj Behrens
Hey James, Sorry to be the bearer of bad news, but I think the Internationalization, Localization and Unicode document needs some updating that to all the cool new work that's happened in the latest versions of Pylons and Paste. Thanks, -jj -- http://jjinux.blogspot.com/

anti-caching headers

2007-02-12 Thread Shannon -jj Behrens
Hi, In Aquarium, I use to have code that would always output anti-caching headers for pages unless I explicitly decided to take advantage of the browser cache. This is important if you want to have a logout button work so that a new user can't just hit the back button to see sensitive data

  1   2   3   >