Thats not the issue. Sry i didnt post the whole declaration but yes im
calling process.
This is the declaration
form = SQLFORM.factory( fields...).process(formname = "form1")
The problem was the IS_BINARY validator which was consuming the file before
it got saved. If i remove it the file is sto
I am using to remove rows...
for row in alerts_rows.exclude(lambda row: row.id > 0):
pass
On Friday, February 12, 2016 at 5:49:38 AM UTC+5:30, Alfonso Serra wrote:
>
> You can try "del rows" to remove the reference from memory before
> collecting
> del a single row raises a TypeError but d
I think you haven't from.process()
form=SQLFORM() # or SQLFORM.factory - just makes a set of
html-like-component (set of DIV(), INPUT() and so on)
form.process() - filters and fills form with request.vars, does validation
and so on
On Friday, February 12, 2016 at 2:50:14 AM UTC+3, Alfons
LOAD() works like URL(), so, to pass args/vars to modal_content you could
write
m_cont = LOAD(f='*modal_content**.load*', *args=[ ], vars={ }*,
ajax=True, ajax_trap=True ) # see LOAD in web2py book
in modal_content controller there is nothing new, everything is as usual
def modal_content
OK. Is it useful for me to submit a patch?
Browser, BTW, is text-mode links: latest version, but doesn't see
a lot of development.
-mg
On Sun, Feb 07, 2016 at 07:43:17AM -0800, Anthony wrote:
> In fact, wrapping in the div with display:none may not be necessary anyway
> -- I think that itsel
I created a module Countries.py with all the country names, imported into
my model db.py and
Field ('countries', requires = IS_IN_SET(COUNTRIES), default='United
States'),
then when I go to execute it, I get the following error
(1025, "Error on rename of
'./Kryz@0024db_egressum_we2py/#sq
What are you trying to do? Do you want to store this information in the
POrequest table, or do you want to prevent inserts if the item is not in
the db.inventory table? If the latter, IS_IN_DB will certainly work, but
note that validators only get run if you are using SQLFORM or if you call
.va
You can try "del rows" to remove the reference from memory before
collecting
del a single row raises a TypeError but del rows doesnt. It may help.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com
Hi val thanks for your answer.
Althought as you said, an absolute path is safer, a relative path as i have
in the field form, looks like it works.
I got that part covered with:
filename = form1.vars.csvfile
file = request.post_vars.csvfile.file
file.seek(0) #something is consuming the file so i
1. If you specify uploadfolder, it must be absolute path - something like
os.path.join(request.folder, 'path_relative_to_your_app')
2. To store file I use like this:
dst = open('your_file_absolute_name', 'wb')
shutil.copyfileobj(form.vars.file, dst)
dst.close()
it works
On Friday, Fe
I should have mentioned that I tried IS_IN_DB first off and it didn't work
On Wednesday, February 10, 2016 at 4:25:48 PM UTC-7, Dave S wrote:
>
>
>
> On Wednesday, February 10, 2016 at 2:01:52 PM UTC-8, Greg White wrote:
>>
>> Want a computed field to show whether or not a field value exists in
>
Ok the first mistake ive made
file.seek(0) returns None so file.seek(0).read() doesnt make sense.
--
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 rece
Thank you! Works great.
On Thursday, February 11, 2016 at 4:27:22 PM UTC-5, Val K wrote:
>
> Hi!
> Here is my solution. I have modal_wrapper function. In controller file, I
> have two controllers - main_page and modal_content:
>
>
>
> def *main_page*():
>
> main_pg=DIV()
>
> m_c
Hi!
Here is my solution. I have modal_wrapper function. In controller file, I
have two controllers - main_page and modal_content:
def main_page():
main_pg=DIV()
m_cont = LOAD(f='*modal_content**.load*', ajax=True, ajax_trap=True )
dialog = modal_wrapper(m_cont, _id='*co
Hey everyone.
Im having a hard time to import and process a csv file.
I would like to:
- upload the file,
- let the user do some kind of preprocess, (map columns, and such).
- insert records.
- dispose the uploaded file.
Its a double post i gotta do, one to submit the file, and another for the
try this:
{{block right_sidebar}}
some other content
{{end}}
and style it like this:
#side_color {
position: relative
top: 2px;
line-height:1px;
background-color:#ee;
height:3000px;
width:7000px;
float:left;
padding:1px;
}
Should come pretty clo
there's no callback available on web2py.js for it. either code your own
widget or override event_handlers() in your own js appropriately.
On Thursday, February 11, 2016 at 6:55:16 PM UTC+1, lucas wrote:
>
> hey everyone,
>
> so under the sqlform.custom.beginsqlform.custom.end with the view, a
Hi Richard, will be very good take a look to your solution, right now I
have some javascript generated server side and I really want to remove
it. Once the server side javascript is removed should be easy adapt the
plugin to other technologies.
I have been watching semantic some time ago and I
It gets created in the web2py/nginx/ubuntu install script.
-Jim
On Thu, Feb 11, 2016 at 11:45 AM, Mirek Zvolský wrote:
> I am trying do the same on Debian 8 Jessie and have a question:
> From where do you have /etc/uwsgi/web2py.ini
> I have no such file. From that reason your point (5) will fai
http://www.infoworld.com/article/3023050/open-source-tools/infoworlds-2016-technology-of-the-year-award-winners.html#slide18
Richard
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/iss
I have found the content for web2py.ini in web2py repository:
https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh
...and it works - great !
http://81.2.244.50/welcome
Debian 8 Jessie, Forpsi virtual server 1G RAM (1 EUR/month, however maybe
for IT,DE,UK,CZ cust
hey everyone,
so under the sqlform.custom.beginsqlform.custom.end with the view, and
more specifically, under the sqlform.custom.widget of db type 'integer'
where the widget is of class="integer" there is javascript/jQuery code
attached to those inputs that only allow digits and the negativ
I am trying do the same on Debian 8 Jessie and have a question:
>From where do you have /etc/uwsgi/web2py.ini
I have no such file. From that reason your point (5) will fail for me.
Dne středa 10. února 2016 14:46:37 UTC+1 Jim S napsal(a):
>
> I got this working!
>
> Here is what I did.
>
> 1. R
Nice!
There is also semantic ui autocomplete that is worth to give a look at :
http://semantic-ui.com/modules/search.html
Though I like typeahead because it highlight which letters have been found
and where, but I it shouldn't be a requirement...
I would move to semantic in the long run...
I wi
Thank you for your answer Massimo. When I implemented this.
Apply To This Post
It shows me a button and then I get redirected to another page. I just
wanted a pop up window open up with a form to submit that user can move
around without being redirected to another page.
On Wednesday, Febr
On Wednesday, February 10, 2016 at 5:01:52 PM UTC-5, Greg White wrote:
>
> Want a computed field to show whether or not a field value exists in
> another table
>
> started with this...
>
> db.define_table(
> 'inventory',
> Field('name'),
> Field('qty', label='Quantity'),
> Field('M
Hi, right now I am working in a plugin with an autocomplete widget using
typeahead.js:
https://github.com/daxslab/web2py-typeahead
Any clues, suggestions, recomendations etc... will be very welcomed.
Greetings.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofre
So, how do we go about using it? May be an example can be posted using the
forum app in appliance?
On Thursday, February 11, 2016 at 10:02:42 AM UTC-5, Niphlod wrote:
>
> hardly 99% it's another markmin version entirely :°°°D
>
> On Thursday, February 11, 2016 at 3:48:49 PM UTC+1, Massimo D
hardly 99% it's another markmin version entirely :°°°D
On Thursday, February 11, 2016 at 3:48:49 PM UTC+1, Massimo Di Pierro wrote:
>
> For basic thinks like **bold**, ''italic'', ``code``, it is the same. But
> the python version does not support embedded html. The JS version does not
> su
For basic thinks like **bold**, ''italic'', ``code``, it is the same. But
the python version does not support embedded html. The JS version does not
support tables and nested lists. The python version uses the format [[label
http:// image]] while the JS version uses the format image:http://.
Sarebbe bello fossimo nella lista...
http://www.web2py.com/examples/default/usergroups
Un saluto a tutti i Devel Ita
Il giorno mercoledì 18 dicembre 2013 20:57:17 UTC+1, Gael Princivalle ha
scritto:
>
> Comunque direi che per ovvi motivi il web2py-users rimane lo strumento
> principale per porr
also [1]:
...
python web2py.py -S app -M -R applications/app/private/myscript.py -A a b c
where -S app tells web2py to run "myscript.py" as "app", -M tells
web2py to execute models, and -A a b c passes optional command line
arguments sys.argv=['applications/app/private/myscript.py','a','b','c']
t
Tanks for your reply.
I'm not in a production environnement. I'm using web2py with students as
teaching tools.
In fact, my database is sqlite. I'm running 2.12-3 version of web2py on a
linux machine. Python version is 2.7.10.
2016-02-10 21:46 GMT+01:00 Dave S :
>
>
> On Wednesday, February
what is not 100% compatible ? if we want to push this, we should promote it
instead of relying on python code
On Thursday, February 11, 2016 at 4:55:19 AM UTC+1, Massimo Di Pierro wrote:
>
> and the link:
>
> https://github.com/mdipierro/markmin.js
>
> On Wednesday, 10 February 2016 21:55:06
34 matches
Mail list logo