Hi,
i have web2py application that manages images, it has a simple defined
database with an upload field that refers to uploaded images.
Thus i am able to store images inside the database using the web2py
provided form. But for testing needings i have an action in my default
controller that scans
epo_path):
> for filename in files:
> path = os.path.join(root, filename)
> imgId = db.image.insert(file = db.image.file.store(open
> (path,'rb'),filename))
>
> On Oct 22, 5:02 am, Alessio wrote:
>
> > Hi,
> > i have web2py application that
Hi, I want to change the dropdown menu in the rigth corner of the web2py
application. I don't want the text Login but a icon..I see that the code is
imported with
{{='auth' in globals() and
auth.navbar('Welcome',mode='dropdown') or ''}}
But where is defined this code?
--
Reso
Hi, I have completed a web2py application for a customer..I have only one
finish problem..I have a page where i have the landing page where i have a
main-container and inside this there were 5 div..I want to call
window.print(); for print these 5 div...So i have created media print css
file a
Hi i have this table
db.define_table('verbale',
Field('partecipants',label=T('Partecipanti'),type="text",requires=IS_LENGTH(3000)),
Field('date_verbale_start',label=T('Data
inizio'),type="datetime",requires=IS_DATETIME('%Y-%m-%d %H:%M:%S')),
Field('date_verbal
I see the error..the define field i correct ..the error is in my controller
:) resolved
On Wednesday, 18 May 2016 20:54:56 UTC+2, Dave S wrote:
>
>
>
> On Wednesday, May 18, 2016 at 9:55:57 AM UTC-7, Alessio Varalta wrote:
>>
>> Hi i have this table
>&g
I started to use web2py for a collaboration with public organisation that
use web2py..After in these months I have realized my first web2py
application for a client https://barometro.ethicalsoftware.net/coop...But
in my region there isn't at this moment work like web2py developer, there
is only
Hi, I notice a big problem with the ticket report when you use json.
I have a controller where i take from the body the json with simple json
and after parsing the body.
The problem is that if there is an error the ticket reporting an error of
decoding json in any cases...For example in my case
Ok I make in these days
On Saturday, 4 June 2016 17:47:34 UTC+2, Massimo Di Pierro wrote:
>
> Can you please open a ticket and provide a minimal example of a controller
> to reproduce?
>
>
> On Monday, 30 May 2016 04:15:41 UTC-5, Alessio Varalta wrote:
>>
>> Hi, I
Hi, I call my application with base_url+ name_application.
With base_url web2py call welcome application, I want to change and with
base_url i want to call my name_application. Where is the code to change?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://gith
Very frendly works
On Monday, 12 September 2016 08:36:26 UTC+2, Alessio Varalta wrote:
>
> Hi, I call my application with base_url+ name_application.
>
> With base_url web2py call welcome application, I want to change and with
> base_url i want to call my name_application. Where
def user():
"""
exposes:
http:///[app]/default/user/login
http:///[app]/default/user/logout
http:///[app]/default/user/register
http:///[app]/default/user/profile
http:///[app]/default/user/retrieve_password
http:///[app]/default/user/change_p
Hi I have two table and I don't understand because I received a error when
I enter in appadmin/esercizio...I use sqlite and I try to download the Csv
of esercizio table and the csv is correct..the application work fine, but
when I try to enter esercizio I received this error(see below the
table
Hi, I see this plugin Admin plus
http://www.web2pyslices.com/slice/show/1937/admin-plus
that is also on download plugin of web2py but in both case there isn't a
correct download. Where I can find this plugin?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://g
Python manual for full
> details.
>
> By the way, these lines are duplicated in your code
> db.esercizio_consorzio.id.readable = False
> db.esercizio_consorzio.id.writable = False
>
> maybe you want the second set to be
> db.esercizio.id.readable = False
> db.esercizio.id.wri
Thanks for the work
On Friday, 7 August 2015 18:59:13 UTC+2, Massimo Di Pierro wrote:
>
> Changelog:
>
> - security fix: Validate for open redirect everywhere, not just in login()
>
> - allow to pack invidual apps and selected files as packed exe files
>
> - allow bulk user registration with defau
ad...@gmail.com and in the password/clave admin but
the authentication is false and i don't understand
On Saturday, 7 November 2015 14:08:47 UTC+1, samuel bonill wrote:
> Download :
> https://github.com/SamuelBonilla/admin_plus/blob/master/web2py.plugin.admin_plus.w2p?raw=true
> El
quot; in "127.0.0.1:8000/
> /appadmin/insert/db/auth_membership"
>
> 4. !! ready! Now you can log in... " 127.0.0.1:8000/
> /plugin_admin_plus/index"
>
> NOTE: is replaced by the name of your application
> El nov 8, 2015 10:29 AM, "Ale
There also many problem in http://www.web2pyslices.com/..many plugin don't
have the online demo and this is danger because the user can't work on a
plugin for example 30 minutes only for see if is a good plugin or not
On Saturday, 7 November 2015 11:51:00 UTC+1, Alessio Varalta wrote:
Thanks for the work. Is good but I have doubt about the color of
header,footer and the position of the text in the footer.
On Friday, 13 November 2015 18:55:56 UTC+1, Mark Graves wrote:
>
> Hey everyone,
>
> I just put up a new web2py welcome scaffold app based on materializecss.
>
> The reposito
I think that for the programmer is not so important the version..always if
the last is not too old..Python 2.7 is not too old but the problem that i
see is that there is a good guide and good forum..web2py have many good
features, but the real problem that I find( I am a web2py developer from 5
Hi, you can change your db file. For example set the attribute readable
false if you want that this attribute don't appear in form
On Wednesday, 25 November 2015 03:01:19 UTC+1, Laurent Lc wrote:
>
>
> How do i do if i want to see some fields (and not all) when i click on show
> thanks
>
--
Re
Hi, I have a question about export pdf a Sqlform Grid. For me generate the
pdf is not a problem I can use wkhtmltopdf, but I see that you can export
the grid in csv format, html format ecc...Because not in pdf? I think is
useful to create in the framework default function for this operation, I
Hi, I use pythonanywhere and have an application on it. This application
use wkhtmltopdf, but how can I install wkhtmltopdf. on pythonanywhere You
can't use the console because you don't have sudo privilege. I can see that
if you go to Files section(pythonanywhere) you can upload folder or file
Hi, I want to assign specific function to a Model of the Dal for example I
have the table layer_scheda and I want to add the method change_pos..For
example in Java o Ruby we have a package with the model class where you can
put the function inside the class in these case with Web2py?
--
Resour
For example there is the possibility to define the class model like
Java/Ruby I see this document http://weppy.org/docs/0.1/dal
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/lis
py/ceqq4JwkWi4/csn0kZfyPuwJ
> (not documented in the book).
>
> Anthony
>
> On Wednesday, December 2, 2015 at 10:59:39 AM UTC-5, Alessio Varalta wrote:
>>
>> Hi, I want to assign specific function to a Model of the Dal for example
>> I have the table layer_scheda and I want t
I have a model with multiple files, my problem is that I have this file
1-model_layer_ruolo
2_model_layer_scheda
3_model_esercizio
But web2py ignore the number and execute like first file 3_model_esercizio
there is the possibility to define the order of reading?
--
Resources:
- http://web2py.c
Hi, I have a problem..I have controller with too much code..So I want to
use the logic of Java or Ruby. Have a class that represent the object of my
database and implement function in this class and use this class in the
Controller. The problem is that I try the VirtualField a part of web2py
gu
"body": lambda row, value: markdown(value)
}
validators = {
"title": IS_NOT_EMPTY(),
"body": IS_NOT_EMPTY()
}
@computation('slug')
def make_slug(self, row):
# custom code to create the slug
Web2py not?
On Saturd
ut this I
think that any programmer have the need to put some code in a class that
represent the table and class function for manipulate the table..For big
project you can write all in a code or create many modules file with only
function
On Wednesday, 2 December 2015 17:20:25 UTC+1, Alessio Vara
('mytable',
> ...,
> Field.Method('change_name', lambda r, nome: r.mytable.update_record(
> nome=nome)))
>
> db.mytable(1).change_name(nome='Alessio')
>
> Anyway, there are other ways to handle such things without resorting to
> virtual fields or clas
I think is helpful to report this pdf document in web2py overview becase
for example the part of class don't exist in this moment on the site
guide and for example I search this information in these days
On Monday, 7 December 2015 02:34:40 UTC+1, Alfonso Serra wrote:
>
> No idea, i just know tha
AM UTC-5, Alessio Varalta wrote:
>>
>> This solution for me is not good. Ok in this case work but virtual field
>> allows only simple operation on the single filed of a table.
>>
>
> A virtual/method field can be as complex as you want it to be, and it does
>
Thanks to all for the response :)
On Monday, 7 December 2015 15:09:04 UTC+1, Anthony wrote:
>
> On Monday, December 7, 2015 at 6:07:13 AM UTC-5, Alessio Varalta wrote:
>>
>> Thanks for the help. I found the solution in this document
>> https://drive.google.com/file/d/0B1M
You can simple for example insert the membership with a query and set the
right references. For exmpale for the registration you can recovery the id
of the user in this way last record or by the form in the controller i
think you have form.accept? After yuon can make a query that insert the
us
For the membership you can create the two field with appadmin and after you
have to set the field in Role table where you use the id user that you have
recovery and the static id for example
>
>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/w
Hi , I have a problem with send a json to server(Please help me :))
this is my jquery Ajax call
$.ajax({
url: url,
type: 'POST',
contentType: "application/json; charset=utf-8",
data: myJSON,
dataType: 'json',
suc
Hi, how can I upgrade? There is the possibility to upgrade by console
web2py?
On Saturday, 19 December 2015 23:32:54 UTC+1, Yoel Benitez Fonseca wrote:
>
> sorry, in the console it works, its seems to be my problem
>
> 2015-12-19 17:27 GMT-05:00, Yoel Benitez Fonseca >:
> > i have upgrade to t
I found the solution. The problem is that i pass a wrong key value. I think
there is a bug on web2py about ticket. Because the ticket don't tell me
foreign key wrong but json wrong
On Saturday, 19 December 2015 16:12:02 UTC+1, Alessio Varalta wrote:
>
> Hi , I have a problem with sen
Hi, I have a problem with my logicI want to know if is possibile to
have in the controller this structure
folder(main)/with the file py and this case how the url work
Because for example i have the enttity Coperative and i have different page
that work with this entity ..so I want to have a
can use URL args to determine the routing).
>
> Anthony
>
> On Saturday, December 26, 2015 at 5:36:37 PM UTC-5, Alessio Varalta wrote:
>>
>> Hi, I have a problem with my logicI want to know if is possibile to
>> have this structure
>>
>> different fo
You change web2py.css and the menu.py file
On Sunday, 27 December 2015 16:40:33 UTC+1, RAGHIB R wrote:
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
Per visualizzarlo potresti fare un windows.open(url per scaricare il file)
in questo modo ti apre una pagina con il pdf questo è
javascript(all'interno della pagina non lo so) per il downlod invece
dovresti chiamare via javascript un windows.open che chiama una funzione
controller che ritorna u
You have to implement the operation of insert in a controller not in view
On Saturday, 2 January 2016 21:12:17 UTC+1, RAGHIB R wrote:
>
> For example I called a db query uu in view
> Where each elements in uu will be displayed in view with a button for
> each. And if user clicks on any one of the
you can simple create a form like in the web2py guide and a controller that
references the from see web2py guide that are basic exmpale you can't do
all operation in the view and you put the update and insert operation in
the controller not in the view, in the view only select
On Sunday, 3 Janu
Hi i have created a module in module/download_pdf/pdf_user where i
implemente the class userpdf the problem is that when is save the file i
received this No module named ecc.. and i have a problem to import...I
don't understand the problem
--
Resources:
- http://web2py.com
- http://web2py.com/
Thanks..I have a big problem :) One day I programmer in Rails, another in
web2py and another with Java and sometimes is diffcult :)
On Friday, 8 January 2016 09:59:07 UTC+1, Manuele wrote:
>
> Il 08/01/16 09:03, Alessio Varalta ha scritto:
> > Hi i have created a module in module/
functions
is not so good and create another file without folder for separate a part
of these functions is not so good. This last part is not so intuitive but I
understand.
On Tuesday, 29 December 2015 16:10:39 UTC+1, Anthony wrote:
>
> On Sunday, December 27, 2015 at 4:38:03 AM UTC-5, Alessio V
Maybe is a problem of the server not web2py for example with pythonanywhere
you have to have a premium account or on the server there aren't a service
for the email
Il giorno sabato 9 gennaio 2016 21:41:31 UTC+1, Tom Russell ha scritto:
>
>
> Hi,
>
> I have everything in place according to the
I think is possibile to develope one page with text for a view window page
for example of a product change css for mobile..but not for a manage
product that required that you programmer in Android or with another
framwork specific for developer on mobile
Il giorno lunedì 4 gennaio 2016 22:38:4
o use the latest Javascript frameworks, such as AngularJS or
> ReactJS.
>
> My advice would be to learn js and angular then go down the ionic (
> http://ionicframework.com/) path. I really don't see a case for bringing
> web2py into android.
>
> Edit:
>
> What A
l) So wirte in pythonanywhere forum and ask what type of service
use the site and the problem
Il giorno sabato 9 gennaio 2016 22:52:17 UTC+1, Tom Russell ha scritto:
>
> Yea I have a premium account with pythonanywhere.
>
> On Saturday, January 9, 2016, Alessio Varalta > wrote:
>
Hi I have a problem with filed controll i have this Field
Field('nome',),type="string",length=50,requires=IS_NOT_EMPTY()),
I generate the table with sqlform grid and when i add new element and try
to compile requires is not empty is active not length=50 if i eliminate
requires is not
Hi I have a database in sqlite..today I try to add new table..very simple
db.define_table('viewnews',
Field('user_id','reference
auth_user',requires=IS_NOT_EMPTY()),
)
but when i insert a row a have this error
Traceback (most recent call last):
File "/home/
Resolve I don't know why but i change the name of the table and now work :)
On Thursday, 21 January 2016 20:49:04 UTC+1, Niphlod wrote:
>
> did you alter in any way the auth_user table ?
>
> On Thursday, January 21, 2016 at 8:43:07 PM UTC+1, Alessio Varalta wrote:
>>
>
Hi, I have a programm with sqlite. Now i have that my application generate
a csv backup but i prefer to launch a pack all command that generate a tar
file in a specific folder. There is the possibility to use pack all command
inside add application in a controller in simple way?
--
Resources:
Hi I have a web2py application that use sqlite and i want to create a
backup. In this moment i use export csv and eventually import, but i have
many doubt first the id for the import that change and after the problem of
limit record of csv that i can import in one time, so i think to pack all
s
Hi, I have a problem with my web2py application. I have worked for three
weeks online in a debian server and i have created-deleted many files. My
problem is if i make now a pack all and after i ricreate the application in
locale web2py i see my file but after the old file that i have deleted.
Hi I have a class group and a class user for example. So i have a loop
for row_user in row_group.user.select()
now i want only the user that have status true
i try for row_user in row_group.user.select(db.user.stato==True) but i have
a error or row_user in row_group.user.select(stato==True)
Ho
Hi I have a table with a field
Field('created_by',db.auth_user,default=auth.user.id, writable=False),
I want that when a user save a row the field created by take the id of the
user and is a reference field for auth_user. I create a sqlfrom grid but
when i try to save I have this error Integr
Thanks is a problem with my sqlite
On Thursday, 3 March 2016 14:59:40 UTC+1, Leonel Câmara wrote:
>
> Are you logged in?
>
> Still I think the error is somewhere else since the way you defined the
> field allows a NULL value.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Do
Hi I have question about how a user can select multi user in one time. For
example i have a sqlform grid and i want that the login user select the
partecipants of a event, so i can have multipartecipant, is impossibile to
created this system with sqlfrom grid? I can use requires is in db but so
Hi, is possible to use create authentication in navbar for example in the
menu file? Or I have change copy the html code of navbar and put this in
the layout file and after I inser the code of the form?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.c
Is great! I think is a good choose to introduce a functionality that in
admin console you can choose this as starter
On Friday, 25 March 2016 11:09:38 UTC+1, Ramos wrote:
>
> This starter is sooo cool.
> Its was time we had something like this.
>
>
>
> 2016-03-24 19:51 GMT+00:00 Ron Chatterjee >
Hi I have a smartgrid with one child and i want a to add links to my child
is possibile for example:
I have entity dashboard with a child label_dashboard
So i create the smartgrid
grid = SQLFORM.smartgrid(db.dashboard,linked_tables=['label_dashboard'])
Now I want to add links to label_das
Hi, I want to parsing a html file with elements i see on the guide
http://web2py.com/books/default/chapter/29/05/the-views#Server-side-DOM-and-parsing
so my question is when i retrieve a object how i can access to the value?
for example
parsed_html=parsed_html.elements('a')
for item in p
p.
>
> Anthony
>
> On Tuesday, April 12, 2016 at 3:50:52 AM UTC-4, Alessio Varalta wrote:
>>
>> I retrieve a file with requests and after i make
>>
>> r = requests.get(href)
>> parsed_html=TAG(r.text)
>>
>> I received this error
>>
&g
Hi, i have to use the class model but not the connection with the database
exist and method to take the model and insert the value without DAL?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/w
Hi, I have a web2py application.
I use in my project web2py but also rails, and with rails you can comprim
all css in a single file...you can make this operation with web2py?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code
Hi, I want to load a web2py site on a server. I see
https://www.pythonanywhere.com/
is very simple but I want to know another service for compare the price,
any suggestions?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source c
Hi, I have buy a domain on aruba and paid account on pythonanywhere.
My domain is www.asdbluestars-bz.it
My application run on https://alessiovic.pythonanywhere.com/bluestars/
So I rename in Web of pythonanywhere the application like
www.asdbluestars-bz.it
and after i see a new field
Dns setup
at your website.
>
>
> CNAME: webapp-xx.pythonanywhere.com
>
> where xx is a 6 digit number.
>
> Go to you DNS setup with your registrar and create a CNAME record pointing
> your domain, www.asdbluestars-bz.it to the cname entry from
> pythonanywhere.
>
> M
Thanks work
On Tuesday, 7 March 2017 13:24:18 UTC+1, Jim S wrote:
>
> Host should be www.asdbluestars-bz.it.
>
> -Jim
>
> On Tuesday, March 7, 2017 at 4:23:10 AM UTC-6, Alessio Varalta wrote:
>>
>> Thanks, for the reply. Yes, I make this operation now on pythonan
Hi, I send to my controller this json
{
"order_of_day": "ffd",
"body": "dd",
"date_start": "2017-06-28 17:11:38",
"date_end": "2017-06-23 17:11:40",
"utenti": []
}
and I make
myJson=gluon.contrib.simplejson.loads(request.body.read())
but I have an error (No JSON object could be
decod
e')}}?index=true");
},error: function (error) {
alert("Si è verificato un errore durante il salvataggio");
},
data: { "order_of_day": order_of_day, "body": body,"date_start":
date_start,"date_end":date_end,"utenti":
I think is a little bug of web2py or the proxy I restart the server and
make a new installation of the application and works
On Thursday, 15 June 2017 10:44:56 UTC+2, Dave S wrote:
>
>
>
> On Tuesday, June 13, 2017 at 8:44:28 AM UTC-7, Alessio Varalta wrote:
>>
>>
I have a new project and I have to choose if web2py is the right framework.
My doubt is about the structure of a web2py application.
You canno't have subfolder right?
So you can put the major of the code in the module and this is ok, but a
the controller level you have:
Many and Many Controller i
logic order
On Friday, 9 February 2018 02:59:43 UTC+1, Anthony wrote:
>
> On Thursday, February 8, 2018 at 4:00:48 AM UTC-5, Alessio Varalta wrote:
>>
>> I have a new project and I have to choose if web2py is the right
>> framework.
>> My doubt is about the str
Hi,I have a form with type button i will when i click on the button call a
function that return a render.response view and insert this view in the
code without reload a new page
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
Hi i don't find on the guide the method to execute a query with where
condition... i see
db.class.insert but i don t find a method to use this with where condition
or i use
db.executesql("Insert into auth_user('person') values(4) where
auth_user.id=38;")
but i receive a error
--
Reso
Hi, i have a problem. I have a grid form but i want that the user can
modify the field without the section edit..So i want load a grid where the
user can modify the field and after click on a save button a save all
parameters
--
Resources:
- http://web2py.com
- http://web2py.com/book (Document
Hi, there is the possibility to add a form to sqlfactory with a for
cycle..for example, i will a system where i can cycle with a for and add an
element
form = SQLFORM.factory(db['element']) first time
now i will add the second element to form
--
Resources:
- http://web2py.com
- http://web2py.
Hi, i use a sqlite database and i use SQLFORM for save my dateThe
problem is that have a table with two Field that have date type and when i
use SQLFORM and save this date, I have a error when i try to retrieve the
date and i have a error when i use appadmin for see my database and the
erro
ples/global/vars/Field>('inviato',type='boolean',requires=IS_NOT_EMPTY
<http://127.0.0.1:8000/examples/global/vars/IS_NOT_EMPTY>()),
Field
<http://127.0.0.1:8000/examples/global/vars/Field>('user_id','reference
auth_user'),
)
Hi I am going to use wkhtmltopdf in a web2py application for generate pdf
file. I see only another topic about wkhtmltopdf in this forum and I
understand that i have to use calls service but I the line of command is
for me incorrect.There is a example online with the call for use
wkhtmltopdf wi
Today I try thanks very much
On Monday, July 20, 2015 at 8:14:40 AM UTC+2, Ariya Owam-aram wrote:
>
>
> Hi Alessio
>
> If you call from Apache then you can call subprocess directly from
> webserver but in nginx you have to use schedule task. Better to run
> wkhtmltopdf
Hi, I have a table with external references my main table is person and
this has a field called scheda that is a external references to a table
scheda. If i create a sqlform the field scheda is a input string and the
user must insert the id of the external references for the form submit
accept.
Hi, I have a problem with the comand URL. If i use this comand inside a
view like