Commit Graph

4852 Commits

Author SHA1 Message Date
mdipierro 91dc4f1d03 fixed issue 1806:auth.wiki does not create permissions correctly, thanks Florian 2013-12-07 10:16:21 -06:00
mdipierro 4b124cc214 Merge pull request #318 from ilvalle/todolist
Todolist panel in admin editor
2013-12-06 18:28:18 -08:00
mdipierro 0ed01e5a21 enable killing processed in windows, thanks Yair 2013-12-06 20:15:41 -06:00
ilvalle b7192d706c todolist panel (frontend part), by clicking on the TODO the relatve file is opened in a tab and the cursor is placed at the right line 2013-12-06 12:37:33 +01:00
ilvalle 557e4892b0 todo panel view 2013-12-05 11:49:21 +01:00
ilvalle b61b0bf3ad todo panel in admin editor 2013-12-05 11:43:23 +01:00
mdipierro 3a6a8af9f6 fixed typo in spreadsheet, thanks Alan 2013-12-04 19:35:43 -06:00
mdipierro 5b7167436b optional label in checkbox widget, fixed issue 1797, thanks Richard 2013-12-04 10:43:50 -06:00
mdipierro 8d4b4430de Merge pull request #317 from michele-comitini/entity_quoting
quoting of tablenames and field names
2013-12-04 08:34:52 -08:00
mdipierro 9d4cb09fdf fixed typo, thanks Dean 2013-12-03 09:32:42 -06:00
Michele Comitini 14bcad629e quoting of tablenames and field names
fix for wrong sequence name quoting

fix for wrong sequence name quoting 2

reverted test to quoted rname

rname passed asis. freedom in table names and field names. Case sensitivity in field and table names

removed test of allowed char sequence in table and field names, there is no limit anymore

fixed some troubles with postgresql drop(). Better Row.__getitem__(): should not be much slower.  Added a ignore_field_case parameter to allow Field('F')!=Field('f') on databases supporting case sesitivity.

different mysql drivers handled in quoting test.

improved handling of foreing keys

fix with quoted names in SQLTABLE.  fix for ORDER BY

handle references on non "id" fields

check reference expression against table list first
2013-12-03 12:29:30 +01:00
mdipierro 645c3b10dd fixed issue 1783 again, thanks Dean Kleissas 2013-12-03 00:41:51 -06:00
mdipierro 16f9222847 Merge pull request #316 from anssih/fix/ndb-lists
Fix list types in GAE NDB after entity write
2013-12-02 19:41:26 -08:00
Anssi Hannula b7e7c8caf2 Fix list types in GAE NDB after entity write
As per
http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=208
("List items from repeated StringProperty get mutated to _BaseValue on
put") it seems to be expected behavior that lists in NDB models get
mutated to _BaseValue lists after .put() is called.

In web2py this corresponds to:
------------
db.define_table('listintegertest',
	Field('dummy', 'boolean'),
	Field('integerlist', 'list:integer'),
	Field('stringlist', 'list:string'),
)

iidee = db.listintegertest.insert(
	integerlist=[1,2,3,4],
	stringlist=["1","2","3","4"]
)
row = db.listintegertest(iidee)
db.listintegertest[row.id] = dict(dummy=True)

print "type is %s" % (type(row.integerlist[0]))
print "type is %s" % (type(row.stringlist[0]))
------------

The output of the above is currently:
type is <class 'google.appengine.ext.ndb.model._BaseValue'>
type is <class 'google.appengine.ext.ndb.model._BaseValue'>
while this is expected:
type is <type 'int'>
type is <type 'unicode'>

The workaround is to copy the list from the NDB model instead of
relying on it not being changed afterwards.

list:reference is not affected since parse_list_references() already
recreates the list in NoSQLAdapter case.
2013-12-02 23:27:21 +02:00
mdipierro 7703d959ef fixed request.user_agent().get('is_mobile', False), thanks Jonathan 2013-12-02 10:28:13 -06:00
mdipierro cb47024f2b Merge pull request #314 from oscarfonts/oracle-extract
extract_oracle_models.py script
2013-12-02 08:18:44 -08:00
mdipierro 55cbc1830a fixed issue 1795:MongoDB: DAL instantiation dict definition error, thanks Alan 2013-12-02 02:07:17 -06:00
mdipierro 3f61d725c4 Merge branch 'master' of github.com:web2py/web2py 2013-12-02 01:29:31 -06:00
mdipierro bc8bc03fd2 Merge pull request #312 from anssih/fix/ndb-refs
Fix references with GAE in NDB mode
2013-12-01 23:29:14 -08:00
mdipierro cbc20782ae Merge branch 'master' of github.com:web2py/web2py 2013-12-01 19:48:59 -06:00
mdipierro af290117d4 Merge pull request #311 from pyner/patch-2
Update access.py
2013-12-01 17:48:43 -08:00
mdipierro 42a662a7ad Merge branch 'master' of github.com:web2py/web2py 2013-12-01 19:48:28 -06:00
mdipierro 2ead96313b Merge pull request #310 from pyner/patch-1
Update buttons.py
2013-12-01 17:48:05 -08:00
Anssi Hannula fcd9e0d5c6 Fix references with GAE in NDB mode
For reference types the IntegerProperty class (no matter if NDB or
not) constructor is passed the referenced table name as the first
parameter.

For non-NDB, the first parameter is 'verbose_name'. For NDB, the first
parameter is 'name'.

In NDB mode this causes the property to have a wrong identity and
therefore references fail to work properly.

The verbose_name set in non-NDB mode is relatively harmless in
comparison, but seems to be wrong as well as it does not really make
sense.

Do not pass referenced table name to the IntegerProperty constructor in
either case.
2013-12-01 23:36:25 +02:00
samuel bonilla 593540e467 Update access.py
<type 'exceptions.AttributeError'> 'dict' object has no attribute 'is_mobile'"
2013-12-01 11:39:37 -05:00
samuel bonilla f66d0e1200 Update buttons.py
<type 'exceptions.AttributeError'> 'dict' object has no attribute 'is_mobile'"
2013-12-01 11:37:29 -05:00
mdipierro fa1c719c96 removed conflict from languages, thanks Niphlod 2013-12-01 10:00:05 -06:00
mdipierro 77b66d6015 fixed conflict 2013-11-30 16:50:31 -06:00
Fran Boon ad87d196e5 Enhance encoding header of languages/*.py 2013-11-29 12:07:36 +00:00
mdipierro aac892364c R-2.8.2 R-2.8.2 2013-11-28 07:52:24 -06:00
mdipierro 64b670fd8f fixed issue with scheduler and cache.disk introduced in 2.8.1 2013-11-28 07:50:55 -06:00
mdipierro a55c6777d3 R-2.8.1 R-2.8.1 2013-11-27 13:54:04 -06:00
mdipierro f9e16557c4 Merge pull request #308 from niphlod/issue/1780
fixes issue 1780
2013-11-27 10:00:49 -08:00
mdipierro 165b682e01 no more drawer open in edit mode 2013-11-27 12:00:21 -06:00
niphlod 92ab6dc635 fix issue 1780 2013-11-25 22:46:27 +01:00
mdipierro 0385ce6eb2 allow add_button(...,'javascript:') 2013-11-25 15:22:21 -06:00
mdipierro 5ba6e8fea2 Merge pull request #307 from erikmontes/patch-1
Comment documentation typo correction
2013-11-25 10:50:05 -08:00
mdipierro 8979c0919f Merge pull request #306 from ilvalle/git-fix
fix issue-1789
2013-11-25 10:49:05 -08:00
Erik Montes b9048b6d65 Comment documentation typo correction 2013-11-25 10:34:55 -08:00
ilvalle 3592dba7f5 fix issue-1789 2013-11-25 09:49:43 +01:00
mdipierro a7defed64c no more Tkinter is not necessary 2013-11-24 20:33:31 -06:00
mdipierro ff2f11a706 generic.jsonp raises HTTP(404) 2013-11-24 09:44:08 -06:00
mdipierro 84cc47920b Merge branch 'cm-3.20' of https://github.com/ilvalle/web2py into ilvalle-cm-3.20 2013-11-23 21:49:54 -06:00
mdipierro f57d96d64d no more 2.5 testing on Travis 2013-11-23 21:49:34 -06:00
mdipierro c310627d1b possibly fixed the PyPy testing problem 2013-11-23 21:42:09 -06:00
ilvalle be66f53c7e fix form action 2013-11-24 00:20:13 +01:00
mdipierro 77f32a8f4b wmv in expand all 2013-11-22 21:20:47 -06:00
mdipierro 9b8a24eeb9 fixed undefined form last commit 2013-11-22 12:14:08 -06:00
mdipierro c87bf553f6 fixed issue 1783:Forgot password and forgot username functionality breaks when multiple usernames are created against the same email address 2013-11-22 10:50:29 -06:00
mdipierro 2361eb4a84 fixed issue 1786:Allow formargs to override grid parameters., thanks iiijjjiii 2013-11-22 10:25:22 -06:00