[web2py] I am looking for internship in a firm that uses web2py but I don't find anyone in India?

2016-04-22 Thread Emmanuel Dsouza
Can someone help me in getting link for one? -- 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 G

[web2py] Re: built-in wiki

2016-04-22 Thread briannd81
Solution to this is pass in argument attachment=False when calling response.download inside media function from tools.py On Tuesday, April 19, 2016 at 5:09:32 PM UTC-4, bria...@gmail.com wrote: > > I use the built-in wiki for my application. I created a page (slug) and > upload the image using t

[web2py] wiki search

2016-04-22 Thread briannd81
How do I append search results to another div class rather than displaying it beneath the search box? -- 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

[web2py] fpdf controller/view question

2016-04-22 Thread Dave S
Back when, I played around with the fpdf tutorial, and built a controller that created the "Hello, World" example. Recently, I revisited that and added some real data, taking the last 25 rows from my table-of-interest. And I got that to display nicely, in a manner similar to my regular page u

[web2py] Re: tracking user actions

2016-04-22 Thread Anthony
Why not just put it in a model file? Or at the top of the controller (if you don't need it in all controllers)? On Friday, April 22, 2016 at 6:47:48 PM UTC-4, Alex Glaros wrote: > > I put this at the top of most functions in the controller to track user > actions > > is there a simpler way where

[web2py] tracking user actions

2016-04-22 Thread Alex Glaros
I put this at the top of most functions in the controller to track user actions is there a simpler way where I can just write it once instead of repeated under each function? db.VisitationStats.insert(person_FK = auth.user_id, where_user_is = request.env.request_uri, user_ip_address = request.

Re: [web2py] Re: IS_IN_DB(set, ...) validator doesn't work with GAE

2016-04-22 Thread David Manns
Thanks, I added a comment to https://github.com/web2py/web2py/issues/902 which looks to be the same issue and is open. On Fri, Apr 22, 2016 at 2:27 PM, Niphlod wrote: > If I were you I'd log an issue over at pydal's repo. > https://github.com/web2py/pydal/issues > > On Friday, April 22, 2016 at

[web2py] Re: Multi language database query

2016-04-22 Thread Marko Seppälä
I think that that reference in language_tr table is needed. Otherwise there is no way to translate those for more than one language I think. For example, if we have two languages, let's say English and German, and we want to translate both languages to both languages. So for example language wi

[web2py] Re: running app from command line with no server startup window

2016-04-22 Thread Jacob Thoennes
I was initially on 2.13, I just updated to 2.14.5 and still have the same problem. Also after the update when I run the packed app from web2py.exe it is messing up and showing the default dictionary view instead of the view I specified, which didn't happen before (all I did was drag the applicat

[web2py] Re: Multi language database query

2016-04-22 Thread Niphlod
imho there's a reference not needed (the language_id in the language_tr table) that being said...let's build queries, step by step """ Basically I'm looking for a list of language_tr elements which has a translation_id which has a language_id which is same than users selected system language.

[web2py] Re: Helping with dropdown list using query

2016-04-22 Thread 黄祥
pls try : db.servicos_feitos.servico_feito.requires = IS_IN_DB(db((db.servico_oficina.id_salao == auth.user_id) & (db.servico_oficina.servico_salao == db.tipo_servicos.id) ), db.servico_oficiona.id, db.servico_oficiona._format) not sure because i don't see db.servico_oficina.id_salao on your ta

[web2py] Re: having SQLFORM show form var

2016-04-22 Thread Anthony
> > Also, is there a difference between > form.process().accepted > > and > form.process() > form.accepted > No difference. The second is preferred if you like typing the word "form" a lot. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/

[web2py] Re: strange behaviour in after_insert callback

2016-04-22 Thread 黄祥
k, got it, thank you so much Anthony for detail explaination. best regards, 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 mess

[web2py] Re: having SQLFORM show form var

2016-04-22 Thread Dave S
On Friday, April 22, 2016 at 7:41:52 AM UTC-7, Anthony wrote: > > If you want to prefill form fields, the best method is to set the field > defaults (before creating the form): > > db.str1.dt.default = request.now > > Anthony > > Thanks, Anthony. That application is at home, so I'll check it ou

[web2py] Re: running app from command line with no server startup window

2016-04-22 Thread Niphlod
what version are you on? I think that problem got fixed not a long time ago. On Friday, April 22, 2016 at 6:36:10 PM UTC+2, Jacob Thoennes wrote: > > I'm trying to package my app like it says in the book: > > > http://web2py.com/books/default/chapter/29/14#How-to-distribute-your-applications-as-bi

[web2py] Re: IS_IN_DB(set, ...) validator doesn't work with GAE

2016-04-22 Thread Niphlod
If I were you I'd log an issue over at pydal's repo. https://github.com/web2py/pydal/issues On Friday, April 22, 2016 at 7:11:36 PM UTC+2, David Manns wrote: > > I'm resubmitting as this has not been fixed. I understand the problem > better and have a workaround. > > My application runs on GAE a

Re: [web2py] Re: E2E Automated Tests

2016-04-22 Thread Dave S
On Friday, April 22, 2016 at 10:37:07 AM UTC-7, Richard wrote: > > Sorry the link should be this : > https://github.com/niphlod/welcome_augmented > > > Don't kn

Re: [web2py] Re: E2E Automated Tests

2016-04-22 Thread Richard Vézina
I mean they are not outdated in the sens that the core works, but since the solution surround app, the app code on which they are based is effectively outdated, but can really easily upgrade... On Fri, Apr 22, 2016 at 1:38 PM, Richard Vézina wrote: > I had proposed to integrate one or the other

Re: [web2py] Re: E2E Automated Tests

2016-04-22 Thread Richard Vézina
I had proposed to integrate one or the other in welcome, but never had feedback... On Fri, Apr 22, 2016 at 1:36 PM, Richard Vézina wrote: > Sorry the link should be this : > https://github.com/niphlod/welcome_augmented > > Don't know why it get messed up... > > Both project are not outdated... >

Re: [web2py] Re: E2E Automated Tests

2016-04-22 Thread Richard Vézina
Sorry the link should be this : https://github.com/niphlod/welcome_augmented Don't know why it get messed up... Both project are not outdated... On Fri, Apr 22, 2016 at 10:52 AM, Matheus Cardoso wrote: > I've seen the first link, but the project is really outdated. So I thought > that wouldn't

[web2py] IS_IN_DB(set, ...) validator doesn't work with GAE

2016-04-22 Thread David Manns
I'm resubmitting as this has not been fixed. I understand the problem better and have a workaround. My application runs on GAE and has been stuck on 2.9.12. Runs fine in web2py test environment and with 2.9.12 (pre pyDAL) In both production and SDK GAE various pages fail. This failure relate

[web2py] Re: E2E Automated Tests

2016-04-22 Thread Leonel Câmara
Yes it is fair Matheus, in fact, having a standardized and web2py integrated way to test applications, is one of the main points on the web2py developers wishlist, but no one has stepped up to actually implement it yet. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] running app from command line with no server startup window

2016-04-22 Thread Jacob Thoennes
I'm trying to package my app like it says in the book: http://web2py.com/books/default/chapter/29/14#How-to-distribute-your-applications-as-binaries My start.bat is as follows (i had to change it slightly as I didn't want users to see the server startup window, also PAUSE so I can actually see

[web2py] Re: E2E Automated Tests

2016-04-22 Thread Matheus Cardoso
I've seen the first link, but the project is really outdated. So I thought that wouldn't do the job anymore. I'll look into it again. And the second link is broken (404). :( But is fair to say that this part of the framework is weak or it need more attention? On Thursday, April 21, 2016 at 4:0

[web2py] Re: strange behaviour in after_insert callback

2016-04-22 Thread Anthony
You are right. It is not documented, but with _after_insert, the f.fieldname notation does work with a regular insert but not with bulk_insert. It also does not work with _before_insert. I'm not sure why the inconsistency, but it is probably best to stick with the documented method using f['fie

[web2py] Re: having SQLFORM show form var

2016-04-22 Thread Anthony
If you want to prefill form fields, the best method is to set the field defaults (before creating the form): db.str1.dt.default = request.now Anthony On Friday, April 22, 2016 at 2:22:09 AM UTC-4, Dave S wrote: > > I seem to be missing something. > > I have a simple table: > > db.define_table("

[web2py] Multi language database query

2016-04-22 Thread Marko Seppälä
Hi, I have a following database: db.define_table('language', Field('code', 'string', unique=True) ) db.define_table('translation', Field('language_id', 'reference language', notnull=True, readable=True, writable=True), auth.signature ) db.define_table('language_tr', Fie

[web2py] I need help with db.executesql()

2016-04-22 Thread c . lpm620
hi,All: when i execute the following code: >>> from gluon import * >>> db = DAL('db2:pyodbc://DSN=mydb;uid=db2inst1;pwd=ok896d;',db_codec='UTF-8') >>> db.executesql("insert into mytable(branch,name)values('11','河地')") >>> db.commit() the result is: 11河地 if i replaced: >>> db.executesql(

[web2py] Helping with dropdown list using query

2016-04-22 Thread Morganti
Hello, It is my first message in this forum. I am trying to learn web2py and Python. So, sorry with stupid and simple questions. I decided to post a question here because I used a lot the on line documentation and forum but I am not finding the solution. My project is to manage services but mu

[web2py] Re: gluon/contrib/redis_utils

2016-04-22 Thread Niphlod
redis is useful for relatively high sets of relatively small data (i.e. high number of keys, each holding not so really big data), for highly concurrent access (think 10k), for a high number of operations on keys (think 10M). I don't see the reason behind you wanting to use redis for dumping 20

[web2py] Re: gluon/contrib/redis_utils

2016-04-22 Thread Mirek Zvolský
Great, thank you. >> doesn't seem at all something you absolutely NEED redis to do What alternative do you recommend to think about? Serialize data into session? sqlite? ...? I cannot access the data immediately in controller call (because response of third party service + parsing is too slow).

[web2py] Re: gluon/contrib/redis_utils

2016-04-22 Thread Niphlod
doesn't seem at all something you absolutely NEED redis to do, but feel free to use it. You can use an RConn() instance throughout your entire app. On Friday, April 22, 2016 at 8:53:09 AM UTC+2, Mirek Zvolský wrote: > > Thank you. > > What I need is heavy computing related to few users, they DON'