[web2py] Re: Debian Packaging

2010-05-20 Thread Trollkarlen
For packaging i sugest using the http://build.opensuse.org. Its a service where you can package for all mager distros, and have them all in se same repo. /T On 18 Maj, 08:42, José L. wrote: > On 17 mayo, 17:32, Mark Breedveld wrote: > > > > > > > I've been through the material and it's quite st

[web2py] Re: Fields with duplicate names not showing up in form generated by SQLFORM.factory()

2014-04-22 Thread Trollkarlen
Can't you try to change the sqlform to use the table name as prefix for the field names, this should solve the issue? /T -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

[web2py] Re: Alternative to SQLFORM for Angular

2014-06-03 Thread Trollkarlen
What happened to this? /R -- 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 "we

[web2py:23668] Re: new auth functions in trunk (basic, email/gmail, ldap)

2009-06-09 Thread Trollkarlen
Alexei Vinidiktov wrote: > On Mon, Jun 8, 2009 at 11:29 AM, mdipierro wrote: > > > > Hi Richard, > > > > the gmail authentication is not based on open-id (yet). it presents > > you with a standard login form. It tried to log you in via the normal > > auth_user table. It it fails, it tried to ver

[web2py:23669] Re: response.flash upgrade

2009-06-09 Thread Trollkarlen
I have done the same but with: http://digitarald.de/project/roar They have very nice things on that site. /T mr.freeze wrote: > I don't like having to click on response.flash to close it so I > replaced it with this: > http://stanlemon.net/projects/jgrowl.html > Just thought I would share. --~-

[web2py:23717] Re: Auth

2009-06-09 Thread Trollkarlen
Fran wrote: > On Jun 9, 11:42 am, Robert Marklund wrote: > > Cant auth be changed somhow to it will be easier to extend like this: > > db.define_table('auth_user2', > >                 db.auth_user, > >                 SQLField('nickname'), > >                 SQLField('image','upload')) > > Th

[web2py:24476] Re: Sessions and flash

2009-06-18 Thread Trollkarlen
I think that can be hard because the user is in this case already logged in. The upload page requiers login, then it sends the files to a new page. So in this stage i dont have the login credentials (password). /R On Jun 19, 5:28 am, mdipierro wrote: > you can try using basic authentication.

[web2py:24550] Re: Sessions and flash

2009-06-20 Thread Trollkarlen
l and > > > manually connect to the session somehow? > > > > On Jun 19, 7:24 am, mdipierro wrote: > > > > > There must be a way to pass the cookie. If you find a solution let us > > > > know. > > > > > On Jun 19, 1:22 am, Trollkarlen w

[web2py:24617] Re: Having an 'upgrade' distribution?

2009-06-21 Thread Trollkarlen
Hurray :) /R On Jun 20, 3:13 am, mdipierro wrote: > By the end of july there will be auto upgrade. ;-) > > On Jun 19, 6:43 pm, Eddie Eyles wrote: > > > I like the pace of new releases of web2py, but it is a pain to > > download each one (the Windows distribution takes an hour on my > > connect

[web2py:24653] Re: Sessions and flash

2009-06-21 Thread Trollkarlen
D) if not auth.is_logged_in(): raise HTTP(404, "No such page") # Save files /R On Jun 20, 4:29 pm, Trollkarlen wrote: > Can anyone describe how to set and get the session id and set it as an > get.data ? > > /R > > On Jun 19, 3:50 pm,

[web2py:24692] Re: Sessions and flash

2009-06-22 Thread Trollkarlen
nse > session id is in response.session_id. The two should match if the > requested session is found. > > Anyway, why don't you explain what you are trying to accomplish. I do > not see why one would ever need to access this. > > Massimo > > On Jun 21, 3:04 pm, Trollkarlen

[web2py:24694] Re: Whats the status of T2 ?

2009-06-22 Thread Trollkarlen
Oki, as I assumed. I really liked the generic comments from t2. But i found some trouble with it when there are multiple comments/ forms on the same page. I have a list of objects that i want comments for and generate the comments like this: def controller: items = db(db.images.id >0).select(

[web2py:24839] Re: Sessions and flash

2009-06-23 Thread Trollkarlen
at you are trying to accomplish. I do > not see why one would ever need to access this. > > Massimo > > On Jun 21, 3:04 pm, Trollkarlen wrote: > > > I just need the info how i can get the session ID from the session > > object. > > And then on the other page from the

[web2py:24870] Re: Multipe create forms on same page.

2009-06-23 Thread Trollkarlen
Acually that wont work either because that dont change the _formname variable. Also all the internal fields and rows get the same names. I solved it with this fix(without the form_prefix set it should work as before): --- web2py.org/gluon/sqlhtml.py 2009-06-11 14:29:55.0 +0200 +++ web2py/

[web2py:24885] Re: Multipe create forms on same page.

2009-06-24 Thread Trollkarlen
e='a'): >     redirect() > form2=SQLFORM(somedb,_id="b") > if form2.accepts(request.vars,session,formname='b'): >     redirect() > > Massimo > > On Jun 24, 1:44 am, Trollkarlen wrote: > > > Acually that wont work either because t

[web2py:24960] Re: NOT a web2py question

2009-06-24 Thread Trollkarlen
Cleaner one: Just find replace into this: tel = {"SPQ": "3[1,0-3]", "SPQ": "70(1-3)" } def get_operator(number): import re for key, value in tel: if re.match(value, number): return key pre-compile the re before with re.compile and add then to the "tel" array in stead to get better preform

[web2py:24961] Re: verify updated email address?

2009-06-24 Thread Trollkarlen
Out out safety purpose its good to have him validate the new address with his old address. Then its harder for some one to change address and then just do a password recovery. If the password is not required when doing a e-ail change and its not by default. /R On Jun 25, 2:06 am, mdipierro wrot

[web2py:24962] Re: Database Queries and Filtering

2009-06-24 Thread Trollkarlen
Here it comes: db(db.projects.is_active == True).select (orderby=~db.projects.due_date) The info for building this and learning is all on AlterEgo or in slides. /R On Jun 25, 6:23 am, Michael wrote: > Yea I read over the slides. I'm just having a tough time learning on > how to write efficient

[web2py:24971] Re: Multiple Form functionality is Broken ??

2009-06-25 Thread Trollkarlen
Can this be the same problem as I described in the "web2py 1.64.3" mail. /R On Jun 25, 6:02 am, mdipierro wrote: > Please email me this (again?) so that I can reproduce the problem. > > Massimo > > On Jun 24, 10:51 pm, Yannick wrote: > > > Hello Massimo, > > Sorry to bother but was wondering i

[web2py:24992] Re: Antwort: [web2py:24977] Re: db query problem

2009-06-25 Thread Trollkarlen
that didnt do it. And i would like to doit with one query if possible. my db looks like this: db.define_table('images', SQLField('posted_on','datetime', default=request.now, writable=False, readable=False), SQLField('posted_by', db.auth_user, writable=False, readable=False), S

[web2py:24999] Re: Antwort: [web2py:24992] Re: Antwort: [web2py:24977] Re: db query problem

2009-06-25 Thread Trollkarlen
Thx it worked like a charm. /R On Jun 25, 6:32 pm, johann.scheibelho...@easytouch-edv.com wrote: > out of my head the following should work > > result = db(db.images.id>0).select(\ >          left=[db.image_info.on(db.image_info.image_id==db.images.id),\ >  db.image_keyword.on(db.image_keyword

[web2py:25015] Re: web2py 1.64.3

2009-06-25 Thread Trollkarlen
No comments on this ? /R On Jun 24, 3:09 pm, Robert Marklund wrote: > I upgraded to web2py 1.64.3 and then: > > crud started to set its own table name >          if request.extension != 'html': >              (_session, _formname) = (None, None) >          else: >             (_session, _formna

[web2py:25283] Re: upload filename

2009-06-29 Thread Trollkarlen
On Jun 4, 11:51 pm, mdipierro wrote: > > > > I have no objection in taking the code out in a function. > > > But if one overrides it (and this is your intention) web2py will not > > > be able to identify which table refers to the uploaded file and thus > > > d

[web2py:27025] Re: killer app idea

2009-07-20 Thread Trollkarlen
I think something like this would be fairly simple to modify for this purpose: http://en.wikipedia.org/wiki/Kademlia But i think that making a db back end where the db for the news site is a distributed hash table is the best approach. And then just front ends that uses this db in web2py the fron

[web2py:28498] Re: where for art thou, oh session attribute?

2009-08-13 Thread Trollkarlen
I had almost the same problem with flash. Put this in the db.py to connect the session. request.cookies[response.session_id_name]=request.vars.mysession_id session.connect(request,response) Then just send the session with pagename.html? mysession_id=178648217648721... /R On Aug 13, 12:11 pm,

[web2py:23258] Re: upload filename

2009-06-03 Thread Trollkarlen
Strange because i did break out the filename building to a function. And both the appadmin and the app download works jut fine. def __db_filename(tablename, fieldname, filename): import re, uuid, base64 re_extension = re.compile('\.\w{1,5}$') m = re_extension.search(filename) e =