Is it possible to write web2py application and after that convert to
independent GUI executable application.
Or I need to write them separately, one in web2py and other like Python
programing in some IDE.
Both this application should have same functionality.
Today I make installation of Kubuntu 11.10 on my VM.
In packages I find Web2py and on one click it was instated
After some time (1 minute) my Web2py is started
Thanks
Miroslav
When I start web2py I have message:
Internal server error, and link to ticket but I can't open ticket...
And often it is happen that I can't close web2py server just stay on
desktop and I can't close the server window.
I have simply form and it work, but in HTML source code it is one
line, how i can get form i more lines i HTML source code.
Source code for my form in one line:
Poruka: Post Author:
And I need to get:
Poruka:
Post Author:
> > any way to control the way it is serialized in the response body. Why do you
> > need that format?
>
> > Anthony
>
> > On Wednesday, October 5, 2011 10:06:25 AM UTC-4, miroslavgojic wrote:
>
> > > I have simply form and it work, but in HTML source code it i
n python/web2py environment.
But with divs I can finish my needs, in one or more lines is not so
important.
For what need web2py use next code in form on end of form definition.
Thanks for help.
On Oct 5, 11:11 pm, juanduke wrote:
> Hi miroslavgojic:
>
> To see html and other thing
Thank you, this was helpful for me.
In chroma developer tools is ease way to read code and it is sorted by
tags.
regards
Miroslav
On Oct 6, 12:02 pm, Anthony wrote:
> On Thursday, October 6, 2011 3:46:04 AM UTC-4, miroslavgojic wrote:
>
> > For what need web2py use next code in fo
I have server on my academic network on public IP address
On server now I use ClearOS linux and for my needs it is good.
Now I have intetion to install web2py on server, can I do this on
ClearOS or I must change linux
What linux for server should I use, does Centos can satisfied my
needs.
Is the
I'm trying to create, or figure-out, how to create my template for
site but not go so well for now.
I see some examples, main code of template is in layout.html. - is
this correct
Head information are manually created or with some variables. - this I
understood
hear I can give title to my page,
Can I apply CURD to Authentication
I use gluon.tools Auth but can I use CURD to Auth
exactly can I use curd.settings.formstyle = 'divs' on Auth and how
I have some date i database, that is text and formulas in LaTeX
notation,
>From database data I will extract with SQL.select -> Aray
How from array I can get pdf file (i must run some latex compiler) for
download.
I have some list of checks, when I apply filter I need to get pdf file
for downloa
I have one question.
I have WEB2PY server on my local server
When I don't have Internet connection my web2py server does not work,
just loading some pages from online
Can I resolve this or I must always be on-line
Hi,
I need to create upload and download page:
On both page there is filter what should be applied for upload or
download.
Upload form have filter with 4 drop down list and one input field for
text after this there is field for file selection and button for
upload.
I need to select some values fro
How to make {{include}} to work in DIV Helper
I have next situation
{{=DIV(DIV('some code',_id='code'),include,_id='content')}}
{{=HTML(HEAD(),BODY(DIV(DIV('Header',_id='header'),DIV(include,_id='content'),DIV('Footer',_id='footer'),_id='site')),doctype='html5',
lang='sr')}}
This was my idea to create template with HTML helpers
On Oct 15,
in controller I have next line for form
form = crud.create(db.name,next=URL('index'),message=T("some text"))
in view I have
{{=form.custom.begin}}
{{=DIV(DIV('Name:',
_id='two'),DIV(form.custom.widget.fieldname,_id='three'),DIV(form.custom.submit,_id='for'),_id='one')}}
{{=form.cust
I have upload form and my files go to default uploads folder.
Can I have more than one upload folder
I have need to chose folder folder where I need to store file
Is this possible
Hi,
Thanks for this replay, showed example with if logic is very
interesting,
Regards
Miroslav
On Nov 15, 11:59 am, Khalil KHAMLICHI
wrote:
> Hi,
>
> you can as well put you logic in the menu.py file like this :
>
> if auth.user:
> if auth.user.id > 10 and auth.user.team == "admins":
>
I have upload form, and it's work.
I use example from book.
But file get new name by web2py, can I control this name and how
on other words can I give my name for uploaded file.
Regards
Miroslav
In controller I have two functions
def func1():
body of function
return value1
def func2():
body of function
return value2
In EDIT APPLICATION "NAME" (administrative panel)
I see default.py exposes func1,func2
In my browser I can access to both functions
http://127.0.0.1:8000/name/
And I have answer for me
just use extra space :) for hiding
def func1 ():
body of function
return value1
or without extra space is normally visible:
def func2():
body of function
return value2
Miroslav
On Nov 18, 9:35 pm, miroslavgojic wrote:
> In controller I have
;
>
>
>
>
> On Friday, November 18, 2011 3:39:29 PM UTC-5, miroslavgojic wrote:
>
> > And I have answer for me
>
> > just use extra space :) for hiding
> > def func1 ():
> > body of function
> > return value1
>
> > or
>
>
>
>
>
>
> On Friday, November 18, 2011 3:03:48 PM UTC-5, miroslavgojic wrote:
>
> > I have upload form, and it's work.
> > I use example from book.
>
> > But file get new name by web2py, can I control this name and how
>
> > on other words can I give my name for uploaded file.
>
> > Regards
>
> > Miroslav
s it upon download. What exactly do you
> need to do?
>
> Anthony
>
>
>
>
>
>
>
> On Friday, November 18, 2011 3:03:48 PM UTC-5, miroslavgojic wrote:
>
> > I have upload form, and it's work.
> > I use example from book.
>
> > But file get new n
complicated, and why I don't use simply way
shown in book -> answer is: the chairman of department what that files
stored as early mentioned...
Miroslav
On Nov 19, 12:40 am, Anthony wrote:
> On Friday, November 18, 2011 5:55:59 PM UTC-5, miroslavgojic wrote:
>
> > some ques
t;] . "";
echo "Type: " . $_FILES["file"]["type"] . "";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
?>
fp =open('some/file','wb') // this folder/file make some errors
fp.write(file_data)
fp.close()
return dict(form=form,file_data=file_data)
This is what I have for now...
Miroslav
On Nov 19, 9:37 am, miroslavgojic wrote:
> Hear is PHP example (to show what is my wish to
> No need for 'form_data'. When you upload the file, the field values are
> stored in request.vars and then transferred into form.vars. The file upload
> will be in form.vars.myfile, which will already be a cgi.FieldStorage()
> object. So, form.vars.myfile.file will be the open file object, and
> f
The error is caused when file is not selected.
By default on first run form is empty (file is not selected), and form
must wait for selecting and submitting.
How access to file before calling form? What that mean?
Miroslav
On Nov 19, 5:52 pm, Anthony wrote:
> You might need to access the file b
> checking for request.vars:
>
> if request.vars:
> print 'this is a form submission'
>
>
>
>
>
>
>
> On Saturday, November 19, 2011 12:06:40 PM UTC-5, miroslavgojic wrote:
>
> > The error is caused when file is not selected.
> > By d
30 matches
Mail list logo