But, how can I access it.
Tablename.myfield is giving None.
On Aug 3, 2015 10:32 PM, "Anthony" wrote:
> Field('myfield', requires=IS_IN_SET(['Yes', 'No']))
>
>
> On Monday, August 3, 2015 at 9:52:32 PM UTC-4, reddyreddy wrote:
>>
>> Hello all,
>>
>> I want to create a dropdown field in databas
Thank you.
I have one more question to you.
Instead of passing the file I want to pass line by line as input and write
the corresponding output to newline in outputfile.
lines = list(rfile)
subprocess.call(['gcc',pathnew,'-o','x'])
L=list()
for line in lines:
subprocess.call(["./x"], stdin = line,
Thank you so much I have been trying to get this since yesterday.
On Thu, Jul 9, 2015 at 9:53 AM, Anthony wrote:
> Looks like you are on Windows. Are you running this via the shell or the
> command line? In that case, I think web2py uses the relative path for
> request.folder. To get the absolut
Hello,
With the below code I was able to compile and run my c programs that were
uploaded, where rfile and ofile are input and output files.
for submission in submissions:
subprocess.call(["gcc","C:\\web2py\\applications\\dropbox1\\uploads\\"+submission.file,"-o","x"])
subprocess.call(["./x"], st
I want to get the complete path If I do in this way Iam getting only from
applications\appname
But inorder to give it to c compiler I need full path of the file like
c:\web2py\.etc
Here is my db.py:
import os
db = DAL("sqlite://storage.sqlite")
db.define_table('document',
Field('titl
Iam not sure how to use it.
I guess I was not clear in my earlier question.
For the files that were uploaded, I want full path of the each. Because I
want to give that path to the gcc so that my files get executed.
Can you please explain me little more.
On Tue, Jul 7, 2015 at 9:11 PM, Anthony
Thank you so much, that got worked.
On Sun, Jul 5, 2015 at 4:47 PM, Jose C wrote:
> Hmm...are you running your code on a webfaction server or on another
> machine?
>
> If not running on a webfaction server you'll need to connect to port 587
> like so:
> mail.settings.server = 'smtp.webfaction.co
Hello,
Thank you for the reply.
Iam still getting the below error.
WARNING:web2py:Mail.send failure:[Errno 10060] A connection attempt failed
because the connected party did not properly respond after a period of
time, or estab
lished connection failed because connected host has failed to respond
Thanku I got the mistake I was doing.
On Fri, Jul 3, 2015 at 1:03 PM, 黄祥 wrote:
> i think you can use logical operator or
> e.g.
> rows = db((db.problem.Duedate == request.now + datetime.timedelta(days =
> 1) ) | (db.problem.Duedate == request.now - datetime.timedelta(days = 1))
> ).select()
>
>
Hello all,
I have a form for student name, email and upload. For each student I want
to create a seperate folder and save his upload dynamically.
Can anyone let me know how can I do this.
Thanks in advance.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://githu
'w')
for row in rows:
#subprocess.call(["gcc","C:\web2py\hello.c","-o","x"])
subprocess.call(["./x"], stdout=ofile)
row.update_record(status='executed')
db.commit()
time.sleep(60) # check every minute
ofile.close()
On Friday, June 26, 2015 at
In my application, I want the user to upload as may files as he wants.
I have seen few of the websites. But those seem to be more difficult. Is
there a better way to do this.
--
Chaitanya Pochampally
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com
["gcc","C:\web2py\hello.c","-o","x"])
subprocess.call(["./x"], stdout=ofile)
row.update_record(status='executed')
db.commit()
time.sleep(60) # check every minute
ofile.close()
On Fri, Jun 26, 2015 at 3:19 AM, Manuele Pesenti
wrote:
> Il
Thank you that worked..
On Thu, Jun 25, 2015 at 11:46 AM, Leonel Câmara
wrote:
> You need to set stdout to be a file like object, so just open a file in
> write mode and use that as the stdout.
>
> Something like:
>
> ofile = open(path_to_the_output_file, 'w')
> subprocess.call(["./x"], stdout=
> click the link, if you can't see this file check the static folder, if
> missing these files.
>
> you can copy other aplplications static folder to this application.
> (warning: if you didn't any addition in this folder.)
>
>
>
>
>
>
>
> 2015
can anyone help.
I have copied all the files. But still not working.
When i clicked on the + button it is not showing popup window to choose
files.
On Fri, Jun 26, 2015 at 11:43 AM, Chaitu P
wrote:
> Hi Paolo,
>
> I have installed your application and it is working perfectly.
> I wa
Hi Paolo,
I have installed your application and it is working perfectly.
I want have same multiimage upload functionality in my application. So I
changed one of the table names.
But unfortunately it is not working. Iam not sure what Iam missing I have
copied the css and js files as well. Is the
[created on {{=question.created_on}}]
{{=HR()}}
{{pass}}
On Thu, Jun 25, 2015 at 1:33 PM, JorgeH wrote:
> what is your development enviroment?
> Operating system
> Web server..
>
>
> On Thursday, June 25, 2015 at 3:17:13 AM UTC-5, Chaitu P wrote:
>>
>>
>>
I want to compile the files that were uploaded. But the files are getting
uploaded with some random name. So how can I refer them.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/
Does anyone have idea why web2py default layout not working.
--
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)
---
You received this message because you are su
still I didn't get it.
On Tue, Jun 23, 2015 at 1:23 PM, Dave S wrote:
>
>
> On Tuesday, June 23, 2015 at 8:43:03 AM UTC-7, Chaitu P wrote:
>>
>> hello,
>>
>> I want to write the the output of subprocess.call to a file. How can I do
>> that.
>>
Hello all,
In my application when I want to create a hyperlink which should display
the corresponding uploaded image when it is clicked.
Right now Iam able to only download the image.
Can anyone please help???
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http
hello,
I want to write the the output of subprocess.call to a file. How can I do
that.
Here is my code.
#subprocess.call(["gcc","C:\web2py\hello.c","-o","x"])
subprocess.call(["./x"])
Here after executing c program I want to send the output to a file
instead of console.
--
Chaitanya Pochampa
thank you for your reply Stifan.
Iam able to send it to the console. But when Iam trying to send it to
gmail, its getting failed.
This is the code I used.
from gluon.tools import Mail
mail = Mail()
mail.settings.server = 'logging'
mail.settings.sender = 'y...@example.com'
mail.settings.login = 'No
Hello,,
I want implement a functionality where by clicking button user should be
able to upload as many files as he wants. And these should be saved in
database as well.
User should be able delete those uploads as well.
Can any one please let me know how to implement this.
--
Resources:
- http
Hello all,
Iam creating a web application using web2py where teacher can post questions
and students can submit the solution .c file. Now my application should run
that file.
can anyone suggest me how to priceed with compilation?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Docum
Hello all,
Iam the beginner of web2py.
Iam trying to send email using web2py. Iam following the we2py
book http://web2py.com/books/default/chapter/34/08/email-and-sms.
Can any one please please let me know what exactly need to do.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Docu
Is there any way that I can disable complete form instead of each
element.Because I want to have the same format in both the cases.
Here is my code of view...
{{=question.body}}
{{if datetime.timedelta(days=2)>(t-question.created_on):}}
{{=form}}
{{else:}}
Name
Email
{{pass}}
--
Reso
the id's would not appear in the URL.
>
> Anthony
>
>
> On Sunday, June 7, 2015 at 8:46:33 PM UTC-4, Chaitu P wrote:
>>
>> Hello,
>>
>> This is my web page. Iam showing the questions using loop. If for example
>> student has answered for 1st question I s
, 2015 at 8:33 AM, JorgeH wrote:
> can you share the code you have at the moment?
> or at least a screenshot of the webpage you mention..
>
>
> On Thursday, June 4, 2015 at 11:26:00 PM UTC-5, Chaitu P wrote:
>>
>>
>> I have a situation where I have several questions
I have a situation where I have several questions displayed on a page and
below each of the question there will be a form like student name and
email. Once the student clicks on the submit button I want to pass the
corresponding question id in the URL. I have seen several examples to pass
argu
Hi Iam new to Python.
Iam creating a blog where I want to allow users to comment only for one
week from the time I have posted.
Can any one let me know how can I use arithmetic operations on date.?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web
32 matches
Mail list logo