[web2py] Multi-language field content

2013-05-04 Thread Reza Shah
Hi, I'm planning a feature which allowed the user to display the content of country name in english or japanese and for item_data name in english, in japanese(kanji) or in japanese pronunciation(kana). The target user mostly foreigners which have basic japanese ability, they just use visual abi

[web2py] Using foundation 4 css

2013-05-02 Thread Reza Shah
Hi, I want to use foundation 4 instead of bootstrap for the css. Not sure which line should be replaced. I tried only removing these from the layout.html and append my css. response.files.append(URL('static','css/bootstrap.min.css')) response.files.append(URL('static','css/bootstrap-responsive.mi

[web2py] Re: web2py takes time to start

2013-04-23 Thread Reza Shah
Yes, i started with -a and tried -i option too. On Tuesday, April 23, 2013 9:58:57 PM UTC+9, Niphlod wrote: > > are you starting it with web2py.py -a 'password' ? (if -a is passed no GUI > is istantiated --> narrows down the possibilities) > > On Tuesday, April 23,

[web2py] Re: web2py takes time to start

2013-04-23 Thread Reza Shah
How to find out which part of web2py takes time(if possible)? I tried running with --verbose but i didnot see any verbose message. On Tuesday, April 23, 2013 9:12:03 PM UTC+9, Niphlod wrote: > > not at all 2-3 seconds at best is what it takes from web2py.py -a > yourpassword to the "use kill

[web2py] web2py takes time to start

2013-04-23 Thread Reza Shah
Hi My notebook using SSD , 16GB RAM and IvyBridge. I have problem when running web2py at my system (archlinux 64bit kde), it took 30 seconds from start until i see [use "kill -SIGTERM 1716" to shutdown the web2py server] line. Another thing after it started the browser need around 30 seconds e

[web2py] Re: csv import export

2013-04-19 Thread Reza Shah
I just found out there was a mistake in the csv file i used when importing. The problem was i open the csv exported from admin in libreoffice, but i didnot notice that the separator converted to tab. -- --- You received this message because you are subscribed to the Google Groups "web2py-user

[web2py] csv import export

2013-04-16 Thread Reza Shah
Hi I want to try import some data to certain table, my database is the default one(sqlite). Since i don't now what kind of information i should put in the csv file, i inserted some data using admin interface, then exported to csv file. Then i removed all the data in the target table then reimpor

[web2py] Re: Using @auth.requires_login() in modules

2013-04-14 Thread Reza Shah
n you show the code where you are calling the add_product() method? > Using the @auth.requires_login() decorator is not the only way to control > access. You can also do "if auth.user:" to test for login before allowing a > method to be called. > > Anthony > > On Su

[web2py] Using @auth.requires_login() in modules

2013-04-14 Thread Reza Shah
Hi, I'm learning web2py and i want to put my business logic inside a class in module. I like to have a behaviour similar to user controller inside default.py which exposes several functions. I have a controller item which i put inside default.py def item(): return dict(form=product()) in