Re: [web2py] Re: REF: Component + Javascript

2013-04-18 Thread Niphlod
you can't load a html fragment "at wish". The second LOAD is found, it triggers the loading: it's not the way to do it. Still, until you can't find out why you can't attach an event to your button, all the remains of the discussion is useless: let's start simple (single button in the page), the

[web2py] Re: list:string type field output format

2013-04-18 Thread Niphlod
check again: there's no way mine and Anthony's last snippets generates a single A holding two addresses On Thursday, April 18, 2013 4:04:26 AM UTC+2, 黄祥 wrote: > > thank you so much for your hints niphlod and anthony, i've tried both of > your hints, but the result is not what i'm expected (

Re: [web2py] Re: REF: Component + Javascript

2013-04-18 Thread Teddy Nyambe
Ok let me start simple see where i get. Will share what i get On Thu, Apr 18, 2013 at 9:34 AM, Niphlod wrote: > you can't load a html fragment "at wish". The second LOAD is found, it > triggers the loading: it's not the way to do it. > > Still, until you can't find out why you can't attach an e

[web2py] Re: Old DAL bug (?) ValueError: invalid literal for int() with base 10: 'AssetTypes\\Character.png'

2013-04-18 Thread Arnon Marcus
Can somebody pleas respond? We are quite desperate here about this... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com.

[web2py] Re: list:string type field output format

2013-04-18 Thread 黄祥
yes, you are right, my mistake, the problem is on the data itself, because i input it via populate. thank you so much for your hints and suggestions -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop r

Re: [web2py] Re: Python Redis Queue

2013-04-18 Thread Ricardo Pedroso
On Wed, Apr 17, 2013 at 5:25 PM, Niphlod wrote: > does this work when queueing, e.g. a function defined in models ? No and maybe yes if you make your enqueue method that will submit the function defined in a model, but under the hood it will run a predefined method in a helper module th

[web2py] display logo pic in header top

2013-04-18 Thread Karl Thomas Schmidt
Hi@all, I tried to display an image within the top fixed header menu. All I can get is to display the text. How to do that? Is there a kind of tutorial explaining how the graphical layout works? Where can I read about that? -- --- You received this message because you are subscribed to the G

Re: [web2py] Re: Python Redis Queue

2013-04-18 Thread Niphlod
here ... https://groups.google.com/d/msg/web2py/js0VAKK6Dlw/CJ46I-0wT0wJ That is what you more or less described. if this works out in rq "linearly" I'll cross out "port web2py's scheduler to redis" from the todo list (it will be a nice project though) :P rq has the "react fast" juice but doesn

[web2py] Re: display logo pic in header top

2013-04-18 Thread Niphlod
if you're using the scaffolding app then set response.logo accordingly by default is response.logo = A(B('web',SPAN(2),'py'),XML('™ '), _class="brand",_href="http://www.web2py.com/";) replace, e.g., the B() element with an IMG() one and you're good to go. On Thursday, Apr

Re: [web2py] display logo pic in header top

2013-04-18 Thread Johann Spies
I have the following in models/0.py: settings.title =CENTER(IMG(_src=URL('static','images/us_crest_comb.png'), _style="height:120px; width:auto;", _alt=T('US-Crest-logo'))) and in menu.py: response.title = settings.title Read the file views/layo

Re: [web2py] display logo pic in header top

2013-04-18 Thread Johann Spies
Apologies, I misread your mail. Niphlod's answer is the correct one for your purposes. On 18 April 2013 11:11, Johann Spies wrote: > I have the following in models/0.py: > > settings.title =CENTER(IMG(_src=URL('static','images/us_crest_comb.png'), > _style="height:120px

Re: [web2py] Re: Python Redis Queue

2013-04-18 Thread Ricardo Pedroso
Now I remember seeing that thread, at the time I was with other things and end up forget it. I will see, later tonight or maybe this afternoon, what I can do about queueing functions in models. On Thu, Apr 18, 2013 at 10:03 AM, Niphlod wrote: > here ... https://groups.google.com/d/msg/web2py/

Re: [web2py] Re: Using SQLFORM.grid with large datasets

2013-04-18 Thread Johann Spies
Thanks. I will test your suggestions. I am currently working with Postgresql 9.1 and it takes nearly 5 minutes to count a table > 42 000 000 records. It will if we can have the option in the grid to not do a count of the result as it is part of the problem in my case. If for instance the query

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread Niphlod
that seems more a problem with the format of the date than the fact that it has to be "timezone-normalized"what language translation are you using ? PS: what I meant with "landing page" is that you're sure that the user will hit that page before arriving to the form. If you are sure, there's

Re: [web2py] Re: Using SQLFORM.grid with large datasets

2013-04-18 Thread Niphlod
the count affects only the grid for "pagination" purposes. There's no other reason to do a count to display a grid. This means that if you pass cache_count=10, you'll end up not having any "1,2,3" links at the bottom to fetch the next "page" of results. Putting that aside, you can pass whatever "

[web2py] DAL select and count strangeness

2013-04-18 Thread Stelios Koroneos
Greetinfs to all. I am facing a problem with count on a db that i am using the following to create the query. class CDRI(): def __init__(self,cdri_db): self.db=cdri_db def _generate_querry(self,device_id,date_from=None,date_to=None,source=None,destination=None):

[web2py] Re: DAL select and count strangeness

2013-04-18 Thread Anthony
.select() will extract the table names from both the query and the fields passed to .select() -- this is because we allow an empty query, like db().select(db.mytable.ALL). However, .count() only extracts the table names from the query, not from the "distinct" argument to .count(). Because your

[web2py] Google OpenID authentication.

2013-04-18 Thread Jason
Hello, I'm implementing Google Wallet into my application. The most important aspect for me is to allow a Google federated login. I don't want to use Janrain because the prices are ridiculous. Are there any examples on how to implement this? My Google searches are aren't providing any examples

[web2py] Full text search query

2013-04-18 Thread Johann Spies
In psql I can do: select * from isi.rauthor A where A.addressfulltext@@'south & africa' but the following l = db("rauthor.addressfulltext@@'south & africa'").select() results in TypeError: %d format: a number is required, not NoneType Why? Model: from gluon.dal import SQLCustomType tsv =

[web2py] db._common_fields.append and Lazy_tables

2013-04-18 Thread Loïc
Hello All consider the example model file below : db = DAL('sqlite://storage.sqlite') signature = db.Table(db,'auth_signature', Field('created_on','datetime',default=request.now, writable=False,readable=False, label=T('Created on')), Field('created_by',auth.settings.tab

[web2py] Re: Full text search query

2013-04-18 Thread Anthony
For me, db("rauthor.addressfulltext@@'south & africa'").select() results in "SyntaxError: Set: no tables selected" because the query is a string and no fields were passed to .select(). Anthony On Thursday, April 18, 2013 7:46:42 AM UTC-4, Johann Spies wrote: > > In psql I can do: > > select * f

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Anthony
Have the auth tables been defined at that point. In any case, to avoid pre-mature table definition, try replacing auth.settings.table_user with: 'reference %s' % auth.settings.table_user_name Anthony On Thursday, April 18, 2013 7:51:19 AM UTC-4, Loïc wrote: > > Hello All > > consider the exampl

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Loïc
Great! Thank you Anthony Le jeudi 18 avril 2013 13:59:18 UTC+2, Anthony a écrit : > > Have the auth tables been defined at that point. In any case, to avoid > pre-mature table definition, try replacing auth.settings.table_user with: > > 'reference %s' % auth.settings.table_user_name > > Anthony >

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Loïc
One more question Anthony, If I have other tables which reference themselves like : db.define_table('mytable',Field('myfield','string')) db.define_table('my_other_table',Field('myTable','reference mytable')) should I replace the* 'reference mytable' *statement with* 'reference %s' % I_dont_know_

[web2py] Re: Where did the auth_user table go (v. 2.4.x) that used to be in db.py

2013-04-18 Thread wdtnh
doh! Totally forgot about this - grthanks!!! -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Anthony
This syntax: 'reference %s' % auth.settings.table_user_name is not about being lazy tables compliant -- it is just a way to construct a string when part of the string is stored in a variable (another option would be 'reference ' + auth.settings.table_user_name). You could just as easily do: '

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Loïc
That's clear for me now Thank you Le jeudi 18 avril 2013 14:32:12 UTC+2, Anthony a écrit : > > This syntax: > > 'reference %s' % auth.settings.table_user_name > > is not about being lazy tables compliant -- it is just a way to construct > a string when part of the string is stored in a variable (

Re: [web2py] Re: Full text search query

2013-04-18 Thread Johann Spies
In another app I can do: query = "akb_articles.tsv@@'simple','%'" % request.search_for and then form = SQLFORM.grid(query) or another variation: query = "akb_articles.tsv@@to_tsquery('simple', '%s')" % ss or something like this: l = db("akb_articles.tsv@@'kerkreg | (

Re: [web2py] Re: Full text search query

2013-04-18 Thread Anthony
In your other examples, one or more fields are passed to the .select(), so the DAL has a way to know which table is being queried. When you pass only a string as the query and no fields to .select(), the DAL has no way to know which table is involved (it does not inspect string queries -- it jus

[web2py] Re: Old DAL bug (?) ValueError: invalid literal for int() with base 10: 'AssetTypes\\Character.png'

2013-04-18 Thread Massimo Di Pierro
That is a very old version of web2py. It is hard to support something so old. you should be able to upgrade and nothing should break. The only case I have seen something like this is when a string field contained data (strings) and was converted in a reference field using sqlite. Or a "list:stri

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
i am not using any specific language translation. It should be the default language. i also think that it is timezone issue, but not very sure how to do the normalization. The model i use is Field('modified_on', 'datetime'), I see that there is no timezone attached at the end. On Thu, Apr 18

[web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread Magnitus
I'm not even sure I'll go with Angular myself at this point. I'll delve more deeply into that framework once I feel I have a sufficient grasp of Ember. For the whole server-side dynamically generating client-side, I'm afraid it's not my vision. The direction things are moving toward is to move

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread António Ramos
is meteor the answer? 2013/4/18 Magnitus > I'm not even sure I'll go with Angular myself at this point. I'll delve > more deeply into that framework once I feel I have a sufficient grasp of > Ember. > > For the whole server-side dynamically generating client-side, I'm afraid > it's not my visio

[web2py] Re: “Exceeded soft private memory limit” when upload (1.56M) on GAE

2013-04-18 Thread Christian Foster Howes
Lio, there are potentially 2 problems here: - the request thread is using too much memory/has a memory lead - the size of the file is too large. i know you are having the second problem, not sure about the first. it's possible that the second problem is being reported to you with a mis-leadi

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread Niphlod
it's definitely not for a lot of reasons, but if you like to dwelve with *buzzword*, give it a spin. On Thursday, April 18, 2013 5:13:55 PM UTC+2, Ramos wrote: > > is meteor the answer? > > > 2013/4/18 Magnitus > > >> I'm not even sure I'll go with Angular myself at this point. I'll delve >> mor

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread Niphlod
the whole point of timezone normalization is NOT having "a timezone attached at the end". It's storing in the database as UTC and displaying as "localized" to the users. Are we sure that you fully grasped what the timezone implementation on the IS_DATE* validators in web2py and that that idea f

Re: [web2py] Re: “Exceeded soft private memory limit” when upload (1.56M) on GAE

2013-04-18 Thread 冷春辉
Hello Christian, Thank you very much for explaining. The reason is clear to me now. I will try to work around it. Regards, Lio On Thu, Apr 18, 2013 at 11:23 PM, Christian Foster Howes wrote: > Lio, > > there are potentially 2 problems here: > - the request thread is using too much memory/has

[web2py] ip in session file different than real ip and ip in auth_event that is the real ip

2013-04-18 Thread Richard
Hello, I have a pretty weird behavior with web2py 2.3.2 as stated in the object. When I am connecting to app with Chrome in windows the session file is named like this 192.168.1.102... But my IP is 192.168.1.110 and in auth_event I see the proper IP address. Any idea? Thanks Richard -- -

Re: [web2py] ip in session file different than real ip and ip in auth_event that is the real ip

2013-04-18 Thread Richard Vézina
Ok, erase cookies seems to have solve this one... Richard On Thu, Apr 18, 2013 at 11:55 AM, Richard wrote: > Hello, > > I have a pretty weird behavior with web2py 2.3.2 as stated in the object. > When I am connecting to app with Chrome in windows the session file is > named like this 192.168.1.

[web2py] @cache decorator

2013-04-18 Thread BlueShadow
Hi I got a site which calls some major calculating. So I thought lets use the cache decoator to speed up second time loads. But it doesnt seem to have any effekt on pageloading times. @cache(returnDatestring()+"Somepage", time_expire=86000, cache_model=cache. disk) def Somepage(): #some time i

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
yes. I am with you. I didn't store timezone in the db, and will be using UTC for all input to the db too. I hope to find a way to use the detected timezone to use in the .represent method for the sqlform.grid. db.prototype.modified_on.represent = lambda value, row : pytz.UTC.localize(value).as

[web2py] Re: @cache decorator

2013-04-18 Thread Paolo valleri
Basically it stores the output of the function, in your case the output is the rendered view. For more info about cache, have a look here: http://web2py.com/books/default/chapter/29/04#cache Paolo On Thursday, April 18, 2013 6:17:36 PM UTC+2, BlueShadow wrote: > > Hi I got a site which calls so

[web2py] Re: @cache decorator

2013-04-18 Thread Derek
Why would you be using 'returnDatestring + Somepage' as your key to the cache? On Thursday, April 18, 2013 9:17:36 AM UTC-7, BlueShadow wrote: > > Hi I got a site which calls some major calculating. So I thought lets use > the cache decoator to speed up second time loads. > But it doesnt seem t

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread Derek
What's the question that it's supposed to answer? On Thursday, April 18, 2013 8:13:55 AM UTC-7, Ramos wrote: > > is meteor the answer? > > > 2013/4/18 Magnitus > > >> I'm not even sure I'll go with Angular myself at this point. I'll delve >> more deeply into that framework once I feel I have a su

[web2py] Re: @cache decorator

2013-04-18 Thread BlueShadow
So you are basicly saying I did exactly what I wanted to do save the entire generated page on disk. So how can I find out what is taking so long for the page to load? @Derek: thats easy: I want the page cached from 00:05 to 23:59. because every day at midnight the data changes. if for some reaso

Re: [web2py] Re: Python Redis Queue

2013-04-18 Thread Ricardo Pedroso
On Thu, Apr 18, 2013 at 10:20 AM, Ricardo Pedroso wrote: > Now I remember seeing that thread, at the time I was with other things > and end up forget it. > > I will see, later tonight or maybe this afternoon, what I can do about > queueing functions in models. I pushed it to github it has an exam

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread António Ramos
as i understood , the discussion seems to be the around single page apps that have its code in the client and then just push/pull data from the server. meteor takes care of this problem and we just have to subscribe to changes in reactive data sources. Its less code to worry about. No ajax! Just w

[web2py] Re: Conditional deletes (ondelete etc) in sqlform.grid

2013-04-18 Thread Mark
deletable = False if 'edit' in request.args: record = db[table](request.args[-1]) if some condition of record: deletable = True grid = SQLFORM.grid(db[table], deletable = deletable) On Sunday, April 14, 2013 3:12:31 PM UTC-4, Dan wrote: > > Mark Kirkwood writes: > > > > > > >

[web2py] Re: One form in multiple tabs

2013-04-18 Thread Jose
El miércoles, 3 de abril de 2013 08:11:21 UTC-3, Annet escribió: > > I defined the following table: > > db.define_table('scrptNxt', > Field('nodeID','reference node',requires=IS_EMPTY_OR(IS_IN_DB(db,' > node.id','%(id)s',zero='Select a > value')),ondelete='CASCADE',writable=False,readable=Fa

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread Niphlod
for starters, not all sites can be converted into the "single page app" paradigm. On the brigther note, if you need just that, then meteor is built with that agenda in mind: try to diverge just a little and you won't leverage its potential. On Thursday, April 18, 2013 7:20:57 PM UTC+2, Ramos w

[web2py] Re: @cache decorator

2013-04-18 Thread Niphlod
for starters check the "cache" page in appadmin (go to "database administration", then click "cache" at the top) to see hot many hits/misses you find. In a "perfect world" ( i.e. your cache works as expected) you'd have 1 miss and n-1 hits with n being the number of times your page is accessed.

[web2py] Re: @cache decorator

2013-04-18 Thread Anthony
Note, the cache doesn't do anything to clear out old items, so if you change the key every day, the previous day's page will still remain in the cache. You might want to do something to purge the old page out of the cache. Also, are you absolutely sure returnDatestring() is returning only the d

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread Anthony
Another similar (though somewhat less mature) option is Derby(also built on Node.js). Advantages over Meteor are two-way data binding and the ability to render on the server as well as the client (for search engine crawling and faster initial page loads). Anthony On Thurs

[web2py] Re: Excellent Video about web2py but no sound or subtitles

2013-04-18 Thread jjg0
I was a little worried about the no sound or subtitles part but it's actually a really great video!. I'd love to see more like this, especially if commentary or notes could be added. On Wednesday, April 17, 2013 6:19:06 AM UTC-4, Ramos wrote: > > http://vimeo.com/8229814 > -- --- You receiv

[web2py] Re: One form in multiple tabs

2013-04-18 Thread Pystar
@Niphlod, People come here to get answers to their questions from experts like you and not to be knocked down on. Your sarcasm of late is kind of offputting. Kindly tone it down for the sake of this community. Thanks On Wednesday, April 3, 2013 2:31:20 PM UTC+1, Niphlod wrote: > > the main issu

[web2py] Re: Alternative to SQLFORM for Angular

2013-04-18 Thread RHC
Thanks for the responses, a number of useful pointers there. I have had a look at the sqlhtml.py and html.py to see if I can adapt one of these to effectively produce a json version of a form which can be validated when it is submitted. I came to the conclusion that I didn't understand enough o

[web2py] Re: Will web2py support database view? When?

2013-04-18 Thread David Ripplinger
I'm not familiar with the Django way. Web2py is my first serious attempt at web programming. What is the Django way, or (alternatively) what is the cleanest way, to use database views in web2py? Should I just do the define_table with migrate=False described by Vasile in this thread, or is there

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread Arnon Marcus
Well, there is no "one-size-fit's-all", and there is never gonna be... Currently, expecting a direct-connection with the database from the client side, still raises many eye-brows, and (IMHO) rightfully so... But that is exactly the expectation that frameworks like meteor are having. Iy is not go

[web2py] Cannot import module 'guppy', appadmin cache

2013-04-18 Thread BlueShadow
Hi, I wanted to get some information on my cache usage. so I went to the cache page in appadmin which worked fine at that moment but told me I need guppy in order to get the size of the cache. So I installed it. now I get an error page which tells me guppy cannot be imported. I restarted nginx/u

[web2py] Re: One form in multiple tabs

2013-04-18 Thread Niphlod
never tried to knock anyone down. As a matter of fact, I'm quite confident to have helped Annet lots of times, without asking anything in return. If it's something on web2py's side to get patched I'm more than glad to chime in, but I decided to not "tutor" on html+js and spend the time "saved"

[web2py] Re: Will web2py support database view? When?

2013-04-18 Thread Niphlod
defining a "fake table" that points to the view and set migrate=False is definitely the best (and recommended) way to do it. On Thursday, April 18, 2013 10:19:05 PM UTC+2, David Ripplinger wrote: > > I'm not familiar with the Django way. Web2py is my first serious attempt > at web programming. W

Re: [web2py] Re: Python Redis Queue

2013-04-18 Thread Niphlod
nice and easy :D keep up with the good work. As soon as the "official plugin page" gets revamped/refreshed, remember to post it there. PS: I didn't watch inside python-rq since some time, seems to have gained some weight (even so, it's much simpler to grasp than celery) ^_^. Definitely the bes

[web2py] Re: display logo pic in header top

2013-04-18 Thread 黄祥
just wanna share what niphlod explained above: i assume you store the logo in company table with the field trademark to save your image file models/menu.py rows = db(db.company.id == 1).select() for row in rows: response.logo = IMG(_src=URL('download', args=row.trademark),

Re: [web2py] Re: Python Redis Queue

2013-04-18 Thread Niphlod
PS: on the web2py process side, it seems that at most 10 connections are istantiated with Redis: is there a connection pool? On the worker side, instead, I noticed that each job generates a new fresh connection to Redis: is this expected ? e.g. [7445] 18 Apr 22:57:48.072 - Client closed connecti

[web2py] Re: Cannot import module 'guppy', appadmin cache

2013-04-18 Thread Niphlod
guppy has not been updated in a while, there are some known bugs with the "stable release" and there seems to be already a bug listed on web2py's "official issues". I tried to install it from sources, but didn't had luck with that either. Seems also that the debian package is somewhat oldie..

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-18 Thread Anthony
> > Iy is not going to work in the foreseeable future, for many web-apps to > hold their entire database on the client side... Are you talking about the model definitions, or the actual data? They certainly don't move all the data in the entire database to the client. > For simple and small

Re: [web2py] EmberJS is the web2py of the client! :)

2013-04-18 Thread António Ramos
Nice comment but a minor correction. In meteor the client only has in his local database the documents he is allowed to read. That solves the security issues on the client. What I like most in meteor is Not having to refresh the browser on every change i make in code. Not having to code web socke

[web2py] Re: Cannot import module 'guppy', appadmin cache

2013-04-18 Thread BlueShadow
I did kill all processes remotly related to web2py an uswgi and the internet restarted all and the cache page still wont load without that error. On Thursday, April 18, 2013 11:08:14 PM UTC+2, Niphlod wrote: > > guppy has not been updated in a while, there are some known bugs with the > "stab

Re: [web2py] EmberJS is the web2py of the client! :)

2013-04-18 Thread Arnon Marcus
Well, as for the database, there are obvious security issues and performance issues - I mean, having an open connection from all clients to a single back-end database is a pretty nutty prospect for most serious programmers... Just think about connection-count,you can't even do connection pooling on

[web2py] Exemplo sobre tipos de relacionamento

2013-04-18 Thread Joao Guermandi
Onde consigo encontrar exemplos sobre relacionamento muitos para muitos e um para muitos !!! -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubs

[web2py] Joao Eugenio Guermandi

2013-04-18 Thread Joao Guermandi
Prezados amigos, onde consigo um exemplo do web2py para um cadastro entre uma tabela A que se relaciona com a tabela B, C, D, E de um para muitos ...tipo um cadastro de clientes e cada cliente tem muitos contatos muitas duplicatas...não consegi achar um modelo para ver, ache no site do web2py

[web2py] RESTful api and JSON POST data with curl

2013-04-18 Thread Brent Zeiben
Hi, I am using a python script to organize some data and try to send it into web2py via the @request.restful() api. In the python script the text is mainly input from a free form text field. ( I believe some Unicode characters are in there as well, however I remove everything that is ord 128

[web2py] Re: One form in multiple tabs

2013-04-18 Thread Massimo Di Pierro
I am pretty sure Niphlod did not mean it in a sarcastic sense. We are from the same country and I did not read the negative connotation in his comment. Niphlod is a main contributor to web2py and he spends lots of time helping people here. Massimo On Thursday, 18 April 2013 15:08:38 UTC-5, Pys

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread Funmanhk
Thanks Niphlod. May I know where I can pick up the examples? Appreciate your help on this. On 19 Apr, 2013, at 3:13, Niphlod wrote: > packed an app with a few examples: might explain better how to deal with > timezones. > > On Thursday, April 18, 2013 6:20:18 PM UTC+2, fun man wrote: >>

[web2py] Re: Alternative to SQLFORM for Angular

2013-04-18 Thread Alan Etkin
> I might take another look at the plugin_clientapi, but that looks to me like it is aimed at using web2py just as as a database backend. Allow me completely disagree with that. plugin_clientapi handles creation and validation of forms (via the web2py api obviously), access control and authenti

Re: [web2py] Exemplo sobre tipos de relacionamento

2013-04-18 Thread Vinicius Assef
Joao, this is an English list. You can find what you're looking for in links below: - http://web2py.com/books/default/chapter/29/06#One-to-many-relation - http://web2py.com/books/default/chapter/29/06#Many-to-many On Thu, Apr 18, 2013 at 6:39 PM, Joao Guermandi wrote: > Onde consigo encontrar

[web2py] Re: One form in multiple tabs

2013-04-18 Thread Jose
This worked: {{=form.custom.begin}} View Modules Bank account Agree Confirm {{=form.custom.widget.viewID}} # a next button here {{=form.custom.widget.moduleID}} # a previous and next button here {{=form.custom.widget.BIC}} {{=form.custo

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread Funmanhk
Btw, I want to say that Niphlod has been very helpful. I am definitely missing the HTML+JS knowledge, but that didn't stop me to try out in web2py and have a good attempt on this issue. I am one little step away from solving this time zone problem haunting me for a few months. I wouldn't have

[web2py] Re: hostmonster, pythonanywhere, or gae for my current situation

2013-04-18 Thread jjg0
I started checking out pythonanywhere but ran into some trouble getting my site up. I was going through tutorials and decided to try using tortoise hg mercurial and bitbucket to get my site from my computer to pythonanywhere. I was able to get mercurial on my computer and working, and upload

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
Sorry Niphlod. I was on my phone, and didn't see this attachment. Thanks again for helping me out without asking for anything. I will try to learn from your example. On Fri, Apr 19, 2013 at 8:33 AM, Funmanhk wrote: > Btw, I want to say that Niphlod has been very helpful. I am definitely > missi

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
hi Niphlod, I've tried your example in the attachment. The good news is that the user selected timezone it the profile/register page is working consistently! Great work! Thank you! The bad news is that the dynamic detection, and return from the client session is still not working... def index():

[web2py] Re: Exemplo sobre tipos de relacionamento

2013-04-18 Thread Joao Guermandi
Muito obrigado !!! Em quinta-feira, 18 de abril de 2013 18h39min36s UTC-3, Joao Guermandi escreveu: > > Onde consigo encontrar exemplos sobre relacionamento muitos para muitos e > um para muitos !!! -- --- You received this message because you are subscribed to the Google Groups "web2py-use

Re: [web2py] EmberJS is the web2py of the client! :)

2013-04-18 Thread Anthony
On Thursday, April 18, 2013 7:00:48 PM UTC-4, Arnon Marcus wrote: > Well, as for the database, there are obvious security issues and > performance issues - I mean, having an open connection from all clients to > a single back-end database is a pretty nutty prospect for most serious > programmer

[web2py] Problem with the search when using two SQLFORM.grid on the same web page

2013-04-18 Thread Yuval
I am using two different SQLFORM.grid on the same page. Each is based on a different query and tables. When I enter text and select search on one SQLFORM.grid, the same text is populated and search is executed on the other SQLFORM.grid. Is there any way to prevent it? -- --- You received t

[web2py] "Converting" SQLite to DAL?

2013-04-18 Thread Alec Taylor
I finally completed a successful conversion of my Microsoft Access database to SQLite 3; after trying numerous scripts on a couple of platforms. I used the `.dump` command to create a *.sql file with the `CREATE TABLE` and associated statements. Then using the "extract_sqlite_models.py" from the

[web2py] Log delete event?

2013-04-18 Thread Richard
Hello, How may I log a delete event? form.process(ondelete=myeventlogcall) ? It is not clear in the book if this work for SQLFORM. It seems to work for SQLFORM.grig and Crud, but there is no particular explanation in context of SQLFORM. Thanks Richard -- --- You received this message be