[web2py] Default Application

2010-03-16 Thread Francisco Costa
Hello! This is my first time on the list. First of all I want to congratulate everyone with the fantastic job you are doing on web2py. Every time I discover more about it I get more fascinated. It's been a very enthusiastic experience learning how web2py works and the possibilities for it are

Re: [web2py] Default Application

2010-03-16 Thread Francisco Costa
Thank you very much! I'm on Linux and worked five starts! Francisco Costa http://franciscocosta.com On Tue, Mar 16, 2010 at 13:34, Kuba Kucharski kuba.kuchar...@gmail.comwrote: linux/unix: cd web2py/applications ln -s your_app init I assume you don't have a folder called init

[web2py] routes.py not working

2010-03-18 Thread Francisco Costa
Hello I have step up an web2py project on http://bondiu.info I've started to edit the welcome application and I've made an init symbolic link to the welcome application. Now I pretend to remove the /init/ from the urls. This way I renamed routes.example.py to routes.py and made this changes

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Hello Vasile, Thank you for your help! I've changed my routes.py to routes_in = ( ('/admin/(.*)', '/admin/$1'), ('/(.*)', '/init/$1'), ) but /init/ still displays as you can see it here: http://bondiu.info I've also chmod the routes.py to 777 but no luck either On Mar 19, 11:50 am, Vasile

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Thank you mr.feeze and Vasile for your help I wasn't.. :/ Now it works perfectly! On Mar 19, 12:32 pm, Vasile Ermicioi elff...@gmail.com wrote: yes, to apply changes in routes you need to restart web server -- You received this message because you are subscribed to the Google Groups

[web2py] Add fields to db.auth_user

2010-03-21 Thread Francisco Costa
Hello! I would like to add a few more fields to db.auth_user Where can I do that? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: Add fields to db.auth_user

2010-03-21 Thread Francisco Costa
thank you Mr. Freeze I really should read the book On Mar 21, 7:20 pm, mr.freeze nat...@freezable.com wrote: Look here under Customizing Auth http://web2py.com/book/default/section/8/1 On Mar 21, 2:14 pm, Francisco Costa m...@franciscocosta.com wrote: Hello! I would like to add a few more

[web2py] Friendly URLs

2010-04-04 Thread Francisco Costa
Hello! I've installed WordpressClone http://web2py.com/appliances/default/show/36 and i would like to have each post with a friendly url instead of http://domain/blog/default/post/7 have something like http://domain/welcome-to-pypress/ Thank you -- You received this message because you are

[web2py] Re: Friendly URLs

2010-04-04 Thread Francisco Costa
blogitizor -http://code.google.com/p/blogitizor/ currently running on thadeusb.com -Thadeus On Sun, Apr 4, 2010 at 12:03 PM, mdipierro mdipie...@cs.depaul.edu wrote: that is a very old app. I needs some work. On Apr 4, 10:16 am, Francisco Costa m...@franciscocosta.com wrote: Hello! I've

[web2py] Feed validator

2010-04-08 Thread Francisco Costa
Hello, When validating my feed i get this recomendation: Feeds should not be served with the text/html media type: http://beta.feedvalidator.org/docs/warning/UnexpectedContentType.html How can I change the MIME type for application/rss+xml ? -- You received this message because you are

[web2py] Re: Feed validator

2010-04-08 Thread Francisco Costa
at 10:31 AM, Francisco Costa m...@franciscocosta.com wrote: Hello, When validating my feed i get this recomendation: Feeds should not be served with the text/html media type: http://beta.feedvalidator.org/docs/warning/UnexpectedContentType.html How can I change the MIME type

[web2py] Re: Feed validator

2010-04-08 Thread Francisco Costa
: response.headers['Content-Type'] = 'applications/rss+xml' -Thadeus On Thu, Apr 8, 2010 at 10:31 AM, Francisco Costa m...@franciscocosta.com wrote: Hello, When validating my feed i get this recomendation: Feeds should not be served with the text/html media type: http://beta.feedvalidator.org

[web2py] Search Function

2010-04-08 Thread Francisco Costa
Hello, i was trying to implement a search function so I've tried this wiki example (http://web2py.com/book/default/section/3/9) I can create pages, but I cannot search for them. Is the search function wrong? Is there others examples of search function? -- You received this message because you

[web2py] Re: Search Function

2010-04-11 Thread Francisco Costa
Anyone can give me some example on this? Thank you On Apr 8, 7:38 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, i was trying to implement a search function so I've tried this wiki example (http://web2py.com/book/default/section/3/9) I can create pages, but I cannot search for them

[web2py] Re: Search Function

2010-04-11 Thread Francisco Costa
changing this in bg_find: pattern = '+ request.vars.keyword.lower() + ' to this: pattern = '%' + request.vars.keyword.lower() + '%' On Apr 11, 12:07 pm, Francisco Costa m...@franciscocosta.com wrote: Anyone can give me some example on this? Thank you On Apr 8, 7:38 pm, Francisco Costa m

[web2py] Display Image from FieldStorage

2010-04-11 Thread Francisco Costa
Hello, I'm using a custom form that has an upload field in the model. When i submit the form I use a request.vars.name and saves the file as an FieldStorage.. I don't know if the file is uploaded and how I can access it. I would like to have the file upload to appname/uploads directory as if I

[web2py] Re: Display Image from FieldStorage

2010-04-11 Thread Francisco Costa
still didn't found how to solve this problem.. :/ any help? On Apr 11, 7:23 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I'm using a custom form that has an upload field in the model. When i submit the form I use a request.vars.name and saves the file as an FieldStorage.. I

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
11, 11:31 pm, mdipierro mdipie...@cs.depaul.edu wrote: Please show us your code. On Apr 11, 1:23 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I'm using a custom form that has an upload field in the model. When i submit the form I use a request.vars.name and saves the file

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
: There is an entry regarding this in the book- http://web2py.com/book/default/section/3/6 It's almost the same stuff.. On Apr 12, 3:54 pm, Francisco Costa m...@franciscocosta.com wrote: Model db.define_table('space',     Field('name'),     Field('slug', 'string'),     Field('description','text

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
I found the solution reading the image uploading thread. On Apr 12, 12:47 pm, Francisco Costa m...@franciscocosta.com wrote: Hello lshbit, thank you for your answer, but i think my problem is a bit different. I'm using acustomformas you can see in add_space.html and I use a photo

[web2py] Translate small words

2010-04-24 Thread Francisco Costa
Hello! I'm trying to translate small words (2 chars) like T('in') but they don't appear in Editing Language files. If I try with a 4 letters words I can translate. Is there any chance i can reduce the length of the word to 2 chars? Thanks -- Subscription settings:

[web2py] Re: Translate small words

2010-04-26 Thread Francisco Costa
? On Apr 24, 7:33 am, Francisco Costa m...@franciscocosta.com wrote: Hello! I'm trying to translatesmallwords(2 chars) like T('in') but they don't appear in Editing Language files. If I try with a 4 letterswordsI can translate. Is there any chance i can reduce the length of the word to 2

[web2py] Image Thumbnails

2010-05-01 Thread Francisco Costa
Hello, I'm thinking in using JCrop (http://deepliquid.com/projects/Jcrop/ demos.php?demo=thumbnail) in a project to users crop their personal avatars. I was wondering if there is any project that has a thumbnail cropping system already developed...

[web2py] Fullcalendar with JSON

2010-05-08 Thread Francisco Costa
Hello, I'm trying to use Fullcalendar in my app, and I would like to call events from a JSON external file like this example: http://arshaw.com/js/fullcalendar/examples/json.html The problem is that I must have the JSOn file in the same directory as the .html How can I do this in web2py?

[web2py] Re: Fullcalendar with JSON

2010-05-08 Thread Francisco Costa
the json at /init/ajax_lib/events.json. You just need to make sure to return the correct JSON structure that fullcalendar understands. You will need a custom json template, because you need to return a list. -- Thadeus On Sat, May 8, 2010 at 3:53 AM, Francisco Costa m...@franciscocosta.com wrote

[web2py] Belongs orders results by id

2010-05-13 Thread Francisco Costa
I have this query db(db.space.id.belongs(result_id)).select() the result id is an unsorted array of ids I don't want the query results to be order by id The SQL list this SELECT space.id, space.name FROM space WHERE space.id IN (1,6,136,2,18,119,122) i want the result to be in the order of the

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
is this a SQL Bug/feature? how can I change it? On May 13, 11:53 am, Francisco Costa m...@franciscocosta.com wrote: I have this query db(db.space.id.belongs(result_id)).select() the result id is an unsorted array of ids I don't want the query results to be order by id The SQL list

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
how can i sort results in the array order then? On May 13, 2:42 pm, mdipierro mdipie...@cs.depaul.edu wrote: I think this is a SQL feature they sort list to use binary search in the index for the table for efficiency). On May 13, 6:57 am, Francisco Costa m...@franciscocosta.com wrote

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
yes, then 2,18,119,122 On May 13, 3:22 pm, Mengu whalb...@gmail.com wrote: so you want them to be ordered as first 1 then 6, then 136 etc? On 13 Mayıs, 13:53, Francisco Costa m...@franciscocosta.com wrote: I have this query db(db.space.id.belongs(result_id)).select() the result id

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
Mayıs, 17:28, Francisco Costa m...@franciscocosta.com wrote: yes, then 2,18,119,122 On May 13, 3:22 pm, Mengu whalb...@gmail.com wrote: so you want them to be ordered as first 1 then 6, then 136 etc? On 13 Mayıs, 13:53, Francisco Costa m...@franciscocosta.com wrote: I have

[web2py] append position

2010-08-14 Thread Francisco Costa
Hello! is there any way you can append a value to the first position? I have this for num in all_updates: session.updates.append(num) but I want what i already have in the session.updates to appear last Thanks

[web2py] Re: append position

2010-08-14 Thread Francisco Costa
I've managed to use for num in all_updates:                session.updates.insert(0,num) Avé Massimo

[web2py] Invalid Reset Password

2010-08-25 Thread Francisco Costa
I have this function in the default controller def retrieve_password(): return dict(form=auth.retrieve_password()) and I have this view default/retrieve_password.html {{response.title=T('Retrieve Password')}} {{extend 'layout.html'}} {{app=request.application}}

[web2py] Re: Invalid Reset Password

2010-08-25 Thread Francisco Costa
Just realized I was missing this field in the database table: Field('reset_password_key', length=128, default= '', writable=False, readable=False), On Aug 25, 3:10 pm, Francisco Costa m...@franciscocosta.com wrote: auth_table = db.define_table(     auth.settings.table_user_name,     Field

[web2py] Custom Forms validation

2010-08-25 Thread Francisco Costa
Hello, I would like to know if you can have ajax validators when using custom forms. I leave here an example of a view to change password: {{form=auth.change_password(next=URL(r=request, c='default', f='login'))}} h1{{=T('Change Password')}}/h1 {{=form.custom.begin}} table

[web2py] view SQL query

2010-09-01 Thread Francisco Costa
How can I see the SQL queries made after loading a page?

[web2py] js.call_function with arguments

2010-09-01 Thread Francisco Costa
i have this autorefresh form = SQLFORM.factory(Field('AutoUpdates', requires=IS_IN_SET(['On','Off']),default=On, widget=SQLFORM.widgets.radio.widget)) refresh.ready(jq(input[type='submit']).hide()()) callback = js.call_function(timer_tick) refresh.ready(js.timer(callback,1))

[web2py] Re: view SQL query

2010-09-01 Thread Francisco Costa
I really need to see the SQL that this generate last_updates = db((db.event_social.created_onsession.verificado)(db.event_social.event_id==this_event)).select(db.event_social.ALL,orderby=~db.event_social.created_on) On Sep 1, 12:24 pm, Francisco Costa m...@franciscocosta.com wrote: How can I

[web2py] Re: view SQL query

2010-09-01 Thread Francisco Costa
Yes, that would be very nice! On Sep 1, 2:40 pm, mdipierro mdipie...@cs.depaul.edu wrote: You cannot see all of them, You can see the last one print db._lastdb perhaps now that we have app logging capabilities we should add teh ability to log all queries. On Sep 1, 6:24 am, Francisco

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
the 'args' parameter and it will show up in request.args. On Sep 1, 6:44 am, Francisco Costa m...@franciscocosta.com wrote: i have this autorefresh     form = SQLFORM.factory(Field('AutoUpdates', requires=IS_IN_SET(['On','Off']),default=On, widget=SQLFORM.widgets.radio.widget

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
...@freezable.com wrote: You can't pass arguments to exposed functions. Use the method(s) I outlined instead: def timer_tick():     if request.vars.my_var_passed_in_data:         I can be more specific if you tell me what you are trying to pass to timer_tick. On Sep 1, 8:57 am, Francisco Costa

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
timer_tick will be eval'd by default. What do you want to do with the value from your db query in the UI? On Sep 1, 9:17 am, Francisco Costa m...@franciscocosta.com wrote: please be more specific.. In timer_tick I do a db query, and I need to pass a value to succeed on that query. I could

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
Any help? I'm becoming desperate for a solution that works :/ On Sep 1, 3:42 pm, Francisco Costa m...@franciscocosta.com wrote: this is at the the controller that loads the restaurant page     callback = js.call_function(timer_tick, args=restaurant_id) this is at the timer_tick

[web2py] Re: view SQL query

2010-09-04 Thread Francisco Costa
. On Sep 1, 6:24 am, Francisco Costa m...@franciscocosta.com wrote: How can I see the SQL queries made after loading a page?

[web2py] Verify mail.send in custom form

2010-09-07 Thread Francisco Costa
Hello. I've built a custom registration form. I also use a custom controller to save the user to the db. But would like to use email verification after register. Any thoughts?

[web2py] Re: Verify mail.send in custom form

2010-09-07 Thread Francisco Costa
It's a bit big because of all the validations, but here it goes: import re, random, os, shutil def create(): first_name = request.vars.firstname session.first_name = first_name last_name = request.vars.lastname session.last_name = last_name email = request.vars.email

[web2py] Set ID to auth.register()

2010-09-07 Thread Francisco Costa
If this: form=auth.register(next=URL(r=request, c='default', f='create')) form.custom.begin how can I set an ID in the generated html form ?

[web2py] Re: Set ID to auth.register()

2010-09-07 Thread Francisco Costa
, Francisco Costa m...@franciscocosta.com wrote: If this:                 form=auth.register(next=URL(r=request, c='default', f='create'))                 form.custom.begin how can I set an ID in the generated html form ?

[web2py] Re: Set ID to auth.register()

2010-09-07 Thread Francisco Costa
, Francisco Costa m...@franciscocosta.com wrote: yes.. I want the html id I've tried as follow but didn't work form=auth.register(next=URL(r=request, c='default', f='create')) form['_id']=ola form.custom.begin On Sep 7, 5:20 pm, mdipierro mdipie...@cs.depaul.edu wrote: I assume

[web2py] Recommender System

2010-09-11 Thread Francisco Costa
Hi, I'm building this social web app and now I'm considering implement some recommendations to the users based on their usage or profile. Can someone point some available systems that go well with web2py? Would you consider develop your own recommender system or use an existing one?

[web2py] no application URL in function with arguments

2010-09-29 Thread Francisco Costa
Hello! I have the following routes: routes_in = ( ('/$c/$f', '/welcome/$c/$f'), ) routes_out = ( ('/welcome/$c/$f', '/$c/$f'), ) but when I have a function that needs some arguments, the URL link with the 'welcome' application. What should I do?

[web2py] Re: no application URL in function with arguments

2010-09-29 Thread Francisco Costa
I've managed with routes_in = ( ('/(?Pany.*)', '/welcome/\gany'), ) routes_out = ( ('/welcome/(?Pany.*)', '/\gany'), ) but now i can't see some images like: http://domain.com/welcome/controller/download/some.image.png On Sep 29, 11:41 pm, Francisco Costa m...@franciscocosta.com wrote

[web2py] Re: no application URL in function with arguments

2010-09-29 Thread Francisco Costa
nevermind.. this last solution works On Sep 30, 12:03 am, Francisco Costa m...@franciscocosta.com wrote: I've managed with routes_in = (     ('/(?Pany.*)', '/welcome/\gany'), ) routes_out = (     ('/welcome/(?Pany.*)', '/\gany'), ) but now i can't see some images like:http

[web2py] shorting your URL with routes

2010-09-30 Thread Francisco Costa
Hello! I have this url http://domain.com/welcome/user/view/username that shows a user profile page. I've already get rid of the 'welcome application mae by using the following routes routes_in = ( ('/(?Pany.*)', '/welcome/\gany'), ) routes_out = ( ('/welcome/(?Pany.*)', '/\gany'), ) so the

[web2py] Re: shorting your URL with routes

2010-09-30 Thread Francisco Costa
Hello Wikus, tx for your answer. It only works if I don't have the previous routes that cut the 'welcome' application. Can you make it work with bouth? I wouldn't like to show the application name in the others controllers/ functions urls. On Sep 30, 11:57 am, Wikus van de Merwe

[web2py] Re: shorting your URL with routes

2010-09-30 Thread Francisco Costa
any thoughts on this one? On Sep 30, 12:57 pm, Francisco Costa m...@franciscocosta.com wrote: Hello Wikus, tx for your answer. It only works if I don't have the previous routes that cut the 'welcome' application. Can you make it work with bouth? I wouldn't like to show the application

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
Thank you for your answers, both work for me, i didn't know that the order was important. But the thing is that I have others functions in the user controller that stopped to work, unless I have a dedicated route for them. ex: /welcome/user/index is a list of all users and only works if I had

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
is it possible? On Oct 1, 10:55 am, Francisco Costa m...@franciscocosta.com wrote: Thank you for your answers, both work for me, i didn't know that the order was important. But the thing is that I have others functions in the user controller that stopped to work, unless I have a dedicated

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
, Francisco Costa m...@franciscocosta.com wrote: is it possible? On Oct 1, 10:55 am, Francisco Costa m...@franciscocosta.com wrote: Thank you for your answers, both work for me, i didn't know that the order was important. But the thing is that I have others functions in the user controller

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
/(.+), r/\1), ) The thing is that I have more functions in the user control and they don't work unless I add a route for each of those functions. On Oct 1, 5:25 pm, Jonathan Lundell jlund...@pobox.com wrote: On Oct 1, 2010, at 9:20 AM, Francisco Costa wrote: Has I said before, that way other

[web2py] Re: shorting your URL with routes

2010-10-02 Thread Francisco Costa
Thank you Jonathan and Wikus. I only have a few functions in the users controller so I will list them like Wikus showed. I appreciate all your help. On Oct 2, 1:00 am, Jonathan Lundell jlund...@pobox.com wrote: On Oct 1, 2010, at 9:48 AM, Francisco Costa wrote: I would like to improve my

[web2py] Re: Twitter registration/login

2010-10-08 Thread Francisco Costa
... On Fri, Oct 8, 2010 at 6:12 PM, Francisco Costa m...@franciscocosta.comwrote: Hello! Is there any available application with twitter register/login?

[web2py] Re: Twitter registration/login

2010-10-08 Thread Francisco Costa
/source/brows... On Fri, Oct 8, 2010 at 6:12 PM, Francisco Costa m...@franciscocosta.comwrote: Hello! Is there any available application with twitter register/login?

[web2py] Re: Twitter registration/login

2010-10-11 Thread Francisco Costa
email unread ;-) 2010/10/8 Francisco Costa m...@franciscocosta.com: nevermind.. I've already got it. Thank you very much for your help Albert! On Oct 8, 5:30 pm, Albert Abril albert.ab...@gmail.com wrote: Yes, Michelle Commitini wrote the welcome app withtwitterauthetication with OAuth

[web2py] Facebook/Twitter/Google login + normal login

2010-10-11 Thread Francisco Costa
Hello, I'm trying to implement a twitter login using this auth.settings.login_form=TwitterTest(globals(),CLIENT_ID,CLIENT_SECRET, AUTH_URL, TOKEN_URL, ACCESS_TOKEN_URL) but when you use auth.settings.login_form you lose regular login is there a way to have both?

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-11 Thread Francisco Costa
anyone? On Oct 11, 5:18 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I'm trying to implement a twitter login using this auth.settings.login_form=TwitterTest(globals(),CLIENT_ID,CLIENT_SECRET, AUTH_URL, TOKEN_URL, ACCESS_TOKEN_URL) but when you use auth.settings.login_form you

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-11 Thread Francisco Costa
anyone? On Oct 11, 5:18 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I'm trying to implement a twitter login using this auth.settings.login_form=TwitterTest(globals(),CLIENT_ID,CLIENT_SECRET, AUTH_URL, TOKEN_URL, ACCESS_TOKEN_URL) but when you use auth.settings.login_form you

[web2py] Re: Twitter registration/login

2010-10-11 Thread Francisco Costa
any help on this one? On Oct 11, 4:53 pm, Francisco Costa m...@franciscocosta.com wrote: I have a problem with this solution, because I also offer normallogin. Is their a way that i can use both? On Oct 8, 8:38 pm, Michele Comitini michele.comit...@gmail.com wrote: Albert, Bruno, thank

[web2py] 'IS_NOT_EMPTY' is not defined

2010-10-14 Thread Francisco Costa
I'm getting this: NameError: global name 'IS_NOT_EMPTY' is not defined What should i import?

[web2py] Re: 'IS_NOT_EMPTY' is not defined

2010-10-14 Thread Francisco Costa
, Francisco Costa m...@franciscocosta.com wrote: I'm getting this: NameError: global name 'IS_NOT_EMPTY' is not defined What should i import?

[web2py] .htaccess in web2py

2010-10-30 Thread Francisco Costa
I really would like to protect a website content with a .htaccess password file like this one http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/ I just don't know where to put the file at... Any help?

[web2py] Re: .htaccess in web2py

2010-10-30 Thread Francisco Costa
tried both.. none worked out :( On Oct 30, 4:09 pm, VP vtp2...@gmail.com wrote: I'd think either in web2py root or web2py/applications/yourapp. On Oct 30, 9:28 am, Francisco Costa m...@franciscocosta.com wrote: I really would like to protect a website content with a .htaccess password

[web2py] Re: .htaccess in web2py

2010-10-30 Thread Francisco Costa
How is your server configured? What are you using? Ubuntu 10.10 + Apache 2 and I'm serving the files at /var/www/web2py

[web2py] Re: .htaccess in web2py

2010-10-30 Thread Francisco Costa
You might consider configuring passwords in httpd.conf instead of .htaccess, if you have control over the whole server. Thank you for the suggestion.. I will look into it Are you doing this as an alternative to web2py auth? No, I've finished a project and I've put it online, but before it

[web2py] no-WWW in routes

2010-11-04 Thread Francisco Costa
Is there a way that we can route a website so that http://www.domain.com redirect to http://domain.com If you can't do this with routes how you can do it?

[web2py] Re: no-WWW in routes

2010-11-04 Thread Francisco Costa
ok I've added the following to my virtual-host RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] On 4 Nov, 16:22, mdipierro mdipie...@cs.depaul.edu wrote: Not with routes. Apache mod_rewrite On Nov 4, 10:49 am, Francisco Costa m

[web2py] TAG colon problem

2010-11-04 Thread Francisco Costa
I'm trying to do a sitemap for my site. The thing is that when I set sitemap=TAG.urlset(_xmlns='http://www.sitemaps.org/schemas/sitemap/ 0.9', _xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;) the xmlns:xsi gives error because of the colon (:) Is there any way that i can change this?

[web2py] Re: TAG colon problem

2010-11-04 Thread Francisco Costa
is this a bug or a python issue? On 4 Nov, 21:12, Francisco Costa m...@franciscocosta.com wrote: I'm trying to do a sitemap for my site. The thing is that when I set sitemap=TAG.urlset(_xmlns='http://www.sitemaps.org/schemas/sitemap/ 0.9', _xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

[web2py] Re: TAG colon problem

2010-11-06 Thread Francisco Costa
On Nov 5, 1:15 am, DenesL denes1...@yahoo.ca wrote: sitemap=TAG.urlset(**{'_xmlns':'http://www.sitemaps.org/schemas/ sitemap/0.9', '_xmlns:xsi':http://www.w3.org/2001/XMLSchema- instance}) Tx!

[web2py] Re: SCRIPT tag

2011-01-13 Thread Francisco Costa
SCRIPT() works just like Massimo told... I just realized that I was coppying the resulting div that contained the javascript through an document.getElementById(id).innerHTML; to another div, and the script tags arrent supported! Thank you for your help, and sorry for the confusion I've made. On

[web2py] ajax append target

2011-01-13 Thread Francisco Costa
Hello! I have an ajax function that return some values. The thing is that I don't want it to replace the content of my target div. Instead i would like to append it to the values that are already there. Is this possible?

[web2py] Re: ajax append target

2011-01-13 Thread Francisco Costa
(',\\') On Jan 13, 4:31 pm, Francisco Costa m...@franciscocosta.com wrote: Hello! I have an ajax function that return some values. The thing is that I don't want it to replace the content of my target div. Instead i would like to append it to the values that are already

[web2py] Re: ajax append target

2011-01-13 Thread Francisco Costa
forget it.. it works! the thing is that i have a script on the content... and when it returns, the script is gone On Jan 14, 12:05 am, Francisco Costa m...@franciscocosta.com wrote: that replaces the target contet with a string var x=$('#target'); x.html(x.html()+' what is wrong

[web2py] Re: ajax append target

2011-01-14 Thread Francisco Costa
. Use the jQuery append() function to add your ajax result in any DOM part of your page. cfhttp://api.jquery.com/append/ 2011/1/13 Francisco Costa m...@franciscocosta.com: Hello! I have an ajax function that return some values. The thing is that I don't want it to replace

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Francisco Costa
Thank you all for the inclusion. I haven't made any promotion here, because tymr.com is a one man project for now, and i'm not yet fully satisfied with the result. I'm looking for some angel ou vc investment but the economy is not very good in Portugal at the moment. On Jan 17, 4:58 pm, Anthony

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Francisco Costa
together, I can try something in Brazil. Bruno Rochahttp://about.me/rochacbruno/bio 2011/1/17 Francisco Costa m...@franciscocosta.com Thank you all for the inclusion. I haven't made any promotion here, because tymr.com is a one man project for now, and i'm not yet fully satisfied

[web2py] direct access to page

2011-01-24 Thread Francisco Costa
Hello, I have this view that I call in other. I don't want this view to have direct access.. thoughts?

[web2py] Re: direct access to page

2011-01-24 Thread Francisco Costa
I've used: if not request.env.http_referer: redirect page pass On Jan 24, 8:45 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I have this view that I call in other. I don't want this view to have direct access.. thoughts?

[web2py] dynamic session variables

2011-01-31 Thread Francisco Costa
Hello, I want to have dinamic session variables like this: session.id where id is different from page to page.. I've tried id = variable session.id and session.id['variable'] without any results. I would like to be able to open different pages at the same time and the browser

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
I want something like this: if not session.id[page_id]: session.id[page_id]=str(request.now) but i get this error: KeyError: '74' I want to validate if a dynamic variable exists.. if not I want to create it and to get the time On Feb 1, 4:17 am, Jason Brower encomp...@gmail.com

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
[page_id]=session.id.get(page_id,str(request.now)) On Feb 1, 9:59 am, Francisco Costa m...@franciscocosta.com wrote: I want something like this:     if not session.id[page_id]:         session.id[page_id]=str(request.now) but i get this error: KeyError: '74' I want to validate

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
: On Feb 1, 2011, at 11:54 AM, Francisco Costa wrote: the problem is when i open a second tab, it copies the session.id and doesn't recognize the new page_id basically what i want is a diferrent session.id[page_id] for each tab i open where is page_id coming from? Perhaps the intended code

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
=lastcheck and then query the db for posts created after firstcheck if returns any results: session.id[post_id]=str(request.now) On Feb 1, 8:27 pm, Francisco Costa m...@franciscocosta.com wrote: I'm trying to do a realtime commenting system. I have this place for comments in posts, and I

[web2py] Re: Support for PyPy

2012-03-11 Thread Francisco Costa
They say its incompatible https://bitbucket.org/pypy/compatibility/wiki/web2py Could someone run some tests? On Tuesday, February 28, 2012 5:41:41 PM UTC, Massimo Di Pierro wrote: I have fixed all pypy bugs that have been reported but I did not run it myself. Please report any problems if

[web2py] Re: Support for PyPy

2012-03-12 Thread Francisco Costa
Well I've compiled pypy-1.8 from source (without jit) and found that is slower than python whyle executing web2py here are my test results *PYPY* ab -n 10 -c 5 http://127.0.0.1:8000/ This is ApacheBench, Version 2.3 $Revision: 655654 $ Copyright 1996 Adam Twiss, Zeus Technology Ltd,

[web2py] Re: Support for PyPy

2012-03-12 Thread Francisco Costa
On Monday, March 12, 2012 7:46:50 PM UTC, Anthony wrote: Maybe related to this: https://bugs.pypy.org/issue1051. Have you tried 1.7? Nop, i've tried the last source from bitbucket

Re: [web2py] Re: Support for PyPy

2012-03-12 Thread Francisco Costa
On Monday, March 12, 2012 8:36:35 PM UTC, Vasile Ermicioi wrote: Well I've compiled pypy-1.8 from source (without jit) wow, how many hours it took? 1h30m and found that is slower than python of course pypy nojit is slower, no need to compile it by yourself, you can see that on

[web2py] Re: Support for PyPy

2012-03-13 Thread Francisco Costa
isn't justified yet. I've also include the combination of nginx + uwsgi that I found to be the fastest setup till now. On Monday, March 12, 2012 9:48:58 PM UTC, Anthony wrote: On Monday, March 12, 2012 5:02:00 PM UTC-4, Francisco Costa wrote: On Monday, March 12, 2012 7:46:50 PM UTC, Anthony

[web2py] Meteor web framework

2012-04-11 Thread Francisco Costa
http://www.meteor.com Meteor is a set of new technologies for building top-quality webapps in a fraction of the time, whether you're an expert developer or just getting started. I think this is something worth checking out

[web2py] Ubuntu and Python3

2012-04-26 Thread Francisco Costa
People at Canonical are thinking on releasing the next Ubuntu (12.10) with Python3 as default. Wouldn't be nice to start developing web3py to be available in 6 months?

  1   2   3   >