Mind that you have written
db.define.table
instead of
db.define_table
Paolo
On Friday, June 5, 2015 at 6:26:00 AM UTC+2, Dan Hett wrote:
I am getting an error for this table creation:
db.define.table('blade_location',
Field('bladeID','reference blade'),
QT is ok if you can code in c++ but kivy works in python and using qml a
powerful language to create your interface.
Cordova is great if you want a webpage in your phone. I don't like how
slow it is.
On Fri, Jun 5, 2015 at 7:25 AM Gary Cowell gary.cow...@gmail.com wrote:
This UI independence
Commendable effort! But I second the folks who don't want any logo or name
changes for the time being. Thanks.
On Monday, June 1, 2015 at 11:06:16 AM UTC-7, Massimo Di Pierro wrote:
Time to revamp the web site?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
It seem so. There is a lot of nice tools, but they do not work together.
I have to split my text into paragraphs, headlines and so, format each
part, put it into a list and create my files out of this list. It works,
but it is not very comfortable.
2015-06-05 9:12 GMT+02:00 José Luis Redrejo
Grrr.
I just upgraded postgresql to the latest version 9.4 on Windows. I was
surprised to see that it didn't overwrite the Postgres 9.2 install on my
system. So I backed up my 9.2 db, created a new db under 9.4 and restored
the 9.2 db into the 9.4 db. Everything seemed OK. But web2py wouldn't
* Take a look at your web2py error logs - it usually gives you the
reason as to what is wrong (even if your admin app does not work,
just open the error logs in a text editor and view it)
* Did you try running web2py from the console - python web2py -S
some-test-app-name
Then you
* Take a look at your web2py error logs - it usually gives you the
reason as to what is wrong (even if your admin app does not work,
just open the error logs in a text editor and view it)
* Did you try running web2py from the console - python web2py -S
some-test-app-name
Then you
I don't think you can mix markmin with fpdf (using the html to pdf
functions).
You will have to build your pdf in the controller picking up the text from
the html.
2015-06-04 23:27 GMT+02:00 Martin Weissenboeck mweis...@gmail.com:
What I want to do:
- I want to write some pages using
Hi Kiran, thanks for the response.
Unfortunately, I can't see my error files now because I can't get through
to web2py admin. Before updating web2py, there were absolutely no error
messages about not being able to connect to postgres. And yes, I have run
from the console but still no luck in
Thanks Ron.
I'm just using customised bootstrap 3 with customized welcome app
layout.html file. When I started working on this project web2py didn't
support boostrap 3 out-of-box and I really wanted to use some bootstrap 3
features. Couple of months later bootstrap 3 was implemented with
To parsing A tag:
h = '''
div class=operations
a class=cheque
href=/report/cheque.action?transaction=5315416947amp;direction=OUT
target=_blank
Show this
/a
/div
'''
h = TAG(h)
op_id =
Thanks Jorge
On Friday, 5 June 2015 00:28:57 UTC+2, JorgeH wrote:
Looks good ;)
--
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
Alright. I took the error message over to another machine that has an older
version of web2py running. Looks pretty fundamental.
CountFileError10_0_globals.pyAttributeError: type object 'DAL' has no
attribute 'Field' http://127.0.0.1:8000/admin/errors/admin#+ details
I agree, any example that might be beneficial should be here. When I
started with web2py I remember tinkering alot about some simple stuff, for
example {{block}}. Such a useful and powerful feature when it comes to
design :)
What do you mean by active state?
On Friday, 5 June 2015 04:11:23
Thanks Massimo. I'm glad you like it.
I didn't expect that! I see this site as a supplement to web2py book,
slices and other resources. What is happening with web2pyslices.com? I hope
slices is not being abandoned.
This is maybe a topic for another thread, what is the future for
it's so difficult without seeing any code, but you can use timedelta for it
e.g. not tested
duedate = blog.created_by + datetime.timedelta(7)
editable = True if request.now duedate else False
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Please open a ticket about this.
On Thursday, 4 June 2015 23:26:00 UTC-5, Mat Miles wrote:
I upgraded Web2py to version 2.10.4 on Pythonanywhere which has created a
problem with SQLFORM.grid. I have a table that has a date field. When you
attempt to search by this date field in a
I think www.web2py.com needs a more appealing CSS design .
2015-06-05 13:56 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:
There will be no name change. I did not propose any name change.
All I asked is if we should revamp the web site. Feel free to submit
proposals.
About the
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 displayed on a page and
below each of the question there will be a form like
There will be no name change. I did not propose any name change.
All I asked is if we should revamp the web site. Feel free to submit
proposals.
About the logo. Web2py does not have a logo. It has many logos. Everybody
can use the one they like.
On Friday, 5 June 2015 04:24:32 UTC-5, weheh
Appreciate any help one can offer. I have an web2py application where I
need to perform using the custom web2py ajax function provided with web2py:
ajax(url, [name1, name2, ...], targetFunction).
The post works fine on the server side but I was wondering if there is a
way to use this
+1 for Ractive.js W3 Massimo app work effort to bring it to live...
I fall miserabily trying to work on it, I had some time then get squeeze by
so much stuff and have to give up... I try to integrate with Semantic ui
but realize that didn't know it pretty well :)
I would like to help, but only
I think in the next version of the main site, it would be good to implement
the integration with Ractive.js that Massimo has been working on. To
project a more modern feeling.
On Friday, June 5, 2015 at 7:56:21 AM UTC-5, Massimo Di Pierro wrote:
There will be no name change. I did not propose
please take a look at web2py book about components and plugins
ref:
http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components--LOAD-and-Ajax
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
It's not quite clear what you are asking. Note, the third argument to
ajax() is not a function but the CSS id of the DOM element where the
returned HTML should be inserted. If instead of returning and inserting
some HTML you would like to run some Javascript code upon completion of the
Ajax
The element of design you have their, the color choice and
everything...stand out really well. What I mean by active state is when you
hoover your mouse over to a topic it highlights. Again, design feature. Not
development. Hopefully someone will put some design examples in the site.
On
I know about uploadseparate option. I was looking for kind of solution
where I could define the folder structure for uploaded files (from
different forms).
I will try to implement my own logic. Thanks.
Theres
On Monday, 25 May 2015 23:02:09 UTC+2, Anthony wrote:
It looks like each project
I know the feeling. Using ractive (or angular) with other js libraries is a
bit of a pain.
On Friday, 5 June 2015 08:31:07 UTC-5, Richard wrote:
+1 for Ractive.js W3 Massimo app work effort to bring it to live...
I fall miserabily trying to work on it, I had some time then get squeeze
by
You don't need to serialize and then apply TAG a second time. Just do:
h = TAG(h)
op_id = h.element('div.operations a.cheque')
print op_id, op_id['_href'], op_id[0]
Anthony
On Friday, June 5, 2015 at 7:40:50 AM UTC-4, Dmitry Ermolaev wrote:
To parsing A tag:
h = '''
You can submit a Github issue. Adding the number type seems fine, but we
should not add the step attribute.
Anthony
On Friday, June 5, 2015 at 12:26:00 AM UTC-4, Pavel Tyurikov wrote:
Thanks for advice. I meen isn't it would be nice to have a defautl widget
with right attrs set? I
Hy guys!
I use a SMARTGRID with a linked_table argument. But only the view button is
displayed on item level. This on level parent and child.
Even adding the argument editable=True has no impact - anyway this is already
default.
Thanks for help!
Beat
--
Resources:
- http://web2py.com
-
You either have to be logged in or set user_signature=False.
Anthony
On Friday, June 5, 2015 at 12:26:00 AM UTC-4, Beat Kohler wrote:
Hey guys!
on a SMARTGRID I added a linked_table argument. ... no I have only the
view button left. No way to modify neither the parent nor the child.
What
Sorry for the confusion but your answer works just great. Thanks
On Friday, June 5, 2015 at 10:07:49 AM UTC-4, Anthony wrote:
It's not quite clear what you are asking. Note, the third argument to
ajax() is not a function but the CSS id of the DOM element where the
returned HTML should be
Hello,
(1) I use sqlite
(2) In development I made the following change to a given table:
db.define_table(...
Field('description', 'text'),
...
)
becomes:
db.define_table(...
Field('description_en', 'text'),
Field('description_fr', 'text'),
...
)
Everything went well.
(3) Then I
Can you post the example of div element about recent examples, top rated
examples...etc and show how you create the box element? I believe that's
what you meant by custom layout.
On Friday, June 5, 2015 at 11:45:47 AM UTC-4, Derek wrote:
The slider thing on the top moves the content up and
Did you mean to put this into specific app?
This does not work, because router redirects to different app.
On Friday, 5 June 2015 17:17:48 UTC+2, villas wrote:
Maybe something like this (untested)...
--- in models/0redirects.py ---
if request.application in ['app2','app3']:
vars passed to controller doing grid search disappear
seem that updating w2p to keep the vars after grid search would be a good
improvement
thanks!
Alex Glaros
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Really good +1 !
If you are planing to test the app, please do not publish irrelevant or
uncompleted records...(google remembers everything) :)
Whilst testing, maybe you should consider a robots.txt
https://support.google.com/webmasters/answer/6062608?hl=enref_topic=6061961rd=1
file with
The slider thing on the top moves the content up and down. And it repeats,
so it's like trying to use your website on a mexican jeep on it's way to
Costa Maya.
On Thursday, June 4, 2015 at 2:40:14 PM UTC-7, Ivica Kralj wrote:
Hi All,
This is my little personal project I have worked on for
Great work! We need some well documented starter apps. Flask seems to
gets loads on the likes of Python Weekly.
Would be very helpful to get some recent ones online for newbies.
On Thursday, 4 June 2015 22:40:14 UTC+1, Ivica Kralj wrote:
Hi All,
This is my little personal project I have
Maybe something like this (untested)...
--- in models/0redirects.py ---
if request.application in ['app2','app3']:
redirect(URL('index'))
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
once again surrounded by a brilliant white light of not supporting
different sets of specific css-widgets...
issue https://github.com/web2py/web2py/issues/994
PR that fixes https://github.com/web2py/web2py/pull/995
On Friday, June 5, 2015 at 2:52:18 PM UTC+2, Massimo Di Pierro wrote:
Please
it seems that you updated also the databases folder of your production app
or ... dunno.
I don't see why so many peoples are running into this kind of errors (there
are others intricacies but adding column ISN'T one of them). What DAL does
with migration is pretty documented and
On Friday, June 5, 2015 at 6:26:00 AM UTC+2, Dan Hett wrote:
I read through a few of these threads. If it is indeed a connection issue,
how do I test that within Web2Py?
I switched the DB to MySQL to see if that would make a difference and
received the same error.
It seems to create the
On Friday, June 5, 2015 at 3:35:08 PM UTC-4, Niphlod wrote:
BTW: until all snippets are continously tested, this is going to become
the 4th incarnation of a web2py snippet blog/container/etc with outdated
pieces of code within the next year, when the buzz wears off.
Nothing worse than
On Friday, June 5, 2015 at 10:17:36 PM UTC+2, Rufus wrote:
On Friday, June 5, 2015 at 3:35:08 PM UTC-4, Niphlod wrote:
BTW: until all snippets are continously tested, this is going to become
the 4th incarnation of a web2py snippet blog/container/etc with outdated
pieces of code within
On Friday, June 5, 2015 at 6:32:39 AM UTC-7, 黄祥 wrote:
it's so difficult without seeing any code, but you can use timedelta for it
e.g. not tested
duedate = blog.created_by + datetime.timedelta(7)
editable = True if request.now duedate else False
Note that datetime.timedelta is a Python
I agree with Niphlod for the most part. Just one note, the whole purpose of
web2py was just that. As a learning tool for people who are not an expert.
If you hear Massimo talk. Several times he mentioned, web development
doesn't need to be difficult. Thats the reason you run into lot of
Your 'drivers.py' isn't looking for 'sybpydb' it's looking for 'Sybase'
(hence he's asking you to install the correct package) so it is calling
'import sybase'. You could modify your drivers.py and 'import sybpydb as
Sybase' and web2py won't know the difference. You may get errors, you may
book is for near-stable things. new can be only find in docstring.
Fortunately we host API docs on readthedocs with full-text search
go to http://web2py.rtfd.org/, insert recaptcha2 inside the box, see the
magic happening!
(this
uhm. note that the uri is mysql://username:password@hostname/databasename
it seems that you put a ; instead of a : between user and password.
On Friday, June 5, 2015 at 6:26:00 AM UTC+2, Jose Galvan wrote:
Hi all..
Iam starting to learn web2py. I have been playing with DAL and was able
to
please try (not tested)
response.title = str(session.saved_purpose['specificOrganizationID'])+' -
'+str(session.saved_purpose['the_purpose'])
ref:
http://web2py.com/books/default/chapter/29/02/the-python-language#dict
best regards,
stifan
--
Resources:
- http://web2py.com
-
did you by any chance update web2py using the update button on admin ? if
so, and if you were running a rather old web2py instance, the updater
probably left some files behind that shouldn't be there (mainly DAL
structure with the new subpackage).
See what the standard folder structure in
I want to access specificOrganizationID or any var in the below session
dict vars
session.saved_purpose = dict(the_purpose =
request.get_vars.the_purpose,
specificOrganizationID=request.get_vars.specificOrganizationID)
If I type this
response.title=str(session.saved_purpose)
I
not to be the buzzkiller but I won't post any example there that exists on
web2pyslices.com that ATM has at least 2 killer features: social login and
packages uploads.
BTW: until all snippets are continously tested, this is going to become the
4th incarnation of a web2py snippet
works perfectly
thanks Stifan
--
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 subscribed to the Google Groups
One thing you can do...
Let's say,
Table1 is post
Table2 is comment
When you render the comment form
form = SQLFORM(db.comment).process()
I am assuming you want to comment after the post is processed which make
sense.
Here you can invoke a conditional statement like this.
post_time =
One debugging method I find helpful is being able to print to console the
variables, objects, etc.
I'm creating a decoupled application and the client-side is sending args to
the server-side. To understand what these args exactly entail I'd like to
print them out using Python.
Consider this
In rails you can do require filename and use anything from that file. Can
you do something similar in Web2py?
Here's the situation:
fila_a.py in Controllers
file_b.py in Controllers
I need to import most of the functions (or all of them) from file_a.py into
file_b.py.
How can I achieve this?
That seems to have fixed the date issue but I have another field that it
did not fix. This field is populate not from a database but from a SET.
When you try to filter on the values from the SET, instead of getting a
drop down, you only get an empty text box. This also worked fine before the
and the latter option is very unsafe.
On Friday, 5 June 2015 09:32:13 UTC-5, Anthony wrote:
You either have to be logged in or set user_signature=False.
Anthony
On Friday, June 5, 2015 at 12:26:00 AM UTC-4, Beat Kohler wrote:
Hey guys!
on a SMARTGRID I added a linked_table argument. ...
I have define routes like this:
routers = dict(
BASE = dict(
domains = {
'domain1.com' : 'app1',
'domain2.com' : 'app2',
}
),
)
which works OK.
However, there is a thing, that I would like to avoid.
If i acces: domain1.com/*app2*, i get app2. Is there a
62 matches
Mail list logo