Re: Is the --daemon switch broken?

2007-11-19 Thread voltron
Thanks! On Nov 18, 9:39 pm, Ian Bicking [EMAIL PROTECTED] wrote: voltron wrote: Is the --daemon switch broken? It quits with this error on my system: AttributeError: 'module' object has no attribute 'fork' I am using windows 2000, python 2.4, pylons 09.6.1 Daemon mode only works

Is the --daemon switch broken?

2007-11-18 Thread voltron
Is the --daemon switch broken? It quits with this error on my system: AttributeError: 'module' object has no attribute 'fork' I am using windows 2000, python 2.4, pylons 09.6.1 Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Any Pylons freelancers in Europe here?

2007-11-01 Thread voltron
Hi all, if you are ready to tale on a Pylons based freelancing project, please let me know. I have something that needs to finished ASAP. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss

Scheduling and monitoring

2007-10-23 Thread voltron
I read a lot about people using Cron to schedule the clearing out of dead sessions in Pylons apps, is there any reason why one cannot use the sched(http://docs.python.org/lib/module-sched.html) module to do the same and start if from pylons itself? Pylons has some kind of monitoring system, are

Re: Scheduling and monitoring

2007-10-23 Thread voltron
Thanks Alberto, I´ll take a loo at that On Oct 23, 11:59 am, Alberto Valverde [EMAIL PROTECTED] wrote: voltron wrote: I read a lot about people using Cron to schedule the clearing out of dead sessions in Pylons apps, is there any reason why one cannot use the sched(http://docs.python.org

Clearing sessions when paster is down

2007-10-19 Thread voltron
For one reason or the other, the paster serve might be down, maintenance, errors e.t.c. This would cause errors on the client if certain pages depend on various session variables.Is there a hook, callback that one can use to trigger an action when the server is going down to clear out all the

Sessions - database or filesystem

2007-10-18 Thread voltron
I did´nt want to hijack Pavels thread so I thought I´d open up a new thread. I have been using the default system that Pylons offers, the file-system, does anyone have any figures around about when it might be considered to use a database? 500, 1000 or more concurrent users? I thought memcached

FCK Editor controller

2007-10-15 Thread voltron
Does anyone by chance have an FCK Editor backend controller by chance? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: FCK Editor controller

2007-10-15 Thread voltron
Coolio! :-)) On Oct 15, 5:33 pm, Jose Galvez [EMAIL PROTECTED] wrote: I've got one, its a bit of a hack, but I'll send you what I've got Jose voltron wrote: Does anyone by chance have an FCK Editor backend controller by chance? Thanks

Re: Syntax for calling a func in another controller

2007-10-14 Thread voltron
Thanks guys On Oct 13, 6:20 pm, Yannick Gingras [EMAIL PROTECTED] wrote: Dalius Dobravolskas [EMAIL PROTECTED] writes: return render(action=func, controller=) Maybe you need: redirect_to(h.url_for(controller='', actions='')) I'd go for: from theapp.controllers import

Wizard like forms

2007-10-12 Thread voltron
I have to collect a lot od data from users, the forms used are separate but interconnected. This has me coding for every form, a processing function and a display form function in the controllers and then both functions have to be defined in the routes configuration, is there some cleaner and

Re: Wizard like forms

2007-10-12 Thread voltron
program state will have to be stored in hidden variables, of course. Here's some of my thoughts (incomplete and rough) to describe why I think this: http://dervish.jonathangardner.net/tech/w/Web_Application/Wizards On Oct 12, 2:14 am, voltron [EMAIL PROTECTED] wrote: I have to collect

Re: Modifications in templates

2007-10-05 Thread voltron
What a coincidence! I just wanted to post this, the only thing that works that way is when the server is in reload mode. Daemon mode does not use the new templates On Oct 5, 10:22 am, Jérôme [EMAIL PROTECTED] wrote: Hi, I've just started to use Pylons (and web applications too) and I have a

Re: Form re-rendering itself SOLVED

2007-10-04 Thread voltron
, voltron [EMAIL PROTECTED] wrote: Thanks Uwe, But the forms action is using post, method=post, ebven this is in my routing.py , conditions=dict(method=POST) Other ideas? On Oct 4, 7:29 am, Uwe Feldtmann [EMAIL PROTECTED] wrote: Perhaps you're running out of data space on the url. If you

FormEncode and randomely generated numbers for select elements

2007-10-04 Thread voltron
Hi all, I´m posting this also here becaue my last mail got bounced by the Formencode list. I have javascript code that allows me to duplicate HTML select elemets, although the users can delete the elements, each newly generated element gets a new name number in ascemding order, for example:

Re: Form re-rendering itself

2007-10-03 Thread voltron
Hi Huy, is the formatting right; I did´nt know about that, seems strange, c follwed by two dots? Is this documented somewhere? I´ll like to read it up On Oct 4, 5:41 am, Contact 42 [EMAIL PROTECTED] wrote: voltron wrote: here is an example of how I render data to forms def

Memory usage of a pylons app

2007-10-02 Thread voltron
I have memory usage increases between 100 and 120 MB when I start my Pylons app, are these values normal? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: Form re-rendering itself

2007-10-02 Thread voltron
No I fill in the form using Pylons c global and the request variables. I use formencode for the bigger forms On Oct 2, 4:24 pm, David Turner [EMAIL PROTECTED] wrote: On Tue, 2007-10-02 at 02:17 +, voltron wrote: I have a form that I use to capture and display user data, I would like

Form re-rendering itself

2007-10-01 Thread voltron
I have a form that I use to capture and display user data, I would like the user to submit the form, a controller saves the data and re- render the filled in data in the same form, so I just redirect the form to itself, strangely this does not work, is this the wrong way to do this? Thanks

Pylons - creating download links?

2007-09-30 Thread voltron
I have links to files on a servers filesystem, the links are correct but strangely, I cannot download them. Could it be because I am proxying Pylons behind Apache? I have the same problem on Windows and Debian Linux.Thanks --~--~-~--~~~---~--~~ You received this

Errors with window.open links

2007-09-29 Thread voltron
Can someone tell me why I get this error using a window.open call? exceptions.TypeError: preview_profile() takes no arguments (1 given) This is the call I´m using: onClick=window.open('/de/testsite/preview_profile'); Thanks --~--~-~--~~~---~--~~ You received

Re: Errors with window.open links

2007-09-29 Thread voltron
class did you add self as an argument of, def preview_profile(self) rather then def preview_profile() (I make this mistake all the time, my hands sometimes type faster then my brain thinks) Jose voltron wrote: Can someone tell me why I get this error using a window.open call

Using HtmlFill to populate a form with nested variables

2007-09-27 Thread voltron
Sorry I had this here, I had an error when posting to the Fromencode forum. I have lots of nested variables from using pre_validators = [formencode.NestedVariables()]. The example on the HtmlFill page on show key to value mappings, is this the same if I map a key to a list and pass it to HtmlFill

Ajax upload -pylons based

2007-09-26 Thread voltron
Has anyone coded the backend pylons controller functions script for swfupload(http://swfupload.mammon.se/) or jquploader(http:// www.pixeline.be/experiments/jqUploader/setup.php) ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Ajax upload -pylons based

2007-09-26 Thread voltron
attached it to the blog entry thinking about it. http://jimmyg.org/2007/09/25/multiple-file-uploads-with-progress-mete... g-flash-8-and-javascript/http://jimmyg.org/2007/09/25/file-uploads-in-python/ Cheers, James Original Message: - From: voltron [EMAIL PROTECTED] Date: Wed

Re: Mako %doc tags confuse HtmlFill parser

2007-09-26 Thread voltron
HtmlFill returned my templates fine when I removed them . A pity though, I dont like the HTML comments On Sep 26, 9:32 pm, Philip Jenvey [EMAIL PROTECTED] wrote: On Sep 25, 2007, at 11:41 PM, voltron wrote: mako %doc tags ruin HTML when parsed by HtmlFill parser. I intended to use

Anti-cacheing headers in Pylons

2007-09-26 Thread voltron
How does one generate anti-cacheing headers in Pylons? Thanks! --~--~-~--~~~---~--~~ 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

Re: Anti-cacheing headers in Pylons

2007-09-26 Thread voltron
the dynamically generated pages you can wrap the whole app in the NoCache middleware. Or you can do it from a controller action with: response.headers['Cache-Control']='no-cache, no-store, must-revalidate' James voltron wrote: How does one generate anti-cacheing headers in Pylons? Thanks

Retrieving multiple similar values from request.params

2007-09-25 Thread voltron
I have asked about something like this before, this is similar but more complicated: I have values coming from my form like this academic_from_year0, academic_till_year0 e.t.c academic_from_year1, academic_till_year1 e.t.c academic_from_year2, academic_till_year2 e.t.c I though about doing

Re: Retrieving multiple similar values from request.params

2007-09-25 Thread voltron
Hermann [EMAIL PROTECTED] wrote: On Sep 25, 12:15 pm, voltron [EMAIL PROTECTED] wrote: I have asked about something like this before, this is similar but more complicated: I have answered about something like this before, this is similar and the solution is the same

Re: Retrieving multiple similar values from request.params

2007-09-25 Thread voltron
Thanks you very much guys!! Just a few questions: 1. Can I just use the normal request.params for the other parts of the form? 2. The form in question is large, a whole page long, with three multi field repeating sets of data as I described, what would the the stacking of the decorators on my

Re: Retrieving multiple similar values from request.params

2007-09-25 Thread voltron
[EMAIL PROTECTED] wrote: On Sep 25, 3:57 pm, voltron [EMAIL PROTECTED] wrote: 1. Can I just use the normal request.params for the other parts of the form? yes. request.params is imho not altered by formencode validation. Make sure you set allow_extra_fields=True in your schema. Otherwise

Re: Retrieving multiple similar values from request.params

2007-09-25 Thread voltron
Aha! Now I get it, great explanation Clemens. Thanks! On Sep 25, 5:04 pm, Clemens Hermann [EMAIL PROTECTED] wrote: Voltron, On Sep 25, 4:28 pm, voltron [EMAIL PROTECTED] wrote: What I meant by the the stacking of the decorators was that since I have a large form with different sets

masking/hiding urls

2007-09-25 Thread voltron
I have 2 URLs: /profile /save_profile /profile renders a form that has /save_profile as its action attribute. Unfortunately, one could do this: www.mydomain.com/save_profile and it would be executed. Is there a way to make such urls not callable to the outside world? Can such URLs be

Re: masking/hiding urls

2007-09-25 Thread voltron
the dude packing Is that right? On Sep 25, 9:16 pm, David Turner [EMAIL PROTECTED] wrote: On Tue, 2007-09-25 at 18:58 +, voltron wrote: I have 2 URLs: /profile /save_profile /profile renders a form that has /save_profile as its action attribute. Unfortunately, one could do

Other form attributes in request.params

2007-09-24 Thread voltron
Is there a remote possibility to extract other attributes in a form element other than the name attribute when using request.params? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To

Re: Other form attributes in request.params

2007-09-24 Thread voltron
Ahh, thats the ticket Phillip, I thought the values were serialized in no particular order. Thanks guys! On Sep 25, 3:34 am, Philip Jenvey [EMAIL PROTECTED] wrote: On Sep 24, 2007, at 5:31 PM, voltron wrote: Self defined ones, I dynamically generated form elements that I would like

Re: Understanding the session dict

2007-09-20 Thread voltron
. I've even seem apps that use javascript to get rid of the browser's back button to prevent the user from using it. Mind you I would discourage doing this (mostly because I find it annoying) and instead concentrate on site navigation. Jose voltron wrote: I am setting a session variable

Understanding the session dict

2007-09-19 Thread voltron
I am setting a session variable to track my users login status: session[logged:in] = False # or True Depending on this value, I emit code showing the users name or a login form, this works, the problem is, it does not work when one clicks the browsers back button, the login form is displayed

controller naming question

2007-09-19 Thread voltron
I just found out that its not possible to use controller names like this: de_accounts it gets munged up and shows up in camelcase like this class DeAccountsController(BaseController): is this the correct behaviour? --~--~-~--~~~---~--~~ You received this

Re: controller naming question

2007-09-19 Thread voltron
nevermind... On Sep 19, 7:54 pm, voltron [EMAIL PROTECTED] wrote: I just found out that its not possible to use controller names like this: de_accounts it gets munged up and shows up in camelcase like this class DeAccountsController(BaseController): is this the correct behaviour

Re: httpserver log entry

2007-09-18 Thread voltron
Thanks guys, I was a little worried. On Sep 19, 12:06 am, Ian Bicking [EMAIL PROTECTED] wrote: Ben Bangert wrote: On Sep 18, 2007, at 2:47 PM, voltron wrote: Any info on this? Pylons devs? It's a harmless warning that it can't kill individual threads as you're not using Python 2.5

httpserver log entry

2007-09-16 Thread voltron
I get the log entry below when I start up the Paster serfer using zthe latest Pylons. Is this something I have to be worried about? Thanks Restarting Starting server in PID 2288. 18:05:28,250 INFO [paste.httpserver.ThreadPool] Cannot use

Paster Daemon mode on Windows emits traceback

2007-09-14 Thread voltron
Running the paster server in daemon mode emits a traceback: D:\Projects\Pylons_projects\test3paster serve --daemon development.ini Entering daemon mode Traceback (most recent call last): File C:\Python24\Scripts\paster-script.py, line 7, in ? sys.exit( File

Re: Paster Daemon mode on Windows emits traceback

2007-09-14 Thread voltron
don't think the current example pylons apps work real well under 0.96. But the rest of the framework works just fine. If you need any help with it let me know jose voltron wrote: Running the paster server in daemon mode emits a traceback: D:\Projects\Pylons_projects\test3paster serve

Re: HTML select multiple handling

2007-09-12 Thread voltron
in the post? Jose On 9/11/07, voltron [EMAIL PROTECTED] wrote: Hi! can someone point me to the docs or show me with a code snippet on how I would handle select tags with the attribute multiple? Thanks --~--~-~--~~~---~--~~ You received this message

HTML select multiple handling

2007-09-11 Thread voltron
Hi! can someone point me to the docs or show me with a code snippet on how I would handle select tags with the attribute multiple? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To

Re: Anyone using Lighty?

2007-09-08 Thread voltron
/ ProxyPassReverse / http://localhost:5000/ What is the Lighty equivalent of the ProxyPass/FolderName setting? Thanks On Sep 7, 10:48 pm, Ron Bickers [EMAIL PROTECTED] wrote: On Sep 7, 3:19 pm, voltron [EMAIL PROTECTED] wrote: Anyone using lighty(http://www.lighttpd.net/) as a reverse

Anyone using Lighty?

2007-09-07 Thread voltron
Anyone using lighty(http://www.lighttpd.net/) as a reverse proxy server here? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: Locking a page?

2007-09-06 Thread voltron
Hi Jose! I am going to face the same problem with the application I am coding, it is a sort of CMS. I have thought about adding a boolean field called lock just as you have used in the past. When a user requests a page to edit and the lock field is not set to true, she can edit the page

Re: Locking a page?

2007-09-06 Thread voltron
This is the plugin I intend to use, it can effectively block user input if needed with notification: http://www.malsup.com/jquery/block/#page On Sep 6, 10:39 pm, voltron [EMAIL PROTECTED] wrote: Hi Jose! I am going to face the same problem with the application I am coding, it is a sort

Re: Locking a page?

2007-09-06 Thread voltron
Hmm..then things would be harder than I expected,maybe just warning the user as David suggested would be enough, when the users ignore the warning, tough luck. I wonder how the other CMS apps take care of this problem. On Sep 7, 1:29 am, Jose Galvez [EMAIL PROTECTED] wrote: Hey voltron, I'll

Problems again installing pylons on Debian

2007-08-28 Thread voltron
I am having problems installing Pylons on Debian Etch again: Extracting Pylons-0.9.6rc3-py2.4.egg to /usr/lib/python2.4/site- packages Sorry: IndentationError: ('unindent does not match any outer indentation level', ('/usr/lib/python2.4/site-packages/Pylons-0.9.6rc3-

Re: Pylons paste monitor switch

2007-08-27 Thread voltron
I take it that this is a dead issue? On Aug 12, 10:38 am, voltron [EMAIL PROTECTED] wrote: Hi Pylons devs, since a new version is just round the corner, I would like to know if the situation has changed with the -monitor switch. Would it then be possible to modify things like controllers

Re: database best practices: how to manage sac

2007-08-08 Thread voltron
Hi Jose! Now I´m confused, I thought one was supposed to delete the sessions at the beginning of the controller function in question, does putting the call in base.py eliminate the need to add del calls in every controller function? Thanks On Aug 8, 5:33 am, jose [EMAIL PROTECTED] wrote:

Re: database best practices: how to manage sac

2007-08-08 Thread voltron
Cool, nice to know! On Aug 8, 7:19 pm, Daniel Tang [EMAIL PROTECTED] wrote: Yes it does, since it's in the base controller. On 8/8/07, voltron [EMAIL PROTECTED] wrote: Hi Jose! Now I´m confused, I thought one was supposed to delete the sessions at the beginning of the controller

Re: Pylons and Python version -Setting Debian to Python 2.5

2007-08-03 Thread voltron
, Jose Galvez [EMAIL PROTECTED] wrote: since pylons depends on paste, I would imagine it would be in the shebang used to start that script. But I've not tested myself Jose On 8/1/07, voltron [EMAIL PROTECTED] wrote: HI! Where can one safely define which version of Python that Pylons

Pylons and Python version

2007-08-01 Thread voltron
HI! Where can one safely define which version of Python that Pylons should use? The reason behind this is that on Debian Etch, both versions, 2.4 and 2.5 are installed, and the dependencies doe not allow only 2.5, whats worse, removing 2.4 automatically removes 2.5( I could curse all day because

using the Global config object

2007-07-23 Thread voltron
I tried adding my own keys to the deveopment.ini and reading them with the new Global config object, I did not succeed because I had problems with the sytax, the only thing I can get to work is when I add values to the [app:main] key in the file. Can someone show me how to do this? Thanks

Re: using the Global config object

2007-07-23 Thread voltron
I got a key error Mike. I traced the Config object, and it really was ´nt there On Jul 23, 2:28 pm, michael [EMAIL PROTECTED] wrote: On Mon, 23 Jul 2007 12:20:40 - voltron [EMAIL PROTECTED] wrote: I tried adding my own keys to the deveopment.ini and reading them with the new Global

Re: Javascript text editor.

2007-07-23 Thread voltron
JSEclipse or Aptana(http://www.aptana.com/) On Jul 23, 4:41 pm, Echo [EMAIL PROTECTED] wrote: Can anyone recommend a good javascript editor? Also, what about a good date, date/time picker? -- -Echo --~--~-~--~~~---~--~~ You received this message because you

Re: Javascript text editor.

2007-07-23 Thread voltron
: On 7/23/07, voltron [EMAIL PROTECTED] wrote: JSEclipse or Aptana(http://www.aptana.com/) On Jul 23, 4:41 pm, Echo [EMAIL PROTECTED] wrote: Can anyone recommend a good javascript editor? Also, what about a good date, date/time picker? -- -Echo Sorry, I should have made my self

Re: using the Global config object

2007-07-23 Thread voltron
I tried creating a rubric of own, under [app:main], I did this: [app:main] ... ... ... [testApp] setting1 = test setting2 = test2 Thanks On Jul 23, 8:19 pm, Philip Jenvey [EMAIL PROTECTED] wrote: On Jul 23, 2007, at 5:20 AM, voltron wrote: I tried adding my own keys to the deveopment.ini

Re: Generating and consuming RSS feeds from pylons, maybe OT

2007-07-20 Thread voltron
a feedgenerator that is pretty cool and simple. To read rss, you can use the feedparser library (http://feedparser.org/) []'s - Walter On 7/20/07, voltron [EMAIL PROTECTED] wrote: Hi! I apologize if this should not be asked here.Does anyone have any experience in generating

Re: Generating and consuming RSS feeds from pylons, maybe OT

2007-07-20 Thread voltron
Cool! Thanks! Have a nice weekend :-) On Jul 20, 11:22 pm, Walter Cruz [EMAIL PROTECTED] wrote: Exactly what i'm doing! :) saida = feed.writeString('utf-8') return Response(saida) []'s - Walter On 7/20/07, voltron [EMAIL PROTECTED] wrote: Thanks Walter for the hint

Re: url_for and Unicode

2007-07-19 Thread voltron
I did this myString.encode( utf-8 ) before pasing to url_for, is this the correct Pylonic way? On Jul 19, 11:46 am, voltron [EMAIL PROTECTED] wrote: I get this when I pass Unicode strings from a database to url_for exceptions.Exception: url_for can only return a string or None, got

url_for and Unicode

2007-07-19 Thread voltron
I get this when I pass Unicode strings from a database to url_for exceptions.Exception: url_for can only return a string or None, got unicode instead How should this case be normally handled? Thanks --~--~-~--~~~---~--~~ You received this message because you

Re: Assigning values to REMOTE USER

2007-07-19 Thread voltron
Sorry for posting this twice, happened in the Google Groups problem yesterday. Any ideas about my problem? Thanks On Jul 18, 5:24 pm, voltron [EMAIL PROTECTED] wrote: Hi, I am assigning REMOTE_USER a value in a middleware that I wrote like this: environ['REMOTE_USER'] = testuser # test 1

Setting new keys in the environ object

2007-07-18 Thread voltron
Hi! I´m trying to set the REMOTE_USER key in the environ object from a middleware that I wrote like this: environ['REMOTE_USER'] = sharriff # test 1 environ['paste.auth_tkt.set_user'](shadow) #test2 both methods do not work, I get key errors in my controllers. Coulsd someone tell me how this

Assigning values to REMOTE USER

2007-07-18 Thread voltron
Hi, I am assigning REMOTE_USER a value in a middleware that I wrote like this: environ['REMOTE_USER'] = testuser # test 1 environ['paste.auth_tkt.set_user'](testuser) # test2 My problem is that both assignment methods do not work, no key or value is written in the request object, and thus the

Re: Pylons 0.9.6 Release Candidate 1

2007-07-17 Thread voltron
Hi! I noticed that a few directories are not created when one creates a new project: i18n docs templates The models directory is also now called model. Is that all intentional or is something wrong? --~--~-~--~~~---~--~~ You received this message because you

Re: Pylons 0.9.6 Release Candidate 1

2007-07-17 Thread voltron
Hi Phillip. I tried it out again several times, same thing. I am getting this on windows 2000 professional. I have created the folders though, and everything works as expected. On Jul 17, 9:08 pm, Philip Jenvey [EMAIL PROTECTED] wrote: On Jul 16, 2007, at 11:27 PM, voltron wrote: Hi

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-15 Thread voltron
to email it to me my email is [EMAIL PROTECTED] Jose On 7/13/07, voltron [EMAIL PROTECTED] wrote: Yes Erik, the javascript is being included because all the validation fields work except the checkboxes. I use always FireFox and Firebug for testing and debugging, Firebug does not show

Re: Pylons 0.9.6 Release Candidate 1

2007-07-15 Thread voltron
Hi! Great to see that a new shiny Pylons version is out :-)) I upgraded Pylons to 0.96 RC1 with easy_install -U Pylons. To test, I just created a new app with paster create -t pylons test3. Instad of a working test I got these errors when starting the new app:

Re: Pylons 0.9.6 Release Candidate 1

2007-07-15 Thread voltron
in a controller Thanks! On Jul 15, 6:33 pm, Ben Bangert [EMAIL PROTECTED] wrote: On Jul 15, 2007, at 3:53 AM, voltron wrote: Great to see that a new shiny Pylons version is out :-)) I upgraded Pylons to 0.96 RC1 with easy_install -U Pylons. To test, I just created a new app with paster

Re: HTTP_NOT_FOUND Error?

2007-07-13 Thread voltron
Ok, Thanks! On Jul 12, 12:05 pm, Alexandre CONRAD [EMAIL PROTECTED] wrote: Alexandre CONRAD wrote: This code generates a link, which could result in such error when clicking on it: h.url_for(controller=mycontroller, action=HTTP_NOT_FOUND.html.var) Actually, this doesn't generate a link

Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron
This is making me go crazy. I have a form that is using Jquery and a plugin for validation. from the server, rendered from pylons, clicking on the submit buttons just send the form, no matter what. The same form, embedded in a standalone HTML file works very well, and never tries to submit the

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron
I´m using this plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ On Jul 13, 9:15 pm, Jose Galvez [EMAIL PROTECTED] wrote: Which plugins are you using? On 7/13/07, voltron [EMAIL PROTECTED] wrote: This is making me go crazy. I have a form that is using Jquery

Re: putting binary data into the response

2007-07-13 Thread voltron
I think you have to encode it Jose take a look at the return image function here http://mail.python.org/pipermail/python-list/2004-May/261846.html On Jul 13, 10:09 pm, Jose Galvez [EMAIL PROTECTED] wrote: Hi all, I know this should be simple but I can't find the answer anywhere, I have

Re: putting binary data into the response

2007-07-13 Thread voltron
hmm, did you first convert the image as base 64 before storage? On Jul 13, 10:09 pm, Jose Galvez [EMAIL PROTECTED] wrote: Hi all, I know this should be simple but I can't find the answer anywhere, I have some images in a database that I need to send to a webpage. So I have a simple

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron
PROTECTED] wrote: On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote: Hi Jose! Thanks for your reply. Here is a link to the standalone version. What I mean by standalone is that it is not rendered by Pylons at all. The static. What drives me crazy is that this static page is an exact copy

HTTP_NOT_FOUND Error?

2007-07-12 Thread voltron
Although the page renders, I get this once in a while when checking the console: URL: http://localhost:5000/error/HTTP_NOT_FOUND.html.var File 'c:\\python24\\lib\\site-packages\\Pylons-0.9.5-py2.4.egg\\pylons\ \error.py', line 225 in respond app_iter = self.application(environ,

Re: HTTP_NOT_FOUND Error?

2007-07-12 Thread voltron
Whoops! I forgot to ask :-)) Has anybody experienced this? Thanks --~--~-~--~~~---~--~~ 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

Re: HTTP_NOT_FOUND Error?

2007-07-12 Thread voltron
I did some research, its actually a 404, I added a custom error page directive to my apache config and it disappeared, I thought that 404s, 403s and 500s, would be caught by the Pylons error middleware? On Jul 12, 11:06 am, voltron [EMAIL PROTECTED] wrote: Whoops! I forgot to ask :-)) Has

Re: Incorrect arguments passed to app_globals.Globals in load_environment.py

2007-07-11 Thread voltron
Hmm, I´ve got that too yesterday when trying out filter-prefix, is it because od SAContext? On Jul 11, 12:19 pm, beachcoder [EMAIL PROTECTED] wrote: This happens with r2134: File /var/tesla-pylons-elixir/tests/output/ProjectName/projectname/ config/environment.py, line 23, in

Session handling differences between firefox and IE6?

2007-07-11 Thread voltron
Hi all! I noticed that IE outputs a traceback with this code, Firefox is happy with it. # == Session DEBUG == session['logged_in'] = False session.save() g.logged_in = session['logged_in'] # == END DEBUG == class MainController(BaseController): def

Re: Future of serving static content with pylons

2007-07-10 Thread voltron
Order Deny,Allow Deny from all Allow from all /Location /VirtualHost On Jul 10, 6:24 am, Jose Galvez [EMAIL PROTECTED] wrote: Dear Voltron, I just tested the whole proxypass thing on my windows box and it works as expected. Looking at your apache confg code

Re: Future of serving static content with pylons

2007-07-10 Thread voltron
instead of one, just like the templates dict. Could the Pylons developers comment on this? Thanks On Jul 10, 5:45 pm, Mike Orr [EMAIL PROTECTED] wrote: On 7/10/07, voltron [EMAIL PROTECTED] wrote: Thank you Mike and Jose for your answers. @ Mike Where was the 'static' follder

Re: Future of serving static content with pylons

2007-07-10 Thread voltron
on windows, and I am more flexible when deploying the application since I might be have no choice but to deploy on a windows platform due to a clients wishes. On Jul 10, 8:42 pm, Philip Jenvey [EMAIL PROTECTED] wrote: On Jul 10, 2007, at 11:17 AM, voltron wrote: According to the docs

Re: Future of serving static content with pylons

2007-07-10 Thread voltron
[EMAIL PROTECTED] wrote: On Jul 10, 2007, at 11:17 AM, voltron wrote: According to the docs, os.path.join does throw the drive letters away: http://docs.python.org/lib/module-os.path.html I still think that it would be cool if there was a platform independent way in Pylons

Re: Future of serving static content with pylons SOLVED

2007-07-10 Thread voltron
I read up the Apache docs, the final headache was caused because of a missing trailing slash at the end of the proxy declarations For those in the same situation, here is my config ( only for windows) VirtualHost * ServerName localhost UseCanonicalName Off DocumentRoot

Future of serving static content with pylons

2007-07-09 Thread voltron
I have hit the problem again of serving static content from a directory of my choice. I am serving a Pylons app through an Apache reverse proxy server, on Linux, this works, I set apache to proxy the whole root path. On windows, this just does not work. Would there be a way to set the path of

Re: Future of serving static content with pylons

2007-07-09 Thread voltron
Why doesn't it work on Windows? I´m not sure, exactly why, but even when I do this in my Apache config: DocumentRoot / ProxyRequests Off ProxyPass /css ! ProxyPass /flash ! ProxyPass /img ! ProxyPass /scripts ! ProxyPass /games !

Re: Future of serving static content with pylons

2007-07-09 Thread voltron
I noticed this in enviroment.py: root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) paths = {'root_path': root_path, 'controllers': os.path.join(root_path, 'controllers'), 'templates': [os.path.join(root_path, path) for path in \

Re: SAContext 0.2.1

2007-07-04 Thread voltron
Just download the sacontext.py file Beachcoder, that works very well. On Jul 4, 6:33 am, beachcoder [EMAIL PROTECTED] wrote: Sorry, easy_install does not seem to work: error: Could not find suitable distribution for Requirement.parse('SAContext') On Jul 3, 8:21 pm, Mike Orr [EMAIL

Re: AttributeError: No configuration...using setup-app SOLVED

2007-07-04 Thread voltron
I had my imports of SAContext in the wrong place --~--~-~--~~~---~--~~ 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

Retrieving debug views

2007-07-03 Thread voltron
I am sending notifications per email from my controller, when finished, it loads and renders a template and injects a text that states that everything is accomplished. Strangely, I see a few debug views in the console despite the fact that everything worked. How can I get to these views that are

AttributeError: No configuration...using setup-app

2007-07-01 Thread voltron
I added a database defintation, class and mapper to my project, I then called : paster setup-app development.ini now I´m getting this: D:\Projects\Pylons_projects\testsitepaster setup-app development.ini Traceback (most recent call last): File C:\Python24\Scripts\paster-script.py, line 7, in

Re: mapping /static

2007-06-27 Thread voltron
Cool, would this also work behind a proxy server? The static path being on the proxy? On Jun 27, 8:57 am, Max Ischenko [EMAIL PROTECTED] wrote: On Jun 11, 1:48 pm, Max Ischenko [EMAIL PROTECTED] wrote: Hello, Default Pylons setup (middleware.py) configures StaticURLParser to handle

Re: Announcing SAContext 0.1.0

2007-06-23 Thread voltron
Does that mean I can instantiate an SAContext object and I can use it everywhere? In websetup.py, my controllers e.t.c? On Jun 23, 11:56 am, beachcoder [EMAIL PROTECTED] wrote: Great work ! Would it be fairly trivial to integrate this with Elixir ? On Jun 22, 7:37 pm, Mike Orr [EMAIL

  1   2   3   >