[web2py] View have to be updated

2013-09-24 Thread Gael Princivalle
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'),

[web2py] Re: View have to be updated

2013-09-26 Thread Gael Princivalle
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

[web2py] SQLFORM.grid

2013-09-27 Thread Gael Princivalle
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'])

[web2py] web2py Italy

2013-09-27 Thread Gael Princivalle
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) -

[web2py] Re: plugin google map

2013-10-01 Thread Gael Princivalle
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

[web2py] Expression' object has no attribute

2013-10-03 Thread Gael Princivalle
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',

[web2py] Absolute URL from field in grid

2013-10-03 Thread Gael Princivalle
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

[web2py] Re: Absolute URL from field in grid

2013-10-04 Thread Gael Princivalle
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

[web2py] Re: Hosting para Web2py

2013-10-05 Thread Gael Princivalle
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

[web2py] Re: one more web2py e-commerce app :)

2013-10-08 Thread Gael Princivalle
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

[web2py] Update sqlform.grid query from external click

2013-10-10 Thread Gael Princivalle
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),

[web2py] Re: Update sqlform.grid query from external click

2013-10-13 Thread Gael Princivalle
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

[web2py] Re: Update sqlform.grid query from external click

2013-10-14 Thread Gael Princivalle
. 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

[web2py] Re: Update sqlform.grid query from external click

2013-10-14 Thread Gael Princivalle
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

[web2py] Bootstrap 2.2.2 / 2.3.2

2013-10-21 Thread Gael Princivalle
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

Re: [web2py] Bootstrap 2.2.2 / 2.3.2

2013-10-22 Thread Gael Princivalle
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) -

[web2py] Many to many

2013-10-30 Thread Gael Princivalle
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'),

[web2py] Re: Many to many

2013-10-30 Thread Gael Princivalle
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

[web2py] Re: Many to many

2013-10-30 Thread Gael Princivalle
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:

[web2py] Invalid literal for long () with base 10: 'ie' - using BEAUTIFY

2013-10-30 Thread Gael Princivalle
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'))

[web2py] Re: Many to many

2013-10-31 Thread Gael Princivalle
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:}}

[web2py] Re: Invalid literal for long () with base 10: 'ie' - using BEAUTIFY

2013-10-31 Thread Gael Princivalle
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

[web2py] FORM and one to many

2013-11-06 Thread Gael Princivalle
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',

[web2py] Re: FORM and one to many

2013-11-06 Thread Gael Princivalle
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

[web2py] Re: FORM and one to many

2013-11-06 Thread Gael Princivalle
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

[web2py] Saving sqlform.grid searches

2013-11-20 Thread Gael Princivalle
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) -

[web2py] web2py routes.py

2013-11-24 Thread Gael Princivalle
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:

Re: [web2py] web2py routes.py

2013-11-25 Thread Gael Princivalle
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

Re: [web2py] web2py routes.py

2013-11-26 Thread Gael Princivalle
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

Re: [web2py] web2py routes.py

2013-11-27 Thread Gael Princivalle
, 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

[web2py] Re: single datable record formatting

2013-11-27 Thread Gael Princivalle
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

Re: [web2py] web2py routes.py

2013-11-27 Thread Gael Princivalle
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

[web2py] sqlform.grid custom single row view

2013-11-28 Thread Gael Princivalle
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

[web2py] FORM / SQLFORM spinner

2013-11-28 Thread Gael Princivalle
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: -

[web2py] Re: sqlform.grid custom single row view

2013-11-28 Thread Gael Princivalle
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

Re: [web2py] Re: FORM / SQLFORM spinner

2013-11-28 Thread Gael Princivalle
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

[web2py] How to display the value of a reference field, instead of the id in sqlform.grid part 2

2013-12-02 Thread Gael Princivalle
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:

[web2py] Re: How to display the value of a reference field, instead of the id in sqlform.grid part 2

2013-12-02 Thread Gael Princivalle
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

[web2py] Add extra fields to db.auth_user

2013-12-03 Thread Gael Princivalle
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.

[web2py] Re: Online classes

2013-12-03 Thread Gael Princivalle
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:

[web2py] Re: Add extra fields to db.auth_user

2013-12-04 Thread Gael Princivalle
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

[web2py] Re: Add extra fields to db.auth_user

2013-12-04 Thread Gael Princivalle
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

[web2py] Link to another controller from a load file

2013-12-04 Thread Gael Princivalle
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

[web2py] Re: Link to another controller from a load file

2013-12-04 Thread Gael Princivalle
=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

[web2py] Webfaction password problem with 2.8.2 installation

2013-12-06 Thread Gael Princivalle
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

[web2py] Direct access to a SQLFORM.grid single record view

2013-12-06 Thread Gael Princivalle
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

[web2py] Re: Direct access to a SQLFORM.grid single record view

2013-12-06 Thread Gael Princivalle
', 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

[web2py] Table reference field instead of the id

2013-12-08 Thread Gael Princivalle
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

[web2py] Re: Table reference field instead of the id

2013-12-08 Thread Gael Princivalle
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

[web2py] Re: Table reference field instead of the id

2013-12-09 Thread Gael Princivalle
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

[web2py] Import from csv file with original id's

2013-12-09 Thread Gael Princivalle
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:

[web2py] Re: Import from csv file with original id's

2013-12-09 Thread Gael Princivalle
, 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

[web2py] Re: Table reference field instead of the id

2013-12-09 Thread Gael Princivalle
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

[web2py] Re: Table reference field instead of the id

2013-12-09 Thread Gael Princivalle
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

[web2py] Re: new feature in trunk: TODO panel in admin editor

2013-12-10 Thread Gael Princivalle
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

[web2py] routes.py URL rewriting

2013-12-13 Thread Gael Princivalle
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(

[web2py] Re: web2py Italy

2013-12-18 Thread Gael Princivalle
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

[web2py] Modifying an uploaded CSV file

2013-12-24 Thread Gael Princivalle
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(

[web2py] foreign key mismatch

2013-12-24 Thread Gael Princivalle
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

[web2py] Re: foreign key mismatch

2013-12-25 Thread Gael Princivalle
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

[web2py] Re: foreign key mismatch

2013-12-25 Thread Gael Princivalle
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

[web2py] auth.signature fields in grid

2013-12-26 Thread Gael Princivalle
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

[web2py] Re: auth.signature fields in grid

2013-12-26 Thread Gael Princivalle
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

[web2py] datetime format in grid

2013-12-26 Thread Gael Princivalle
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',

[web2py] Grid back button for custom single view

2013-12-29 Thread Gael Princivalle
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

[web2py] Re: Grid back button for custom single view

2013-12-29 Thread Gael Princivalle
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

[web2py] SEO for multilingual web sites

2014-01-03 Thread Gael Princivalle
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

[web2py] Re: Grid back button for custom single view

2014-01-03 Thread Gael Princivalle
: 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

[web2py] Re: favicon problem

2014-01-03 Thread Gael Princivalle
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

Re: [web2py] Re: web2py and SEO

2014-01-03 Thread Gael Princivalle
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

[web2py] Re: Happy New Year everybody!

2014-01-03 Thread Gael Princivalle
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

[web2py] request.uri_language

2014-01-10 Thread Gael Princivalle
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

[web2py] Re: request.uri_language

2014-01-12 Thread Gael Princivalle
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

[web2py] Re: request.uri_language

2014-01-12 Thread Gael Princivalle
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 =

Re: [web2py] Re: request.uri_language

2014-01-13 Thread Gael Princivalle
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

Re: [web2py] Re: request.uri_language

2014-01-13 Thread Gael Princivalle
), [])]))}} 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

[web2py] Web2py and website GUI

2014-01-31 Thread Gael Princivalle
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:

[web2py] WYSIWYG editor - CKeditor plug-in

2014-02-13 Thread Gael Princivalle
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

[web2py] Re: WYSIWYG editor - CKeditor plug-in

2014-02-13 Thread Gael Princivalle
, 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

[web2py] Re: WYSIWYG editor - CKeditor plug-in

2014-02-13 Thread Gael Princivalle
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: -

[web2py] Admin problem with CSS files

2014-02-20 Thread Gael Princivalle
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

[web2py] Re: Admin problem with CSS files

2014-02-20 Thread Gael Princivalle
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

[web2py] Hiding grid buttons with editable=True

2014-02-25 Thread Gael Princivalle
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,

[web2py] Re: Hiding grid buttons with editable=True

2014-02-25 Thread Gael Princivalle
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

[web2py] Ckeditor plugin - Update ckeditor

2014-02-25 Thread Gael Princivalle
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) -

[web2py] Re: Ckeditor plugin - Update ckeditor

2014-02-27 Thread Gael Princivalle
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

[web2py] Date format and date picker

2014-03-01 Thread Gael Princivalle
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.

[web2py] Re: Ckeditor plugin - Update ckeditor

2014-03-04 Thread Gael Princivalle
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

[web2py] Re: Date format and date picker

2014-03-04 Thread Gael Princivalle
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

[web2py] Re: Date format and date picker

2014-03-04 Thread Gael Princivalle
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

Re: [web2py] Re: Date format and date picker

2014-03-05 Thread Gael Princivalle
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

[web2py] When I try to modify a table: invalid controller (undefined/index)

2014-03-10 Thread Gael Princivalle
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

[web2py] Re: When I try to modify a table: invalid controller (undefined/index)

2014-03-10 Thread Gael Princivalle
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

[web2py] URL with all current args and vars

2014-03-16 Thread Gael Princivalle
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:

[web2py] Date format

2014-03-16 Thread Gael Princivalle
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 =

[web2py] Re: Date format

2014-03-16 Thread Gael Princivalle
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

[web2py] Changes in db.py don't have any effect

2014-03-16 Thread Gael Princivalle
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

[web2py] Re: Changes in db.py don't have any effect

2014-03-16 Thread Gael Princivalle
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

[web2py] Re: URL with all current args and vars

2014-03-16 Thread Gael Princivalle
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

[web2py] Re: Changes in db.py don't have any effect

2014-03-16 Thread Gael Princivalle
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   2   3   4   >