any thoughts on this one?
On Sep 30, 12:57 pm, Francisco Costa 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 lik
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
wrote:
> Try
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 = (
('/(?P.*)', '/welcome/\g'),
)
routes_out = (
('/welcome/(?P.*)', '/\g'),
)
so the URL now is h
nevermind.. this last solution works
On Sep 30, 12:03 am, Francisco Costa wrote:
> I've managed with
>
> routes_in = (
> ('/(?P.*)', '/welcome/\g'),
> )
> routes_out = (
> ('/welcome/(?P.*)', '/\g'),
> )
>
> b
I've managed with
routes_in = (
('/(?P.*)', '/welcome/\g'),
)
routes_out = (
('/welcome/(?P.*)', '/\g'),
)
but now i can't see some images like:
http://domain.com/welcome/controller/download/some.image.png
On Sep 29, 11:41 pm, Franc
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?
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?
Thanks Massimo! =)
On Sep 7, 5:42 pm, mdipierro wrote:
> You are right. My mistake. You have to do it the old fashion way
>
> replace {{=form.custom.begin}} with
>
> enctype="multipart/form-data" id="ola">
>
> On Sep 7, 11:37 am, Francisco Costa wr
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 wrote:
> I assume you mean the html id
>
&
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 ?
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
ses
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?
ability to log all queries.
>
> On Sep 1, 6:24 am, Francisco Costa wrote:
> > How can I see the SQL queries made after loading a page?
Any help? I'm becoming desperate for a solution that works :/
On Sep 1, 3:42 pm, Francisco Costa 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
&
n from 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 wrote:
>
>
>
>
>
>
>
> > please be more specific..
>
> > In timer_tick I do a db query, and I need
th the value from your db query in the UI?
>
> On Sep 1, 9:17 am, Francisco Costa 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 save
.freeze" 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_ti
o grab the value of an element, then
> you can use the 'args' parameter and it will show up in request.args.
>
> On Sep 1, 6:44 am, Francisco Costa wrote:
>
>
>
>
>
>
>
> > i have this autorefresh
>
> > form = SQLFORM.factory(Field('AutoUpda
Yes, that would be very nice!
On Sep 1, 2:40 pm, mdipierro 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
I really need to see the SQL that this generate
last_updates =
db((db.event_social.created_on>session.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 wrote:
> How can I see the S
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)
How can I see the SQL queries made after loading a page?
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'))}}
{{=T('Change Password')}}
{{=form.custom.begin}}
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 wrote:
> auth_table = db.define_table(
> auth.settings.table_user_name,
>
ue)
On Aug 25, 2:58 pm, mdipierro wrote:
> If you have auth.define_tables(migrate=False), try change it to true
> If you use a custom auth_user table, please post it.
>
> On Aug 25, 7:10 am, Francisco Costa wrote:
>
> > I have this function in the default controller
>
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}}
{{=fo
I've managed to use
for num in all_updates:
session.updates.insert(0,num)
Avé Massimo
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
2,18,119,122)")
>
> On 13 Mayıs, 17:28, Francisco Costa wrote:
>
> > yes, then 2,18,119,122
>
> > On May 13, 3:22 pm, Mengu wrote:
>
> > > so you want them to be ordered as first 1 then 6, then 136 etc?
>
> > > On 13 Mayıs, 13:53, Franc
yes, then 2,18,119,122
On May 13, 3:22 pm, Mengu wrote:
> so you want them to be ordered as first 1 then 6, then 136 etc?
>
> On 13 Mayıs, 13:53, Francisco Costa wrote:
>
> > I have this query db(db.space.id.belongs(result_id)).select()
> > the result id is an unsorted
how can i sort results in the array order then?
On May 13, 2:42 pm, mdipierro 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 wrote:
>
> > is this a SQL Bug/feat
is this a SQL Bug/feature? how can I change it?
On May 13, 11:53 am, Francisco Costa 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 th
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 id
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
> wrote:
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?
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...
n Apr 24, 7:33 am, Francisco Costa 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 ther
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: http://groups.google.com/grou
I found the solution reading the "image uploading" thread.
On Apr 12, 12:47 pm, Francisco Costa 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
> "
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 wrote:
>
> > Model
>
> > db.define_table('space',
> > Field('name')
ot;)),
DIV(("Street Name"), INPUT(_name="street_name", _size="30")),
...
view_space.html
{{=XML(spaces.description)}}
...
On Apr 11, 11:31 pm, mdipierro wrote:
> Please show us your code.
>
> On Apr 11, 1:23 pm, Francisco Costa wrote:
>
> >
still didn't found how to solve this problem.. :/
any help?
On Apr 11, 7:23 pm, Francisco Costa 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..
>
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 used
>
> Try 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 wrote:
>
> > Anyone can give me some exampl
Anyone can give me some example on this?
Thank you
On Apr 8, 7:38 pm, Francisco Costa 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
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 are
ntent-Type'] = 'applications/rss+xml'
>
> > -Thadeus
>
> > On Thu, Apr 8, 2010 at 10:31 AM, Francisco Costa
>
> > wrote:
> > > Hello,
> > > When validating my feed i get this recomendation:
> > > Feeds shou
> -Thadeus
>
> On Thu, Apr 8, 2010 at 10:31 AM, Francisco Costa
>
> 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/
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 subscri
;
> thadeus blogitizor ->http://code.google.com/p/blogitizor/
> currently running on thadeusb.com
>
> -Thadeus
>
> On Sun, Apr 4, 2010 at 12:03 PM, mdipierro wrote:
> > that is a very old app. I needs some work.
>
> > On Apr 4, 10:16 am, Francisco Costa wrote
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 subsc
thank you Mr. Freeze
I really should read the book
On Mar 21, 7:20 pm, "mr.freeze" wrote:
> Look here under Customizing Auth
>
> http://web2py.com/book/default/section/8/1
>
> On Mar 21, 2:14 pm, Francisco Costa wrote:> Hello!
> > I would like to add a few mor
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
Thank you mr.feeze and Vasile for your help
I wasn't.. :/
Now it works perfectly!
On Mar 19, 12:32 pm, Vasile Ermicioi 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-users" group.
T
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 Ermici
Hello!
I've tried lots of combinations but none seem to work.
I really would like to get rid of the /init/ in the url.
Does anyone knows what the problem may be?
On Mar 18, 7:08 pm, Francisco Costa wrote:
> Hello
> I have step up an web2py project onhttp://bondiu.info
>
> I
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
route
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 wrote:
> linux/unix:
>
> cd web2py/applications
> ln -s your_app init
>
> I assume you don't have a folder called
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 endle
201 - 259 of 259 matches
Mail list logo