Hi.
I'm a web2py newbie.
I'm still trying to adapt the Image example with products.
Here is my db:
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
db.define_table('articoli',
Field('Codice_A', unique=True),
Field('Descrizione_Breve'),
I've found my mistake. View lista_articoli.html was not in the default
folder.
Il giorno martedì 24 settembre 2013 17:46:22 UTC+2, Gael Princivalle ha
scritto:
Hi.
I'm a web2py newbie.
I'm still trying to adapt the Image example with products.
Here is my db:
db = DAL('sqlite
Hi.
I want to make a simple SQLFORM.grid test. I have one table. I've tried to
make a lot of changes, but it don't works. With this code the ticket is
'str' object has no attribute 'tablename'.
Someone can help me ?
MY DB:
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
Hi.
For web2py users that speak Italian, I've create the web2py-it group. It
could be a complementary tool for the Italian web2py community.
https://groups.google.com/forum/?fromgroups#!forum/web2py-it
Ciao !
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Hi Massimo.
Sorry but I've don't understand how I can use this plug-in.
plugin_gmap.set=db(db.auth_user.id0) ### change this to a query that
lists records with latitude and longitute
Do I have to create another table with one field, and make two records, one
with latitude and another with
Hi.
I want to show different fields in my applications, depending of the
current language (italian or english).
Here is my table with static text like company presentation...
db.define_table('static_text',
Field('title_en'),
Field('title_it'),
Field('text_en',
Hi.
In a table I have that:
db.define_table('products',
Field('code', unique=True),
Field('description'),
Field('brand'),
Field('pdf_path'))
I want to have a sqlform.grid that gone have all links to pdf_path field.
These are absolute links like
to the lambda format is
lambda row : A('whatever', _href=URL('default', 'download',
args=row.pdf_path))
As for having the URL absolute instead of relative, use the host parameter
of the A helper.
On Thursday, October 3, 2013 5:32:20 PM UTC+2, Gael Princivalle wrote:
Hi.
In a table I have
Hi Juan carlos.
I've search also recently for the best web2py hosting for newbies. I've
choose webfaction, it's fast cheap and support is really reactive and
friendly.
Il giorno giovedì 3 ottobre 2013 23:45:29 UTC+2, Juan Carlos Gonzales Vitte
ha scritto:
Hola a todos mi nombres es Juan
Hi Adi. Congratulations for this website. I also need to build an
e-commerce website and I want to make it with web2py. Can you give me some
suggestions ?
Il giorno lunedì 16 settembre 2013 16:30:19 UTC+2, Adi ha scritto:
Just completed a core system at nammuhats.com. Can't praise enough how
Hello.
I've a page with a lateral accordion menu, and a sqlform.grid.
Can I update the sqlform.grid query clicking on one of my lateral menu item
?
Of course Id' like to make it without a page reload.
Thanks.
My db:
db.define_table('models',
Field('code', unique=True),
Tim, Niphlod thank you for your answers. @Niphlod Luke means that's I'm a
skywalker ? I would like to !
Components are pretty useful, I've tried the documentation tutorial, that's
ok.
I'm still having some problems on this topic.
1/My left side bar is under the grid
2/I don't reach to give some
.
On Sunday, October 13, 2013 8:24:15 PM UTC+2, Gael Princivalle wrote:
Tim, Niphlod thank you for your answers. @Niphlod Luke means that's I'm
a skywalker ? I would like to !
Components are pretty useful, I've tried the documentation tutorial,
that's ok.
I'm still having some problems
lunedì 14 ottobre 2013 12:02:28 UTC+2, Gael Princivalle ha
scritto:
Hi Niphlod.
Now I use request.vars instead of request.args and it works, I don't have
anymore the flash Not authorized message.
Here is the hp.load file:
{{=grid}}
{{=A('Test',callback=URL('hp.load', vars=dict(cat
Hi.
Is it possible to use Bootstrap 2.3.2 on web2py ? I would like to do it
just to have an easiest css Bootstrap file to read/modify. With web2py
there's just the min 2.2.2 version that's not so easy to modify.
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book
Ok I'm gone use 2.3.2.
For sure Bootstrap 3 could be an improvement, but I'm still having a lot of
fun with web2py + bootstrap 2.3.2. Thanks to all.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Hi.
I'm still making a website where I'm gone have to manage a lot of little
image galleries.
An image could be shown inside more galleries, galleries have many images,
so my relation is many to many.
Here is my db:
db.define_table('images',
Field('title_en'),
all images with a specific gallery-id:
images = db(db.int_table_galleries_images.gallery.id==1).select()
return dict(images=images)
- Andreas
Am Mittwoch, 30. Oktober 2013 11:51:19 UTC+1 schrieb Gael Princivalle:
Hi.
I'm still making a website where I'm gone have to manage a lot
Hi Anthony.
This is discussed here:
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Many-to-many
I've read it before posting. Result was the same as with the code you've
post:
'Rows' object has no attribute 'select'
Now I've update my db as you've suggest:
Hi.
I've got a strange error.
My db:
db.define_table('models',
Field('code', unique=True),
Field('category'),
Field('cat_id', 'reference categories'),
Field('description_en'),
Field('description_it'),
Field('pdf_path'))
Thanks a lot Anthony. Now it works.
Il giorno giovedì 31 ottobre 2013 00:12:43 UTC+1, Anthony ha scritto:
{{for company_image in company_images.select():}}
You've already done a select, so don't call .select() again.
{{for company_image in company_images:}}
in a sqlite
database?
If yes, you need to delete the column data and re-fill it.
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Gotchas
On Wednesday, October 30, 2013 4:55:50 PM UTC+1, Gael Princivalle wrote:
Hi.
I've got a strange error.
My db
Hi.
I'm still searching to make a really simple form with these tables, one to
many relation.
Here is my db:
#ONE
db.define_table('categories',
Field('description_en', requires=IS_NOT_EMPTY()),
Field('description_it', requires=IS_NOT_EMPTY()),
Field('code',
Thanks Stifan now I can crate/modify/delete. Do you know also how I can do
it ?
I just would like to make a form for models table where I will be able
to set the models.category_id field choosing by the
categories.description_it field.
Il giorno mercoledì 6 novembre 2013 13:40:15 UTC+1, 黄祥 ha
Fantastic, thanks a lot. Now I have to make the same kind of form but for
Many to many relations. I'm gone try to do it by myself with your kinds
informations, have a nice day.
Il giorno mercoledì 6 novembre 2013 15:25:01 UTC+1, 黄祥 ha scritto:
hi, sorry, i missed that out, i think you can
Hi.
I would like to save all searches made in a sqlform.grid.
Like that I will be able to know what users search to. That will give me
informations for improving results quality.
Is there a way to do that ?
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Hi.
I've got a domain that is on Webfaction, with a web2py app.
I just want to have my app on the domain root.
Now I have:
https://www.mydomain.com/myapp/default/index
I would like to see my app on :
https://www.mydomain.com
I've read that:
solution ?
Il giorno domenica 24 novembre 2013 23:04:26 UTC+1, Jonathan Lundell ha
scritto:
On 24 Nov 2013, at 1:21 PM, Gael Princivalle
gaelpri...@gmail.comjavascript:
wrote:
I've got a domain that is on Webfaction, with a web2py app.
I just want to have my app on the domain root.
Now I have
novembre 2013 09:27:52 UTC+1, Gael Princivalle ha
scritto:
For example I've got 3 stupid pages exactly the same, 2 pages are ok but
for one I have an invalid request. I turn back to pages that were ok and
I have again Invalid request.
I've try also renaming myapp in init but in the path I've got
, that's the better solution
for the moment, I don't want to add a new voice in the routes.py file any
time I will add a new page.
Thanks for your help.
Il giorno martedì 26 novembre 2013 21:07:47 UTC+1, Dave S ha scritto:
On Tuesday, November 26, 2013 8:51:45 AM UTC-8, Gael Princivalle wrote
Hi.
In the custom code to display record how is it possible to call record
data ?
table.field1
table.field2
Same thing for headers ?
Thanks.
Il giorno martedì 15 maggio 2012 16:51:43 UTC+2, Marian Siwiak ha scritto:
It worked as expected.
Thank you very much!
Marian
W dniu wtorek, 15
Webfaction have restart my application Apache process, now it works with
init. I'm gone make more test, grazie !
Il giorno mercoledì 27 novembre 2013 19:43:47 UTC+1, Dave S ha scritto:
On Wednesday, November 27, 2013 12:14:22 AM UTC-8, Gael Princivalle wrote:
Sorry Dave for my bad English
Hi.
I've saw here how is it possible to customize a single row view from a
sqlform.grid:
https://groups.google.com/forum/#!search/single$20datable$20record$20formatting/web2py/jZ1nkcIUcKc/EpvAuAL_VXYJ
What I don't know is how calling single row data.
For example you have this sqlform.grid in
Hi.
I would like to had a quantity field in a form, controlled by a spinner.
With a standard HTML form I can use some Jquery spinners, but if I would
like to generate the form with FORM or SQLFORM, is it possible to associate
a spinner to this input field ?
Thanks.
--
Resources:
-
grid.view_form.record.description
grid.view_form.record.brand
grid.view_form.record.pdf_path
{{else:}}
{{=grid}}
{{pass}}
On Thursday, 28 November 2013 02:08:48 UTC-6, Gael Princivalle wrote:
Hi.
I've saw here how is it possible to customize a single row view from
more info about custom forms
herehttp://www.web2py.com/book/default/chapter/07#Custom-forms
On Thursday, November 28, 2013 11:59:44 AM UTC+1, Gael Princivalle wrote:
Hi.
I would like to had a quantity field in a form, controlled by a spinner.
With a standard HTML form I can use some Jquery
Hi.
Sorry about that, but I'm gone ask for something already asked before,
displaying the reference field in the grid instead of the id:
Ok, I've found how doing it.
I've made this change in my fields:
fields = (db.enquiries.enquiry_date, db.products.code, db.enquiries.note)
Il giorno lunedì 2 dicembre 2013 16:17:37 UTC+1, Gael Princivalle ha
scritto:
Hi.
Sorry about that, but I'm gone ask for something already asked before
Hi.
I've had extra fields to db.auth_user like that in db.py:
auth = Auth(db)
auth.settings.extra_fields['auth_user']= [Field('Company',
requires=IS_NOT_EMPTY()),Field('Phone')]
Problem n°1, requires=IS_NOT_EMPTY() don't have any effect. A user can
register without filling this field.
Thanks a lot Massimo, I'm gone watch all 13 hours !
Il giorno martedì 3 dicembre 2013 07:34:18 UTC+1, Massimo Di Pierro ha
scritto:
Hello everybody,
As you know I teach a certification program about web development with
Python and I use web2py.
I posted my most recent classes online:
Thanks James but also required=True don't have any effect. Perhaps I have
to make a custom form or register, do you know I can do it ?
Il giorno martedì 3 dicembre 2013 19:56:39 UTC+1, James Burke ha scritto:
For problem no1, you could try using required=True instead of
field?
Problem 2. To fix that you need define your own auth_user table. If you do:
db.define_table('auth_user', )
before auth.define_tables() it should use yours.
On Tuesday, 3 December 2013 09:14:02 UTC-6, Gael Princivalle wrote:
Hi.
I've had extra fields to db.auth_user like
Hello.
I load a file inside a page:
{{=LOAD('hp','hp.load', ajax=True, target='div_hp')}}
Now inside this page I have a link to a function/view from the default
controller.
{{=P(A('My link', _href=URL('products_listing')))}
Reply is invalid function (hp/products_listing)
In fact web2py tries
=False)
Anthony
On Wednesday, December 4, 2013 12:06:44 PM UTC-5, Gael Princivalle wrote:
Hello.
I load a file inside a page:
{{=LOAD('hp','hp.load', ajax=True, target='div_hp')}}
Now inside this page I have a link to a function/view from the default
controller.
{{=P(A('My link', _href
Hi.
I've installed successfully on Webfaction web2py 2.7.4 about two months ago
with this script:
https://wiki.webfaction.com/wiki/Web2py-LatestSource?format=txt
Automatically Webfaction set your Webfaction admin password as your web2py
admin password, OK.
Now I've installed another web2py
Hello all.
Is it possible to call a function/page with an SQLFORM.grid asking for the
single view mode instead of the list mode ?
Something like ...
{{=A('test link', _href=URL('products_listing/view/products/717'))}}
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book
', args=[product_id])
you know it's not really userfriendly to manipulate the grid view form.
On Friday, December 6, 2013 2:59:46 PM UTC+1, Gael Princivalle wrote:
Hello all.
Is it possible to call a function/page with an SQLFORM.grid asking for
the single view mode instead of the list mode
Hello all.
Well I don't understand really how to manage this problem.
I cannot use web2py id's for referencing my brands, I need to use id's from
another CRM application called 01. So I have in my brands table a field
called id_01 and in the products table a field called brand_id_01.
When I
Thanks Stifan but also with:
db.products.brand_id_01.requires = IS_IN_DB(db, db.brands.id, '%(name)s')
web2py don't display the db.brands.name instead of the
db.products.brand_id_01..
A solution could be make lambda function, what do you think about something
like that ?
In the controller:
def
that return the brands.name of the
products.brand_id_01 current row)
with
lambda row:
(db.brandshttp://www.google.com/url?q=http%3A%2F%2Fdb.brands.namesa=Dsntz=1usg=AFQjCNE3jQMLe-HFn1TMWcTiEsecaE2E1w
(row.brand_id_01).name)
On Sunday, 8 December 2013 11:26:34 UTC-6, Gael Princivalle wrote
Hello all.
I need to import in one table data keeping original id's.
I know that I have to drop the table first, but when I want to import the
CSVfile web2py say me that type 'exceptions.AttributeError' 'DAL' object
has no attribute 'products'
I've tried to follow these instructions:
, 2013 8:03:24 AM UTC-5, Gael Princivalle wrote:
Hello all.
I need to import in one table data keeping original id's.
I know that I have to drop the table first, but when I want to import the
CSVfile web2py say me that type 'exceptions.AttributeError' 'DAL' object
has no attribute 'products
view grid ?
For the description field for example I have:
{{=P(grid.view_form.record.description)}}
For the custom column ?
{{=P(grid.view_form.record.links??)}}
Regards.
Il giorno domenica 8 dicembre 2013 16:44:43 UTC+1, Gael Princivalle ha
scritto:
Hello all.
Well I don't understand
is in my custom single record grid view, web2py still
display products.brand_id_01.
{{=P(T('Brand'), : , grid.view_form.record.brand_id_01)}}
Someone's knows why ?
Bye.
Il giorno lunedì 9 dicembre 2013 18:38:52 UTC+1, Gael Princivalle ha
scritto:
With your solution Field('id_01', 'id')now I can
Hi Paolo.
Sorry, where is this TODO panel ?
Regards.
Il giorno domenica 8 dicembre 2013 10:36:00 UTC+1, Paolo Valleri ha scritto:
Dear all,
the online editor has got a new TODO panel in which are listed all TODO
you might have in the current application.
For the time being it highlights
Hello all.
I've read a lot of literature about routes.py, it's amazing how it can be
powerful and complex.
However for my simple needs I don't reach to find the solution.
In my web2py root folder I have this routes.py, using the parameter-based
system:
routers = dict(
BASE = dict(
Comunque direi che per ovvi motivi il web2py-users rimane lo strumento
principale per porre domande. A noi users italiani di fare comunità e di
mettere in web2py-it quello che ci sembra congruo per darci uno strumento
complementare.
--
Resources:
- http://web2py.com
- http://web2py.com/book
Hi all.
I have to import a lot of CSV files that have fields separated by ;.
In web2py it seems that only , is accepted.
How can I upload a file and replace all ; by , ?
I've tried like that with replace but this attribute is not valid:
form = SQLFORM.factory(
Hi all.
I'm going mad on this problem.
Probably my lambda function for the represent products.brand is not correct
but I don't know where.
Like that ny application works, but I cannot add some products rows, web2py
says:class 'sqlite3.OperationalError' foreign key mismatch
Hi Leonel.
Yes it was like that before and the problem was the same.
requires = IS_IN_DB(db, db.brands.id, '%(name)s')
I've tried with id_01 because I want it to be my reference.
Il giorno mercoledì 25 dicembre 2013 01:13:30 UTC+1, Gael Princivalle ha
scritto:
Hi all.
I'm going mad
Now it works, I've saved all data as CSV files, cancel all db files in the
database folder and import again all data from CSV files.
Sqlite was really in tilt.
Il giorno mercoledì 25 dicembre 2013 01:13:30 UTC+1, Gael Princivalle ha
scritto:
Hi all.
I'm going mad on this problem.
Probably
Hello all.
Is it possible to display auth.signature fields in grid ?
My db:
db.define_table('enquiries',
Field('code', type='string'),
Field('quantity', type='integer'),
Field('note', type='text'),
auth.signature)
A simplificated
Thanks, perfect
Il giorno giovedì 26 dicembre 2013 16:52:30 UTC+1, Massimo Di Pierro ha
scritto:
yes in the action, before grid = ...
db.enquiries.created_by.readable = True
On Thursday, 26 December 2013 09:28:43 UTC-6, Gael Princivalle wrote:
Hello all.
Is it possible to display
Hello all.
My website is in English and Italian.
The created_on datetime filed from auth.signature is always displayed in
Grid with the italian format (26/12/2013 12:41:20), also if I change the
brownser language to English.
Here is my db:
db.define_table('enquiries',
Hi all.
I've made a custom grid single view, that is in the same html page where I
call the complete grid.
When I call for request.env.http_referer for going back to the previous
page I have inside the current page, not the previous one, the same html
page but with the grid.
For example I make
Goog question.
In fact initialy referer is my previous page (http:
//.../default/products_listing?keywords=od), and after when the browser load
js and css files referer is my single view page (http:
//.../default/products_listing/view/products/376?keywords=od).
I think a way to resolve it is
Hello all.
I've put on line my first web2py website, thanks to all for help.
It's native in English, with Italian translation. So I've got things like
that:
Controller:
def products():
...
response.title = 'My web site' + ' -' + T('Products')
...
And in my views I load text from db
: you just proved that you can't rely on the
referrer header to make the app behave like you'd wish.
Save the back url in a session variable and use that one instead ^_^
On Sunday, December 29, 2013 4:02:48 PM UTC+1, Gael Princivalle wrote:
Goog question.
In fact initialy referer is my
Same cache problem also for me. Just replace .ico and .png files and test
it in an anonymous browser window.
Il giorno domenica 17 giugno 2012 12:20:54 UTC+2, Paolo Caruccio ha scritto:
In my case was a cache problem. Below the solution worked for me:
1. below replacing files clear the
Hi Bruno.
In a same page where you make translations, how can you manage meta
informations for all languages ?
With a if T.accepted_language you can set different values, but when you
give your site to a tool like that :
http://www.seoutility.com/it/tools/google/sitemap_generator.aspx
it see
An happy new year also to you Massimo and to all web2pyer's in all other
the world.
Il giorno mercoledì 1 gennaio 2014 23:06:30 UTC+1, Massimo Di Pierro ha
scritto:
Happy new year everybody,
some good news:
1) python is growing popularity
Hello all.
I'm in trouble with language management.
Here is my routes.py at web2py root (standard):
routers = dict(
# base router
BASE=dict(
default_application='welcome',
),
)
Here is my routes.py in the test application (standard).
from fileutils import abspath
from
Is it possible that nobody knows how this request.uri.language works ?
Il giorno venerdì 10 gennaio 2014 13:32:19 UTC+1, Gael Princivalle ha
scritto:
Hello all.
I'm in trouble with language management.
Here is my routes.py at web2py root (standard):
routers = dict(
# base router
Thanks Alan you're right.
But with this routes.py in web2py root :
routers = dict(
BASE=dict(
default_application='test',
),
)
And this routes.py in test folder:
from fileutils import abspath
from languages import read_possible_languages
possible_languages =
Thanks Alan, Jonathan.
I've test more this simple solution:
routers = dict(
BASE = dict(default_application='
test'),
test = dict(languages=['en', 'it'], default_language='it'),
)
And it works fine for me.
The only problem I have now if for switching between two languages
reloading
), [])]))}}
Thanks again for your help.
Il giorno lunedì 13 gennaio 2014 16:22:50 UTC+1, Jonathan Lundell ha
scritto:
On 13 Jan 2014, at 7:00 AM, Gael Princivalle
gaelpri...@gmail.comjavascript:
wrote:
Thanks Alan, Jonathan.
I've test more this simple solution:
routers = dict
Hi all.
Can someone talk about experiences of collaborations with a GUI designer, I
mean someone that don't know nothing about web2py but have to design for
you the website interface ?
Are there third parts GUI design tools that's works great with web2py, like
these:
Hello all.
I need to add a WYSIWYG editor in my web2py application, with image upload
capabilities.
I suggest that it could be available in the basic packaging of future
web2py versions.
I'm trying to use this plugin from Bruno Rocha:
https://github.com/rochacbruno/web2py_ckeditor
For the
, 2014 12:53:36 PM UTC+1, Gael Princivalle wrote:
Hello all.
I need to add a WYSIWYG editor in my web2py application, with image
upload capabilities.
I suggest that it could be available in the basic packaging of future
web2py versions.
I'm trying to use this plugin from Bruno Rocha
Yes that's it ! Thank's a lot, pizza and beer for you when you want !!
Il giorno giovedì 13 febbraio 2014 15:36:17 UTC+1, Leonel Câmara ha scritto:
Does it work if you add this to your model?
ckeditor.settings.url_upload = URL(request.app, 'plugin_ckeditor',
'upload')
--
Resources:
-
https://lh6.googleusercontent.com/-qAgATEO_fwo/UwXsYPMIzqI/BUw/Rf4C5lRJC5w/s1600/css.jpg
Hello all.
In the admin interface for a specific application web2py display only the
first CSS file in the alphabetic order of the CSS folder.
For another application in the same web2py
Thanks a lot, that's it !
Il giorno giovedì 20 febbraio 2014 14:35:15 UTC+1, Leonel Câmara ha scritto:
My guess is that you have more than 1000 static files for this app and the
admin is not respecting the 0-1-∞ rule.
Try editing the admin application default.py and increase MAXNFILES to
Hello all.
With editable=True I don't want to let the possibility to the user to click
on buttons at the bottom of the grid:
Design Request Response Session DB Tables DB stats
I've tried with showbutton=False but it seems that it' don't exist in
sqlform.grid.
grid = SQLFORM.grid(query=query,
by response.toolbar(), which perhaps you have in your
layout.html file. You can set it to display only when request.is_local is
True, so regular users won't see it.
Anthony
On Tuesday, February 25, 2014 3:31:05 PM UTC-5, Gael Princivalle wrote:
Hello all.
With editable=True I don't want
Hello all.
I've tried to update the ckeditor version of the plugin without success.
Someone knows the right way to do it ?
Thanks in advance.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Hi Tim, thank you for your answer.
Do you refer to a plugin downloaded from web2py slices?
Yes. For example if if want to use a recent CKeditor plugin for media
embedding I cannot do it because they are not available for versions
released before 4.0.
Do you know how I can update CKeditor in
Hello all.
I'm a little bit disappointed by the date format and datepicker.
First my field was like that:
Field('concert_date', type='date'),
On Firefox no problem. It give me automaticly the possibility to put in the
field the local %d/m/%Y format, and this format was accepted by the DAL.
That's a really good news. Can you give also a little documentation for
updating/changing the ckeditor version ?
Thank's a lot Tim.
Il giorno martedì 4 marzo 2014 20:19:50 UTC+1, Tim Richardson ha scritto:
I've cloned the ckeditor plugin and updated it to the latest version of
ckeditor and
inner convertions between both formats, so
you'll have no problems with DAL and database backend.
Regards.
El sábado, 1 de marzo de 2014 17:49:36 UTC+1, Gael Princivalle escribió:
Hello all.
I'm a little bit disappointed by the date format and datepicker.
First my field was like
Ok so like that:
Field('concert_date', type='date', requires = IS_DATE(format='%Y-%m-%d'))
And on Chrome problem still the same.
I think the problem is more global about language detection with Chrome.
If I use web2py on Firefox I've got no problems.
On Chrome it's a disaster. For example when I
Does this code work for you?.
By the way i've noticed you've mispelled the format in your post (one
percent symbol is missing at %d/m/%Y). Check it at your languege file just
in case...
Regards.
El martes, 4 de marzo de 2014 22:50:17 UTC+1, Gael Princivalle escribió:
Ok so like that:
Field
Hello all.
When I try to modify some tables in the database admin page web2py returns
me:
invalid controller (undefined/index)
It tries to go to the same URL that it use for all over applications:
mydomain.com/myapp/appadmin/select/db?query=db.mytable.id0
With all over applications in the same
Wow. I've found the problem.
I've add this line to the layout.html:
script src={{=URL('static','js/main.js')}}/script
Seems that main.js is already used by web2py, so with site.js it works.
Il giorno lunedì 10 marzo 2014 16:11:42 UTC+1, Gael Princivalle ha scritto:
Hello all.
When I try
Hello all.
How can I add to my URL helper all current args and vars ?
I would like to do something like that for language switching :
My current URL is:
mydomain.com/en/concert?id=2
With that:
URL('it', f=request.function, args=request.args, vars=request.vars)
I would like to go to:
Hi all.
So, I save my date like that in my table:
db.define_table('concerts',
Field('concert_date', type='date', requires = IS_DATE(format
='%Y-%m-%d'))...
My controller for displaying one record:
def concert():
id_concert = request.vars['id']
concert =
Of course like that it works fine:
{{=(concert.concert_date.strftime(%d/%m/%Y))}}
But I was thinking there was a way to do that with T().
Il giorno domenica 16 marzo 2014 10:09:20 UTC+1, Gael Princivalle ha
scritto:
Hi all.
So, I save my date like that in my table:
db.define_table
Well a bad journey.
When I do changes in my db.py like adding fields, changes don't apply. All
applications changes (views/controllers...) works but not in db.py.
In the db administrative interface new fields are not displayed.
I've reset Apache, clear the cache, and I'm in anonymous mode with
Yes Stifan, with migrate = True, fake_migrate_all = False changes have
effect.
Thanks a lot.
Can you explain me why ?
Regards.
Il giorno domenica 16 marzo 2014 11:47:02 UTC+1, 黄祥 ha scritto:
it's hard to found the root cause, because you don't show any code of your
db.py
i guess it
controllers
named en.py and it.py, so you shouldn't be passing the language codes as
the first argument to URL() (the first argument should be either the app,
controller, or function name).
Anthony
On Sunday, March 16, 2014 4:24:38 AM UTC-4, Gael Princivalle wrote:
Hello all.
How can I
I've take a look thanks.
First I've said you that the problem was resolved but it's not, I've tried
the wrong db.
With that:
db = DAL('sqlite://storage.sqlite', pool_size=1, check_reserved=['all'],migrate
= True, fake_migrate_all = False)
Situation is the same, all changes in db.py don't have
1 - 100 of 392 matches
Mail list logo