Re: Future of serving static content with pylons

2007-07-09 Thread Jose Galvez
Hmm I develop with apache on windows. I've not tried your problem yet, but I'll take a look at it Jose voltron wrote: > Same result Mike, moving the last two lines above the excludes doe not > work, static content is not used by the templates. maybe Apache is > doing a DNS lookup on "http://loca

Re: Future of serving static content with pylons

2007-07-09 Thread Jose Galvez
Dear Voltron, I just tested the whole proxypass thing on my windows box and it works as expected. Looking at your apache confg code below the only thing I see is that DocumentRoot is set incorrectly, if that is really how you have it set that may be the problem. I believe it needs to be set to th

Re: Future of serving static content with pylons

2007-07-10 Thread Jose Galvez
Dear Voltron I'm using vhosts on my install as well. Looking again at your config you need to move the exclusions back above the proxypass (I know you had it that way before) You also need to tell apache where to find the folders using the alias and directory directive. so your vhosts section sh

Re: Future of serving static content with pylons SOLVED

2007-07-10 Thread Jose Galvez
all those slashes will get you every time. I'm glad you got it working jose voltron wrote: > 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 wind

Re: Calling controller function from javascript

2007-07-10 Thread Jose Galvez
Dear Samuel, You are going to have to give us more info. I use link_to_remote all the time without any difficulty, so its hard to pin down where your problem is. What are you expecting to happen? link_to_remote doesn't send anything back to the browser without an "update", is the update not happ

Re: Path questions

2007-07-10 Thread Jose Galvez
I've had this problem before, the issue is that the javascript is using a relative urls in the the URL to link to the to the icons. The only way I was able to fix the problem was to actually make the js into a template, then I used h.url_for(...) for all the relative links in the js file. I then

Re: Calling controller function from javascript

2007-07-11 Thread Jose Galvez
> > } > > > function jqueryInit() > { > init_rating(); > $('div.rating/img').bind('click', submitRating); > } > > $(document).ready(jqueryInit); > > > > <% c.rating %> > > > Thank you for he

Re: Calling controller function from javascript

2007-07-11 Thread Jose Galvez
yep that looks correct Jose On 7/11/07, Dogen <[EMAIL PROTECTED]> wrote: > > > Hi Jose, > Thank you for help. Just to clear things - in order to access my > controller "dscuss_material.py" function "rate_material()", would be > the following text correct: ...url_for(controller = > "disscuss_mater

Re: Calling controller function from javascript

2007-07-11 Thread Jose Galvez
new Ajax.Request("''') > 36: m.write( url_for(controller='discuss_material', > action='rate_material', var='')); ) > 37: # SOURCE LINE 24 > 38: m.write(u'''"+starNbr, > 39:

Re: h.observe_field: no parameter for observed field passed to controller

2007-07-11 Thread Jose Galvez
You need to add two things: 1) you need to add frequency otherwise it will only update when you leave the field not wile you type within it, Try setting the frequency to 1 sec or 0.5 sec 2) you need to add the with_ attribute with something like this with_="{myVariable:document.getElementById('fie

where is with_ documented?

2007-07-11 Thread Jose Galvez
I was just looking at the h.observe_field function and noticed that it had a with_ parameter which is the javascript properties. So I tried it with h.remote_function as well to see if remote_function could also take the with_ parameter (which if it did, would solve a big problem for me) and it wor

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
Dear voltron, Routes uses the rules to figure out what controller and action to pass the request to. I can get complicated, but once your request has been passed to your controller routes does very little. I'm not sure what you mean by the standalone html works but a rendered page does not. I'm

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
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 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 f

putting binary data into the response

2007-07-13 Thread Jose Galvez
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 controller that should just send the binary data but I can't find how to stuff binary data into the response object. here is my code

Re: putting binary data into the response

2007-07-13 Thread Jose Galvez
Nope just stuffed them into the database as blobs On 7/13/07, voltron <[EMAIL PROTECTED]> wrote: > > > 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

Re: putting binary data into the response

2007-07-13 Thread Jose Galvez
Didn't work, what I get if I look at the Response.content is [] also if I try Response(binaryImage[0:]) the images gets truncated, because its trying to interpret the image as a string Jose On 7/13/07, Christoph Haas <[EMAIL PROTECTED]> wrote: > > > On Fri, Jul 13, 2007 at 01

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
I bet thats whats going on too, can I get a link the the actual pylons rendered page? Jose On 7/13/07, Erik Jones <[EMAIL 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

Re: putting binary data into the response

2007-07-13 Thread Jose Galvez
Thanks everyone for the help in the end I had corrupt data in the database so it was showing me exactly what it was supposed to. Jose On 7/13/07, Jose Galvez <[EMAIL PROTECTED]> wrote: > > Didn't work, what I get if I look at the Response.content is [ buffer for 0x016b00e0, siz

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
That would be great, I'd be happy to test it here if you want 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 an

Re: Pylons 0.9.6 Release Candidate 1

2007-07-15 Thread Jose Galvez
Ben Bangert wrote: > On Jul 15, 2007, at 10:25 AM, voltron wrote: > >> That worked, the project starts now. Is there some documentation >> somewhere that I can read about how things are to done with this new >> version? For example: >> >> 1. Using SAContext with 0.96 > > The latest SAContext wor

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Jose Galvez
Sure, First I was testing with pylons-0.9.6rc2dev_r2256-py2.5.egg The project was created with pylons 0.9.4.1 and then converted after installing rc2 using overwrite the test project was not installed using easy_install simply created and run from the created egg my controller is: from rc.lib.bas

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Jose Galvez
:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) On 7/16/07, Jose Galvez <[EMAIL PROTECTED]> wrote: > > Sure, > First I was testing with pylons-0.9.6rc2dev_r2256-py2.5.egg > > The project was created with pylons 0.9.4.1 and then c

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Jose Galvez
d pay close attention to the lib my base file. Any other files I should pay particular attention to? I guess what is going to be difficult is teasing away what you can allow to be overwritten vs what you can't let be overwritten Jose Ben Bangert wrote: > On Jul 16, 2007, at 2:40 PM, Jose

Re: Pylons 0.9.6 Release Candidate 1

2007-07-17 Thread Jose Galvez
upgrade output Jose Jose On 7/17/07, Ian Bicking <[EMAIL PROTECTED]> wrote: > > > Christoph Haas wrote: > > On Mon, Jul 16, 2007 at 03:19:16PM -0700, Ben Bangert wrote: > >> On Jul 16, 2007, at 2:40 PM, Jose Galvez wrote: > >> > >> Sure, > >&

button_to_remote

2007-07-18 Thread Jose Galvez
should "class_ " work with button_to_remote? I used it today and noticed that the class attribute was not set in the resulting html. Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To p

Re: button_to_remote

2007-07-18 Thread Jose Galvez
Sorry I meant to say submit_to_remote (my code actually has submit_to_remote) Jose Philip Jenvey wrote: > On Jul 18, 2007, at 7:03 PM, Jose Galvez wrote: > > >> should "class_ " work with button_to_remote? I used it today and >> noticed that the class attribu

Re: Trying to understand about Paste and web-server requirements

2007-07-24 Thread Jose Galvez
Ok here goes, PEP 333 (http://www.python.org/dev/peps/pep-0333/) laid out "a simple and universal interface between web servers and web applications or frameworks: the Python Web Server Gateway Interface (WSGI)." WSGI defines two basic aspects of the web interface, a server for interacting eith

Re: Comet Style App

2007-07-24 Thread Jose Galvez
take a look at this thread http://groups.google.com/group/pylons-discuss/tree/browse_frm/thread/a9231b21bbcc88a0/182469d3700eeda1?rnum=1&q=Response+and+sending+content+to+the+browser&_done=%2Fgroup%2Fpylons-discuss%2Fbrowse_frm%2Fthread%2Fa9231b21bbcc88a0%3Ftvc%3D1%26q%3DResponse%2Band%2Bsending%2

Re: Trying to understand about Paste and web-server requirements

2007-07-25 Thread Jose Galvez
no you should be able to use mod_proxy, to server your application just as Cliff has suggested. That is my personally favorite method to use with apache. Jose walterbyrd wrote: > > On Jul 25, 2:59 pm, Cliff Wells <[EMAIL PROTECTED]> wrote: > > >> It doesn't. Paste provides an HTTP server. Y

How to get the hostname from OSX

2007-07-26 Thread Jose Galvez
I know that is really has nothing to do with pylons, but I know this group is pretty knowledgeable. I need to get the host name from a computer, I know its IP address so I was using socket.gethostbyaddr(ip) which works for my windows computers, however I have a computer that is running OSX and whe

Re: Trying to understand about Paste and web-server requirements

2007-07-26 Thread Jose Galvez
I've never used mod_wsgi, how do you set it up? Jose On 7/26/07, Antonio Beamud Montero <[EMAIL PROTECTED]> wrote: > > > El mié, 25-07-2007 a las 19:08 -0700, Jose Galvez escribió: > > no you should be able to use mod_proxy, to server your application > > just as

Re: How to get the hostname from OSX

2007-07-27 Thread Jose Galvez
Miles <[EMAIL PROTECTED]> wrote: > > > On Jul 26, 9:10 pm, "Jose Galvez" <[EMAIL PROTECTED]> wrote: > > I know that is really has nothing to do with pylons, but I know this > group > > is pretty knowledgeable. I need to get the host name from a

should I code against the current release or the 0.96rc?

2007-07-30 Thread Jose Galvez
Hi all, I've got a pretty big project that is almost done with phase one, but will undoubtedly need updates in the very near future. Since I know that this will be a "work in progress" for at least the near future the big question is should I code against the current release (which it is currentl

Re: should I code against the current release or the 0.96rc?

2007-07-30 Thread Jose Galvez
use or for that matter how far away 0.96 really is Jose Max Ischenko wrote: > > > On 7/31/07, *Jose Galvez* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > Hi all, > I've got a pretty big project that is almost done with phase one,

Re: getting the IP address of the requester.

2007-08-01 Thread Jose Galvez
try request.environ['REMOTE_ADDR'] I usually drop this action into one of my controller to remind me of all the environ values def env(self): ''' Note this is a pylons 0.9.6 action, for pre 0.9.6 return Response('\n'.join(html)) ''' esc = h.util.html_escape ht

Re: Pylons and Python version

2007-08-01 Thread Jose Galvez
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 should > use? The reason behind this i

Re: Pylons 0.9.6rc2 - mimetype

2007-08-04 Thread Jose Galvez
Philip Jenvey wrote: > On Aug 4, 2007, at 1:00 AM, Dan Korostelev wrote: > > >> It's not a "mimetype", it's a "Content-Type" header. And in 0.9.6 >> you should use global "response" object. >> >> Like this: >> >> response.headers['Content-Type'] = 'application/xhtml+xml' >> return render('lo

Re: sqlalchemy is returning the wrong data

2007-08-06 Thread Jose Galvez
Dear Mike, I added the del sac.session_context.current to my base.py file and that fixed the problem. Thank you so much for the help I can't tell you how much this was driving me nuts Jose On 8/6/07, jose <[EMAIL PROTECTED]> wrote: > > > Thanks Mike, > So just to clarify I need to del the current

Re: Are my Python/Pylons concerns justified?

2007-08-08 Thread Jose Galvez
Apache will not have to re restarted, but you pylons application will have to be restarted. Also if you're in a shared environment you might want to take a look at workingenv which simplifies using python in that environment Jose On 8/8/07, walterbyrd <[EMAIL PROTECTED]> wrote: > > > On Aug 8, 12

Re: Themes in Pylons

2007-08-11 Thread Jose Galvez
Pylons is a fantastic framework, with lots of application structure built in. However, it offers no constraints, nor aid in the actual building of web sites. If you want to build in a consistent look and feel, you are going to have to build that all yourself. What I would recommend is using Mako

Re: New SQLAlchemy tutorial; SAContext is dead

2007-08-15 Thread Jose Galvez
Wow a lot to digest. I use assign_mapper which needs the session_context how do I get that with the the new setup? It was pretty easy to get with sacontext, I'm not sure how to get at it with this new setup Jose Mike Orr wrote: > I've updated "SQLAlchemy for people in a hurry" with the new > SQ

Re: New SQLAlchemy tutorial; SAContext is dead

2007-08-15 Thread Jose Galvez
Ok I think I posted to soon, I needed to read the website a little more closely before firing off stupid questions. Jose Jose Galvez wrote: > Wow a lot to digest. I use assign_mapper which needs the > session_context how do I get that with the the new setup? It was pretty > easy to

Re: iframe issue

2007-08-15 Thread Jose Galvez
the error is because the test1.html should not be relative to the template, but rather in your public folder Jose Alagu Madhu wrote: > Hi > > > templates/ > test.mako > test1.html > > > test.mako: > > > > I am getting error... > > > Error 404 > .. > > NOT FOUND > > > > Thanks > > > M

Re: iframe issue

2007-08-16 Thread Jose Galvez
The point is that you are calling the iframe source incorrectly. If your test1.html is a static file then it needs to be in your public folder, if its a template then you need to tie it to a controller and call the appropriate controller Jose On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrot

formencode

2007-08-16 Thread Jose Galvez
I'm trying to use formencode to validate a simple form. The question I have is: How can I make a field conditionally required? This is what I have, I have a pull down, with an "other" option. What I want to do is if other is selected then have a textbox become visible and be required, but only

Re: New SQLAlchemy tutorial; SAContext is dead

2007-08-16 Thread Jose Galvez
Well for me, I think in my production stuff I'll stick with sacontext and sqlalchemy 3x until this sorts out a little. Having said that I will play with the new stuff in a separate workingenv to get a taste of how things are going to work in the near future. What would be really nice is if pylons

Re: turning binary data into a file.

2007-08-16 Thread Jose Galvez
have you tried buf = urllib.urlopener().read() f = file('/somefile.jpg', 'wb') f.write(buf) f.close() Jose SamDonaldson wrote: > Guys, I have one short question and this relates to the FieldStorage > Pylons file object in the way it represents a posted image. Does > anybody know what the 'f

Re: formencode

2007-08-17 Thread Jose Galvez
of a field and if its set to a particular value, I can make a second field required. Jose On 8/17/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > > > > On 8/16/07, Jose Galvez <[EMAIL PROTECTED]> wrote: > > > > I'm trying to use formencode to validate a simple f

Re: Distributing application with py2exe

2007-08-22 Thread Jose Galvez
Its not py2exe but take a look at Bourbon you can install that on your windows box and then just install you application. Bourbon will let you run pylons as a windows service. Jose Steve M wrote: > Hi, I'm somewhat new to Pylons and do

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-22 Thread Jose Galvez
I was going through the 0.4 version of the tutorial today and saw that the reference to Session.mapper has been removed. Is Session.mapper from the first version not correct, or was it simply removed to make the tutorial simpler to read? I personally found that little nugget if info very helpful

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-23 Thread Jose Galvez
Thanks Mike, I'm glad its back in there Jose Mike Orr wrote: > On 8/22/07, Jose Galvez <[EMAIL PROTECTED]> wrote: > > http://wiki.pylonshq.com/display/pylonscookbook/SQLAlchemy+0.4+for+people+in+a+hurry > >> I was going through the 0.4 version of the tutor

Re: 'c' variable between redirects

2007-08-25 Thread Jose Galvez
Tomasz Nazar wrote: > > > On 8/24/07, *Christoph Haas* <[EMAIL PROTECTED] > > wrote: > > > > As I understand 'c' is always reset before any controller's > action - what is > > not fun for me, as in my app one "user" request/click is often 2 > (or more) >

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-25 Thread Jose Galvez
now I'll have to take a closer look at Session.mapper because it looks like your implying that is does something other then what the old assign mapper did. I have a project right now where I'm using Session.mapper and I've not hit any problems yet. And it does let me do from model import Mytable

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-25 Thread Jose Galvez
Ben, I've just read the Session.mapper docs and I'm not sure what your concerns are. Are you concerned with its use? or that putting it in the tutorial will confuse new users? Jose Ben Bangert wrote: > On Aug 22, 2007, at 10:16 PM, Mike Orr wrote: > >> I'm using Session.mapper in my application

Re: Pudge Doc Working?

2007-08-29 Thread Jose Galvez
I just installed pudge and buildutils on windows XP and setup.py pudge does not work. However I am also getting a really strange error, if I run pudge from the command line I get "from pudge import cli cannot import name cli" error. But if I move the pudge script to some other folder the pudge co

Re: Pudge Doc Working?

2007-08-29 Thread Jose Galvez
BTW other scripts in the scripts folder seems to work just fine Jose On 8/29/07, Jose Galvez <[EMAIL PROTECTED]> wrote: > > I just installed pudge and buildutils on windows XP and setup.py pudge > does not work. However I am also getting a really strange error, if I run > pudg

Re: Pudge Doc Working?

2007-08-29 Thread Jose Galvez
tried python setup.py pudge too, and that failed as well Jose On 8/29/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > > On Aug 29, 2007, at 11:21 AM, Jose Galvez wrote: > > > BTW other scripts in the scripts folder seems to work just fine > > Jose > > Script? It shou

Re: Trouble with Routes

2007-08-30 Thread Jose Galvez
Ben I took a look at your link and I'm confused. When you say "*Routes recognition and generation will always be explicit* " does this mean that the mapper mapper(':controller/:action/:id' action='index') will not match /main as /main/index Jose Ben Bangert wrote: > On Aug 28, 2007, at 2:00 AM,

Re: Trouble with Routes

2007-08-30 Thread Jose Galvez
ok so if I get it then mapper(':controller/:action', action='index') will match /main/index but not main. is that correct? Jose Ben Bangert wrote: > On Aug 30, 2007, at 6:07 PM, Jose Galvez wrote: > >> Ben I took a look at your link and I'm confused. Whe

Re: Trouble with Routes

2007-08-31 Thread Jose Galvez
so would adding mapper(':controller', action='index') above mapper(':controller/:action') map /main as main/index or will there be no real way to map a controller without an action to the index action? Jose On 8/31/07, Ben Bangert <[EMAIL PROTECTED]> wrote: &

Re: Trouble with Routes

2007-08-31 Thread Jose Galvez
te/something == http://mysite/something/index.php, index.html or what ever the default "page" is). Not sure if this makes sense or even if its valid. I'd be really interested in your thoughts about this Jose On 8/31/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > > On Aug 31

Re: Trouble with Routes

2007-08-31 Thread Jose Galvez
Ben Bangert wrote: > On Aug 31, 2007, at 2:25 PM, Jose Galvez wrote: > >> Dear Ben, >> In general I agree with you ambiguity is bad, and /user should be >> different from /users/index, however users are also lazy, and they >> have grown accustomed to being a

pyorbited tutorial error

2007-08-31 Thread Jose Galvez
First I'll apologize for cross posting but I'm not sure if this is an orbited, pylons or paste issue so this is being put on all three lists. Ok so I was going over the orbited pylons chat tutorial and I found an interesting error. I set up my pylons app to be served with cherrypy rather then P

Locking a page?

2007-09-06 Thread Jose Galvez
Hi all, I'm hunting for advice. I am looking for a way to "lock" a webpage so that only only one person at a time can edit database data. Here is the scenario, I have a database with a limited number of users who have write access to the database, what I'd like to do is lock the editing page so t

Re: Locking a page?

2007-09-06 Thread Jose Galvez
st saved the page, the >> lock field is reset and her editor is set also to editable="no" >> >> This is theoretical, as I am still having problems with the Javascript >> library I am using and Xinha( editor) and cant test at the moment. >> >> On Sep 6, 10:

Re: Anyone using Lighty?

2007-09-07 Thread Jose Galvez
Tried it on XP and found that I got much better speed with Apache 2.2 Jose On 9/7/07, voltron <[EMAIL PROTECTED]> wrote: > > > Anyone using lighty(http://www.lighttpd.net/) as a reverse proxy > server here? > > Thanks > > > > > --~--~-~--~~~---~--~~ You received th

Re: Pylons rc3?

2007-09-09 Thread Jose Galvez
take a look at pypi, it looks like 0.9.6 has been released :) Jose On 9/9/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > > > > On 9/9/07, Cesco <[EMAIL PROTECTED]> wrote: > > > > > > I have updated to 0.9.6rc3 and the error is still the same. > > > Sorry for hijacking the thread but is this release

Re: HTML select multiple handling

2007-09-11 Thread Jose Galvez
What do you mean, how write the code into a webpage, how to show the selected items or how to deal with what gets sent 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

Re: HTML select multiple handling

2007-09-13 Thread Jose Galvez
ot found any examples on the net. > > Thanks > > On Sep 12, 12:02 am, "Jose Galvez" <[EMAIL PROTECTED]> wrote: > >> What do you mean, how write the code into a webpage, how to show the >> selected items or how to deal with what gets sent in the post?

Re: Paster Daemon mode on Windows emits traceback

2007-09-14 Thread Jose Galvez
Daemon mode does not work on windows, check out Bourbon (http://chichen-itza.compmed.ucdavis.edu/trac/bourbontrac) if you want to run on Windows. Its basically just a Windows service wrapper around a paste composit setup, that works really well with Pylons. BTW now that Pylons 0.9.6 is offically

Re: Formencode self validation in pylons-0.9.6

2007-09-15 Thread Jose Galvez
Wow what a cool decorator. I know documentation is an ongoing and hard thing to finish, but I've never seen this in any of docs, did I miss it? Jose Ben Bangert wrote: > On Sep 15, 2007, at 5:10 AM, Леонид Моргун wrote: > >> I'm using pylons-0.9.6, formencode-0.7.1-r1 >> >> I try to validate con

How can I use a conditional section in an inherited template?

2007-09-16 Thread Jose Galvez
Hi all, Sorry for the cross post, but I know there are lots of Mako experts in the group too, and the project is a pylons project so I guess its fare to ask here too :) How can I use a conditional section in an inherited template. I thought this would work, but the content gets displayed twice.

Re: Formencode self validation in pylons-0.9.6

2007-09-16 Thread Jose Galvez
Stupid me, I need to look closer at the docs :) Jose Jose Galvez wrote: > Wow what a cool decorator. I know documentation is an ongoing and hard > thing to finish, but I've never seen this in any of docs, did I miss it? > Jose > > Ben Bangert wrote: > >> On Sep

Re: Understanding the session dict

2007-09-19 Thread Jose Galvez
Like Mike stated, I would bet that the problem is the browser cache. I say that because I use session variables all the time to keep track of users and display stuff depending on if they are logged in yet or not, and it works most all the time, except when the browser thwarts me with cached data

Bourbon 1.1 is released

2007-09-19 Thread Jose Galvez
Bourbon 1.1 has been released. If you don't know what Bourbon (http://chichen-itza.compmed.ucdavis.edu/trac/bourbontrac) is, in a nutshell its a Windows based install which sets up a paste composite application as a windows service. This allows you to add as many pylons apps as you want to app

authkit?

2007-09-20 Thread Jose Galvez
I started looking at authkit today and I think I picked the wrong time to look at, as it seems to be in flux. Does anyone know if authkit 0.3 works with pylons 0.9.6? The instructions aren't that clear (or maybe I've not read them close enough yet) and the the code is pre 0.9.6 so I don't know. Al

Re: authkit?

2007-09-20 Thread Jose Galvez
cation+and+Authorization > > On 9/20/07, Jose Galvez <[EMAIL PROTECTED]> wrote: > > I started looking at authkit today and I think I picked the wrong time > to > > look at, as it seems to be in flux. Does anyone know if authkit 0.3works > > with pylons 0.9.6? The i

Re: authkit?

2007-09-20 Thread Jose Galvez
has anyone got any working code for authkit with pylons 0.9.6 they would be willing to share? I've tried going through the examples on the wiki and I just can't get them to work. Specifically I was hopping to get the form authorization stuff to work Jose On 9/20/07, Jose Galvez <[EM

Re: Other form attributes in request.params

2007-09-24 Thread Jose Galvez
I'm certainly no expert,. I don't think anything else is actually sent in the post. What other attributes would you be after? Jose voltron wrote: > Is there a remote possibility to extract other attributes in a form > element other than the name attribute when using request.params? > > > Thanks

Re: Other form attributes in request.params

2007-09-24 Thread Jose Galvez
nes, I dynamically generated form elements that I would > like to save in a particular order. I have the ordering saved in a > self defined attribute in the tags. I´ll have to find another way to > sort that out that. > > Thanks > > On Sep 25, 1:22 am, Jose Galvez <[EMAIL PRO

internationalization, how to change character set?

2007-09-25 Thread Jose Galvez
I've been going over the docs on internationalization and was putting together a demo app. (well actually its a demo site for a current project to show that we can put together an international site. Any way I need to change the current charset form utf8 to latin-1. How is that done with the bab

Re: internationalization, how to change character set?

2007-09-25 Thread Jose Galvez
Thanks Philip thats what I needed to know Jose Philip Jenvey wrote: > On Sep 25, 2007, at 8:36 PM, Jose Galvez wrote: > > >> I've been going over the docs on internationalization and was putting >> together a demo app. (well actually its a demo site for a current

Re: Errors with window.open links

2007-09-29 Thread Jose Galvez
assuming preview_profile is an method in your testsite controller 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

Re: Returning binary data from controller

2007-10-01 Thread Jose Galvez
I've done this lots of times, especially for dynamically generated images. The steps I usually follow are: 1) get your binary data into StringIO, 2) set your content type to the correct header (response.headers['Content-type'] = 'image/jpeg' 3) return the binary data (return STringIO.StringIO.get

Re: Form re-rendering itself

2007-10-03 Thread Jose Galvez
Aaaron, This is such a simple and cool function! thanks for sharing it! Jose On 10/3/07, aaaron <[EMAIL PROTECTED]> wrote: > > > I override render_response() (now called render() in pylons 0.9.6 i > think) so any action can pass in default form values and htmlfill will > populate the form accordin

Re: Form re-rendering itself

2007-10-03 Thread Jose Galvez
ase, I am captruring data from a very large form, the > > controller form that takes care of this is over 50 lines long, I > > think, and when I try to use the same procedure as always( as above) > > it does not work > > > > Thats all, it would not make sense to post such

Re: Modifications in templates

2007-10-06 Thread Jose Galvez
if your in firefox try clearing your cache - use the clear personal data function, I've found that I have to do that sometimes with firefox because its can be really aggressive with its cache. Jose Jérôme wrote: > yes, I meant the controller which makes the call to the template file > with the r

Re: access to request_uri and query_string

2007-10-06 Thread Jose Galvez
Wow the best part of getting all this stuff in my email is that I usually learn something new with every thread :-) Jose Philip Cooper wrote: > On Oct 5, 2007, at 5:46 PM, ch wrote: > > >> Forgive me, request.environ.get('QUERY_STRING') actually *does* work. >> But I still can't get the reques

Re: Implementing URL forwarding.

2007-10-06 Thread Jose Galvez
well you've got a couple of choices, h.current_url() will give you your current url, however I've found that using the retrieved url with redirect_to does not always work, especially if your app is part of a composite paste app you get the enture url, but what you need to feed the redirect_to func

Re: FCK Editor controller

2007-10-15 Thread Jose Galvez
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 > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: FCK Editor controller

2007-10-15 Thread Jose Galvez
I might not get to it until later this evening (the code is sitting on my laptop and not on one of my main desktops, but I'll try and get to it tonight Jose On 10/15/07, voltron <[EMAIL PROTECTED]> wrote: > > > Coolio! :-)) > > On Oct 15, 5:33 pm, Jose Galvez <[EMAI

Re: Classic URL Style

2007-11-06 Thread Jose Galvez
you could add for k,v in request.params: locals()[k] = v to the top f your functions this would inject the variable names into your functions do you could use them directly. I don't know what security risks this will bring up however Jose Humberto Diógenes wrote: > On Nov 6, 4:44 pm, Albe

Re: Classic URL Style

2007-11-06 Thread Jose Galvez
Thanks for the correction Mike Jose Mike Orr wrote: > On 11/6/07, Jose Galvez <[EMAIL PROTECTED]> wrote: > >> you could add >> for k,v in request.params: >> locals()[k] = v >> to the top f your functions >> >> this would inject the variab

Re: Routes user survey

2007-11-23 Thread Jose Galvez
please don't get rid of url_for(controller='foo', action='bar') I use that all the time, and although I know that url_for('named route') does look more elegant, if you get rid of the former behavior, then we're left having to name all of our controller/actions pairs. To me this looks like jus

Re: moin moin integration, please help

2007-12-08 Thread Jose Galvez
Hi Max, The project that I'm working on (not totaly ready for prime time yet) is the Center for Gnomic Pathology (cgp.compmed.ucdavis.edu) its basically a pylons app (the current site is more of a poof of concept as its still basically missing a lot of the authentication stuff needed for the

Re: Webhelper not work in template

2007-12-11 Thread Jose Galvez
why the repr? did you try just ${h.options_for_select(['test','test'])} On Dec 11, 2007 8:49 AM, Olli Wang <[EMAIL PROTECTED]> wrote: > > Hi, I want to create a selection filed in template. > > I tried "h.options_for_select(['test', 'test'])" in shell, > it correctly returned > 'test\ntest option

Re: Webhelper not work in template

2007-12-11 Thread Jose Galvez
TED]> wrote: > > Yes, I tried. But it returns just "test test", so I use repr() to show > the source code for comparison. > > On Dec 12, 1:01 am, "Jose Galvez" <[EMAIL PROTECTED]> wrote: > > why the repr? did you try just ${h.options_for_select(['

Re: openid and authentication

2008-02-22 Thread Jose Galvez
cool thats the part I'm missing, I'll have to find and example of how thats implemented to give this test jose On Fri, Feb 22, 2008 at 11:37 AM, Philip Cooper <[EMAIL PROTECTED]> wrote: > > On Fri, Feb 22, 2008 at 12:13 PM, jose <[EMAIL PROTECTED]> wrote: > > > > Do if have it right in thinking

Re: Are you going to convert Pylons code into Python 3000?

2008-03-04 Thread Jose Galvez
this is an interesting issue, because I would suspect that all our pylons applications will have to be converted as well as the pylons base code. I know that there is going to be a program which will automate the translation, but not having used it I don't know what issues the translation will cau

Re: Passing binary data received via Soap call

2008-03-06 Thread Jose Galvez
take a look at http://groups.google.com/group/pylons-discuss/browse_thread/thread/32f4a69cfc4a170f/dfbfe6f41105352d?lnk=gst&q=yield#dfbfe6f41105352dand see if that give you the info you need Jose On Thu, Mar 6, 2008 at 7:06 AM, amlio <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm pretty new to Pylons

  1   2   3   4   >