The linked_tables feature in SQLFORM.grid is amazing!
I can rename the link by typing plural='My linked table'
and "My linked table" shows in SQLFORM.grid
Is it possible to convert that to a button? I did not see anything in the
book for that.
--
Resources:
- http://web2py.com
- http://web2py
Retrfit android and web2py backend Rest service.is there anyone can show me for
samples?
--
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 thi
On Saturday, December 31, 2016 at 5:06:07 AM UTC+8, Mark Graves wrote:
>
> How did you install web2py? as a zip? via git?
>
*git clone*
> Did you ever pip install gluon?
>
*nope*
> Did you install web2py / python at different times?
>
*I've been using web2py for years using the system
Hi Friends,
Thanks so much for your efforts of web2py, i need your help on the
challenges i have below.
How can i have automatic lookup of locations/address in the address field
of sqlform geo location feature.
I am thinking its a way of avoiding the need to type in countries,
districts/states
I have used the scheduler before without being worried about the database
type.
I tried to use mysql but it gave an error that it is not supported. I have
mysql and pymysql installed and created a database "testdb" and used the
manual format and got that error that it is not supported.
On Satu
On Thursday, December 22, 2016 at 12:47:43 AM UTC+1, Dave S wrote:
>
> On Wednesday, December 21, 2016 at 7:05:57 AM UTC-8, yarecki wr wrote:
>>
>> I have a table defined where I would need to export one column to SMB
>> share as a txt file automatically when a new row gets added? How can this
I'm noticing a lot of different syntax such as the ManyToMany model,
self.save(), and general layout difference.
Does anyone know if there is a guide to port a django app into web2py or do
I just need to learn django a little better?
--
Resources:
- http://web2py.com
- http://web2py.com/book (
Here is what I'm really trying to do:
*class MyClass(models.Model):CLASS_TYPE = (('field1', 'Field1'), ('field2',
'Field2'))type = models.CharField(max_length=12, choices=CLASS_TYPE)
name = models.CharField(max_length=10)set =
models.BooleanField(default=False)isset =
Hi Joe
This may help: https://github.com/DonaldMcC/w2p_location_widget
- mainly based on work Leonel Camara did a while back - but I updated to
make it do a few more things.
Regards
Donald
On Sunday, January 1, 2017 at 3:47:22 PM UTC, Joe Lwe wrote:
>
> Hi Friends,
> Thanks so much for your
potential quick fix before giving it thought:
did you:
git submodule update --init --recursive
You can easily try this by creating a new web2py installation in a
different folder so you don't mess up exising apps.
Also, is it broken with the downloaded version via zip?
On Sun, Jan 1, 2017
First, it is a working folder that I've been using. It breaks the moment
when I use homebrew's version of python to start web2py. It works when I
use the system's python. Both commands are on the same directory.
Secondly, I have tried git clone recursive in a brand new folder, but it's
still the
Is it in a virtual environment?
-Mark
On Sun, Jan 1, 2017 at 8:37 PM, lyn2py wrote:
> First, it is a working folder that I've been using. It breaks the moment
> when I use homebrew's version of python to start web2py. It works when I
> use the system's python. Both commands are on the same dire
Hello,
I'm new to programming and Web2Py.
I am using pythonanywhere.com (web2py 2.14.6) and editing the existing
'welcome' application
When I make a new function in default.py, foo(), and call it without
explicitly making a view default/foo.html it does not seem to use the
generic.html view.
{"content": [{"name": "Harry Potter and the Philosopher's Stone", "price":
1000, "id": 5, "stock": 700}, {"name": "Harry Potter and the Chamber of
Secrets", "price": 1200, "id": 6, "stock": 1500},
{"name": "Harry Potter and the Prisoner of Azkaban", "price": 700, "id": 7,
"stock": 800}]}
is
In web2py you would do
CLASS_TYPE = (('field1', 'Field1'), ('field2', 'Field2'))
db.define_table('myclass',
Field('type', length=12, requires=IS_IN_SET(CLASS_TYPE)),
Field('name',length=10),
Field('set','boolean',default=False),
Field('isset','boolean',default=False),
Field('
Can you elaborate?
On Sunday, 1 January 2017 23:16:57 UTC-6, PK wrote:
>
> {"content": [{"name": "Harry Potter and the Philosopher's Stone", "price":
> 1000, "id": 5, "stock": 700}, {"name": "Harry Potter and the Chamber of
> Secrets", "price": 1200, "id": 6, "stock": 1500},
> {"name": "Harry P
They are only applied when running on localhost and disabled by default
otherwise.
You can enabled them in db.py by replacing:
response.generic_patterns = ['*'] if request.is_local else []
with
response.generic_patterns = ['*']
or
response.generic_patterns = ['*.html']
They are disabled by
is it possible to truncate tables with record versioning enabled?
*e.g.*
def truncate():
for table in db.tables:
if '_archive' in table:
db[table].truncate()
# define tables which don't have record versioning, when record versioning
enables it return an error traceback about reference to _archive
Hi, I have an app and I had to name it 'init' because the 'welcome' app kept
coming up first. How can I make it so that a different app (e.g. 'jbtus') comes
before 'init?'
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
19 matches
Mail list logo