2009/3/5 mdipierro :
>
> ignore this. On a second thought, this works but lives only for one
> call, you want something more persistent.
> It should be possible to built it with cache and sqlite:memory:
I already tried this using Pythons module caching:
import applications.welcome.modules.ra
Hi all,
I tried creating a new Bazaar branch of the web2py development trunk,
using Bazaar v.1.12-2, and I got the following error:
bzr: ERROR: Invalid http response for
http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/.bzr/repository/packs/38541ced633419b0d0b3fe01435b12ff.pack:
Expected a
I have strange problem when trying to make ajax calls (all with jquery
supplied with web2py). After an Ajax call previously created session
becomes lost, and new empty session is created. I tried file storage
and db sessions storage, it does not matter. After ajax call, any
other call to the site
Hi Massimo,
On Mar 4, 4:53 pm, mdipierro wrote:
> I do not have access.
Public access has been granted. The patch (up-to-date to revision 584
of trunk) is available here:
http://sites.google.com/a/benn.ca/file-locker/file-cabinet/web2py_EditArea_patch.zip
> Instead of the static/...ini file
Hi Massimo,
On Mar 4, 4:53 pm, mdipierro wrote:
> I do not have access.
Oups, sorry. I'll try to figure out what went wrong. If all else
fails I'll email you the patch.
> Instead of the static/...ini file can you place the configurations in
> models/0.py where the other settings are?
Ok,
I see the session processing at
http://groups.google.com/group/web2py/browse_thread/thread/14ec13e619fff190/d1799abb37d7d331?lnk=gst&q=session#d1799abb37d7d331
I don't know when session is cleared by web2py if the application
clear it manually.
--~--~-~--~~~---~--~
Please try this and send me comments:
from gluon.tools import Service
service=Service(globals())
@service.run
@service.json
@service.jsonrpc
@service.xmlrpc
@service.amfrpc
def f(a,b):
return a+b
@service.rss
def myfeed():
return dict
(title='title',link='link',description='description'
ignore this. On a second thought, this works but lives only for one
call, you want something more persistent.
It should be possible to built it with cache and sqlite:memory:
Massimo
On Mar 4, 9:36 pm, mdipierro wrote:
> no but we have
>
> SQLDB("sqlite:memory:")
>
> On Mar 4, 5:23 pm, Robin B
no but we have
SQLDB("sqlite:memory:")
On Mar 4, 5:23 pm, Robin B wrote:
> No one has published a 'RAMDB' (a DAL driver for RAM). It could
> easily be implemented as a global dict, and it could be useful for say
> caching, but I would not put sessions into ram for production. If you
> have mo
I am putting this is but, as you say, probably db2/400 only.
On Mar 4, 4:29 pm, DenesL wrote:
> After a successful insert, either one of these will work:
>
> int(cursor.execute("select IDENTITY_VAL_LOCAL() from
> SYSIBM.SYSDUMMY1").fetchone()[0])
> int(cursor.execute("select IDENTITY_VAL_LOCAL()
The problem is not web2py's. The problem is, to all supported backends
allow this?
On Mar 4, 2:20 pm, ceej wrote:
> I know, leave that as default but it would be nice to have the choice
> to override if you wanted :)
>
> I just came into this problem because I wanted the id's of the web2py
> api
So, we got to the point when we should/must figure out how much are
both problems connected to each other.
Are we lacking man power to write the so necessary docs or do we have
them, it's just that a non production ready wiki set up is getting on
the way? Or maybe both problems exist.
I've always
Notice the subtle distinction in the messages here.
auth.user.id -- this is the global variable 'auth' which has a
variable named 'user' which in turn has a named variable called
'id'. This variable is valid only after a user is logged on and it
refers to the id of the current user. If no one
No one has published a 'RAMDB' (a DAL driver for RAM). It could
easily be implemented as a global dict, and it could be useful for say
caching, but I would not put sessions into ram for production. If you
have more than 1 application server/process, you will not be able to
share sessions between
When I do smth like that in my db.py:
db.sipusers.owner_id.requires=IS_IN_DB(db(db.sipusers.owner_id==auth.user.id
),'auth_user.id','auth_user.name')
I get:
AttributeError: 'NoneType' object has no attribute 'id'
the same:
db.sipusers.owner_id.requires=IS_IN_DB(db(db.sipusers.owner_id==t2.per
For the record (so others do not waste a lot of time)
in controller:
_value=XML(thipage.body,sanitize=True)
should have been
value=XML(thipage.body,sanitize=True)
first example will clear the nicedit panel
second example will include content from db.page.body
got there in the end?
On Feb 27, 8
After a successful insert, either one of these will work:
int(cursor.execute("select IDENTITY_VAL_LOCAL() from
SYSIBM.SYSDUMMY1").fetchone()[0])
int(cursor.execute("select IDENTITY_VAL_LOCAL() from
SYSIBM.SYSDUMMY1").next()[0])
the result before int() is
Note that SYSIBM.SYSDUMMY1 is probably o
Thanks AchipA,
That was exactly the problem. I kept looking but couldn't see what was
wrong.
Thank you very much for your help.
LB
On 4 Mar, 20:43, AchipA wrote:
> Not sure, but I see one point that is different from my setup. Try
>
> LoadModule authz_host_module modules/mod_authz_host.so
>
>
Not sure, but I see one point that is different from my setup. Try
LoadModule authz_host_module modules/mod_authz_host.so
instead of access_module on line 11
On Mar 4, 5:56 pm, LB22 wrote:
> Hi,
>
> I'm trying to setup my site which using the method found
> here:http://forum.webfaction.com/vi
On Wed, Mar 4, 2009 at 7:47 AM, mdipierro wrote:
>
> for now you should be able to do in like this:
>
> from gluon.contrib.memcache import MemcacheClient
> cache.memcache=MemcacheClient([.]) ### [...] is a list of memcache
> IPs
> session=cache.memcache(response.session_id,lambda:{},1e8)
> de
I know, leave that as default but it would be nice to have the choice
to override if you wanted :)
I just came into this problem because I wanted the id's of the web2py
api desktop client to match those of the websites ( for updating
purposes ).
On Mar 4, 1:20 pm, mdipierro wrote:
> The all poi
2009/3/4 Francisco Gama
>
> my turn:
>
> one wiki, and one wiki only. There are very organized and consistent
> wikis.
>
> We define a set of templates for different kinds of pages to document
> and then each page should have a status like: sketch, temporary, page,
> permanent (blocked).
> In la
Are you sure you deleted them through svn and have committed the
change ? Do a 'svn update'. If then get restored, it means you just
deleted them from the filesystem, not the repository. Use 'svn rm
fileme' to remove from repository.
mdipierro wrote:
> I think I cleanup most of this I just do not
my turn:
one wiki, and one wiki only. There are very organized and consistent
wikis.
We define a set of templates for different kinds of pages to document
and then each page should have a status like: sketch, temporary, page,
permanent (blocked).
In last case we could even make a UI that enforc
I think I cleanup most of this I just do not understand where the
epydoc files in svn come from. My folder is empty.
Massimo
On Mar 4, 8:21 am, Markus Gritsch wrote:
> On Wed, Mar 4, 2009 at 3:10 PM, Markus Gritsch wrote:
> > On Tue, Mar 3, 2009 at 11:00 PM, mdipierro wrote:
>
> >> This reall
Two issues:
1) the download action should be
def download(): return response.download(request,db)
else if will not work on GAE
2) GAE has very limited storage size. I have doubts a PDF or DOC file
will fit. This may be the major cause of your problem.
Massimo
> import os
> path=os.pa
The all point of ID is that you do not set it. The db egnine sets it.
On Mar 4, 12:07 pm, Joe Barnhart wrote:
> What is the use case for controlling the id like this?
>
> Does the id in question exist already or are you trying to fill in
> "empty" ids? If it exists already, why don't you updat
You have blessing ;-)
I still willing to host it and there may be an advantage but
1) what do you want me to install?
2) we agreed that we will use launchpad for bugs reports and tickets
3) we agreed to use reST for documentation.
Depending of what we choose the wiki linking may help or get i
I corrected a few pages in the wiki to fix some reST problems.
But I see virtually no activity there. And I agree with the concerns
about the wiki's limitations, both as expressed in this group and in
the "TODO" page on the wiki.
--~--~-~--~~~---~--~~
You receive
after accept try
form.element(_name='password')['_value']=''
On Mar 4, 10:46 am, vince wrote:
> oh it was typo.
>
> db.define_table('person',
> db.Field('name'),
> db.Field('password','password'),
> .
> )
> db.person.password.requires = [IS_NOT_EMPTY(), C
I do not understand. Can you provide an example of code and what you
expect it to do/ not to do?
On Mar 4, 9:51 am, vamaq wrote:
> Hi everybody,
> I'm having a problem with an SQLFORM. The thing is that when I use the
> fields parameter in an SQLFORM to show only one value the IS_IN_DB
> validat
Was reading through the forms. In previous posts, this was a t2
issue. I understand t2 has now been wrapped in elsewhere.
I can get attachments (pdf/docs) to show using sqlite as a backend,
but not GQL. Here is my code:
model
---
db.define_table('news',
SQLField('author',db.person),
What is the use case for controlling the id like this?
Does the id in question exist already or are you trying to fill in
"empty" ids? If it exists already, why don't you update the existing
entry? If the id does not exist already, then why is it important to
control the value?
On Mar 4, 9:41
Yes. As I feared, we converted our momentum for documentation into a
call for a new wiki project. The wiki project is now the logjam.
This is what happens when we decide "we can do it better" and we will
stop documentation until we finish this new better wiki.
The new web2py wiki was tried and
Hey,
I really think by doing db.your_table.insert(id=2,name='test') should
override the tables id being inserted to 2 (or whatever you set).
Other wise you have to do:
new_row=db.your_table.insert(name='test')
db(db.your_table.id==new_row).update(id=2)
db.commit()
--~--~-~--~~
Hi,
I'm trying to setup my site which using the method found here:
http://forum.webfaction.com/viewtopic.php?id=2373, but I keep running
into an error when I try to start up (./webapps/apachewsgi/apache2/bin/
start):
httpd: Syntax error on line 11 of /home/lnoir/webapps/apachewsgi/
apache2/conf/
oh it was typo.
db.define_table('person',
db.Field('name'),
db.Field('password','password'),
.
)
db.person.password.requires = [IS_NOT_EMPTY(), CRYPT()]
thisrecord=db(db.person.id==1).select()[0]
form=SQLFORM(db.person, thisrecord)
if not form.accepts(reque
oh it was typo.
db.define_table('person',
db.Field('name'),
db.Field('password','password'),
.
)
db.person.password.requires = [IS_NOT_EMPTY(), CRYPT()]
thisrecord=db(db.person.id==1).select()[0]
form=SQLFORM(db.person, thisrecord)
if not form.accepts(reque
oh it was typo.
db.define_table('person',
db.Field('name'),
db.Field('password','password'),
.
)
db.person.password.requires = [IS_NOT_EMPTY(), CRYPT()]
thisrecord=db(db.person.id==1).select()[0]
form=SQLFORM(db.person, thisrecord)
if not form.accepts(reque
Hi everybody,
I'm having a problem with an SQLFORM. The thing is that when I use the
fields parameter in an SQLFORM to show only one value the IS_IN_DB
validation stops to work.
The IS_IN_DB validation works on the field that is been showed.
Is this the correct behavior?
Thanks!
Juan
--~--~--
On Wed, Mar 4, 2009 at 3:51 PM, Robin B wrote:
>
> I have been using MEMDB to store sessions in memcache since August
> 2008:
> http://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4d23b53/f67faac66a695ca2?hl=en&lnk=gst&q=memdb#f67faac66a695ca2
>
> the code is under contrib:
>
> fr
Thanks!
I will look into it.
On 4 Mar., 14:42, mdipierro wrote:
> On Mar 4, 2:50 am, notabene wrote:
>
> > I am wondering:
>
> > How does CAS and the new Auth module relate?
>
> For now they do not relate although it would be nice to rewrite CAS on
> Auth and make the CAS client part of Auth
>
The code for T3 menu is inside t2.wiki.
I will study it later to learn how use it.
2009/3/4 Iceberg
>
> On Mar2, 4:41am, Alexandre Andrade wrote:
>
> > Today I was fixed css and really put authentication to work.
> >
> > So, at this point, scaffold has:
> >
> > - a five spaces layout (logo, se
about this, a follow a hint of Massimo, but forgot this detail.
I include your tip too:
T=lambda s,T=T:str(T(s)) # Insert this line
But I'm not releasing another version for while because I'm working on
database import.
2009/3/4 Iceberg
>
> On Mar4, 9:45pm, mdipierro wrote:
> > On Mar
I have been using MEMDB to store sessions in memcache since August
2008:
http://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4d23b53/f67faac66a695ca2?hl=en&lnk=gst&q=memdb#f67faac66a695ca2
the code is under contrib:
from gluon.contrib.memdb import *
from google.appengine.api.mem
On Wed, Mar 4, 2009 at 3:10 PM, Markus Gritsch wrote:
> On Tue, Mar 3, 2009 at 11:00 PM, mdipierro wrote:
>>
>> This really helps. Now I understand the problem and will fix it
>> tonight.
>
> Still different, see attachment.
> (first) is SVN, (second) is BZR
Sorry, the BZR folder was not a clean
On Mar4, 9:45pm, mdipierro wrote:
> On Mar 4, 6:45 am, Iceberg wrote:
>
> > The last problem is that out-of-box scaffold20090301b.tar on web2py
> > 1.56.4 always reports:
> > TypeError: unsupported operand type(s) for %: 'lazyT' and 'dict'
> > when I trying to register a new user. I don't have
On Tue, Mar 3, 2009 at 11:00 PM, mdipierro wrote:
>
> This really helps. Now I understand the problem and will fix it
> tonight.
Still different, see attachment.
(first) is SVN, (second) is BZR
--~--~-~--~~~---~--~~
You received this message because you are subscr
One bummer with collapsing to BZR: I don't think there is a git-bzr is
there?
I agree with the below suggestions. There really needs to be ONE repo
that is authoritative.
I especially agree that it is better practice to NOT check-in
generated contents like the epydocs, but rather have them get
I have a problem with nicedit in a form textarea not displaying the
db.name.field (i.e. db.page.body)
data that has been previously updated in the form using nicedit and
then submitting.
The data displays after submit, and I can display it on another page
using {{=XML(page.body,sanatize=true}} bu
I do not have access.
Instead of the static/...ini file can you place the configurations in
models/0.py where the other settings are?
Massimo
On Mar 4, 7:29 am, Jonathan Benn wrote:
> Hi Massimo and all,
>
> Pursuant to our discussion regarding
> EditArea:http://groups.google.com/group/web2py
I cannot reproduce this. Can you add some print statmenets to
applications/admin/controllers/default.py and try determine if is a
browser issue (as I think), a JS issue or a server side issue?
Did this work with 1.55?
Yarko asked the right question: which browsers do you use?
Massimo
On Mar 4,
On Mar 4, 6:45 am, Iceberg wrote:
> On Mar2, 4:41am, Alexandre Andrade wrote:
>
>
>
> > Today I was fixed css and really put authentication to work.
>
> > So, at this point, scaffold has:
>
> > - a five spaces layout (logo, section menu, left column, center column,
> > right column and footer.
On Mar 4, 2:50 am, notabene wrote:
> I am wondering:
>
> How does CAS and the new Auth module relate?
For now they do not relate although it would be nice to rewrite CAS on
Auth and make the CAS client part of Auth
> I am having more domains pointing to different paths on the same
> web2py-in
Can you try make two migrations.
First, drop the row.
Second, add the row again with the new size
This defines the error but it not very helpful
http://dev.mysql.com/doc/refman/5.0/en/commands-out-of-sync.html
On Mar 4, 2:44 am, cjparsons wrote:
> I made a change to one of my models to incre
On Mar 4, 8:19 am, weheh wrote:
> In particular, let's say I have two fields. The first field is
> fuel_type, which is from a set ['gasoline','diesel']. The second field
> is octane, which is from a set of either ['82','85','87','93'] or
> ['15','17','19','21','23','25']. Depending on which fuel
Hi Massimo and all,
Pursuant to our discussion regarding EditArea:
http://groups.google.com/group/web2py/browse_thread/thread/652990a0d96342b0?hl=en
I have create a new patch that allows web2py end users to easily
modify some of the settings for EditArea, including the font size,
full screen mo
Yes, I'm having the same problem. I (temporary) solve it using # as
the first line.
On Mar 4, 8:10 am, Markus Gritsch wrote:
> On Wed, Mar 4, 2009 at 10:55 AM, Guido Kollerie wrote:
>
> > I have tried it with Safari Version 3.2.1 (5525.27.1) and with Firefox
> > 3.0.6 both running under OS X 1
On Mar2, 4:41am, Alexandre Andrade wrote:
> Today I was fixed css and really put authentication to work.
>
> So, at this point, scaffold has:
>
> - a five spaces layout (logo, section menu, left column, center column,
> right column and footer.
> - a working authentication
> - a secundary menu s
A couple of additional nifty options with versioning available
(compared to having the whole web2py in a classic repository of some
sort):
- applications can check for newer versions in an organized way
- migrating to newer versions that require additional magic to model
migration is easier
- ver
Hi Massimo,
On Mar 4, 7:52 am, mdipierro wrote:
> not true that we do not care. The fact is the long term plan is to
> move to the Amy editor, rather than mess up with editarea. If you want
> to submit a patch to change this, it will probably be accepted.
Ok, I'll try writing a patch.
--Jona
On Wed, Mar 4, 2009 at 10:55 AM, Guido Kollerie wrote:
>
> I have tried it with Safari Version 3.2.1 (5525.27.1) and with Firefox
> 3.0.6 both running under OS X 10.5.6. With both browsers the issue
> occurs. It doesn't matter if I 'toggle the editor'; both the Javascript
> syntaxed colored edito
On 3-mrt-2009, at 17:54, Yarko Tymciurak wrote:
> I did not see if you identified which browser you are using; could
> you identify, and try w/ a different browser (one with a different
> underlying core)?
I have tried it with Safari Version 3.2.1 (5525.27.1) and with Firefox
3.0.6 both running
I am wondering:
How does CAS and the new Auth module relate?
I am having more domains pointing to different paths on the same
web2py-instance. I want a coherent user-table, login, authentication
and authorization on all URL's on the web2py-instance. (No login when
changing domain).
Any hints?
-
I made a change to one of my models to increase
the size of a VARCHAR field from 64 to 138. I'm
using MySQL 5.0.51a-3ubuntu5.4 and web2py 1.57. I
had the same problem with web2py 1.55.
The SQL shown in sql.log is:
timestamp: 2009-03-04T08:24:03.934903
ALTER TABLE meetups ADD entry_key__tmp VARCH
On Wed, Mar 4, 2009 at 5:52 AM, mdipierro wrote:
>
> The fact is the long term plan is to
> move to the Amy editor, rather than mess up with editarea.
Hmm, Amy Editor looks a bit Mac-centric to me. Not just the UI, but
also the shortcuts, which use Mac-style symbols in the menu bar, and
seem to
In particular, let's say I have two fields. The first field is
fuel_type, which is from a set ['gasoline','diesel']. The second field
is octane, which is from a set of either ['82','85','87','93'] or
['15','17','19','21','23','25']. Depending on which fuel type is
selected, the select list for the
67 matches
Mail list logo