Re: [web2py] Re: how to achieve public/private key authentication for web service in web2py?

2012-07-25 Thread Michele Comitini
Amit If you need advice with simpatica don't worry to ask. I never had time to write some documentation so you have to look at the code and/or ask... mic Il giorno mercoledì 25 luglio 2012 05:14:52 UTC+2, Amit ha scritto: > > Thanks Michele and Derek..nice post , i am looking exactly the same

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
Quick update: -* I had another report of this happening during the night*. I have disabled everything past the main page until I can get to the bottom of this - Waiting for more information from the user. i.e. to get their platform and the link they clicked - I know that the user they were erro

[web2py] Re: SQLFORM.grid pagination refresh

2012-07-25 Thread dave
ok so this is what I have for the view $('#input4').keyup(function(){ input_value = $("#input4").val(); web2py_component('{{=URL("default", "ajaxTable3.load")}}' + '?count=' + input_value, 'grid'); }); and this is the controller function def ajaxTable3(): query = (db.appli

Re: [web2py] Re: how to achieve public/private key authentication for web service in web2py?

2012-07-25 Thread Amit
sure Michele, let me go through the code,If i am not wrong simpatica is to generate the certificate file for the client and if you are having any sample code to use x509 in case of web service then please do share with me. Thanks, Amit On Wed, Jul 25, 2012 at 12:34 PM, Michele Comitini < michele.

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
Incidentally, no problems importing urandom. On Wednesday, July 25, 2012 8:10:53 AM UTC+1, Neil wrote: > > >> Issue #2 >> === >> >> There is a bug with may prevent urandom from working: >> >> http://community.webfaction.**com/questions/9333/** >> importerror-cannot-

[web2py] trying to use movu

2012-07-25 Thread Hassan Alnatour
Dear ALL , I am Trying TO use movu from http://movu.ca and i installed PyCrypto and PIL and web2py , and did this - http://localhost:8000/demo/setup/install : but i keep getting invalid function (setup/install) Why is that ?? --

Re: [web2py] prettydate question

2012-07-25 Thread ctrlSoft
On Tuesday, July 24, 2012 5:58:16 PM UTC+3, dbdeveloper wrote: > > ctrlSoft, is issue still present ? > > Vladyslav Kozlovskyy (Ukraine) > > 23.07.12 13:32, ctrlSoft написав(ла): > > datetime format is: 2012-07-18 10:00:00 > > hi in view i have following code: > {{=prettydate(row.deadline

Re: [web2py] Re: SQLFORM.grid pagination refresh

2012-07-25 Thread Alec Taylor
query = (db.applicant.id > 0) & (db.applicant.id < (request.vars.count or 60)') On Wed, Jul 25, 2012 at 5:13 PM, dave wrote: > ok so this is what I have for the view > > > $('#input4').keyup(function(){ > input_value = $("#input4").val(); > web2py_component('{{=URL("default", "aj

Re: [web2py] Re: how to achieve public/private key authentication for web service in web2py?

2012-07-25 Thread Michele Comitini
simpatica - generate ca priv key + self signed certificate - generate server priv keys + certificates signed by the above ca certificate - generate client priv keys + certificates signed by the above ca certificate The client and server certificate are generated after compilation of a form

[web2py] Re: Best way to mix people and organizations on the same view? Opinions, please.

2012-07-25 Thread Annet
Hi Cliff, Sorry for my late reply and incomplete first answer: Table node contains a computed field. See manual: Notice that the computed value is stored in the db and it is not computed on retrieval, as in the case of virtual fields, described later. A typical application of computed fields i

Re: [web2py] Re: how to achieve public/private key authentication for web service in web2py?

2012-07-25 Thread Amit
Michele, I have gone through the *X509_Auth *class and its methods : login_form login_url get_user But not able to visualize how to use this class in my model/controller, I just write below what I understood, please confirm whether I understood correctly or not. My requirement is : I have one w

Re: [web2py] Re: SQLFORM.grid pagination refresh

2012-07-25 Thread dave
I actually dont want 60, I just gave that as an example --

Re: [web2py] displacement of password button [web2py twitter bootstrap]

2012-07-25 Thread Simon Ashley
Negative on that. Still have an issue from the most currently nightly build. Has anyone tracked down precisely what's causing it? TIA, --

Re: [web2py] prettydate question

2012-07-25 Thread ctrlSoft
but with translation wont work, i have al translation files in languages folder. --

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
Perhaps a coincidence, but: User 1 - Accessed my site through a Facebook link on iPhone User 2 - Accessed my site through a Facebook link on iPad Does FB do anything strange with links to external sites that could cause the request.client to be unknown? I've accessed my site through the FB link

Re: [web2py] Re: Empty Database value is not None, but an empty string

2012-07-25 Thread vinicius...@gmail.com
Sorry, but I cannot figure out why this is happening. Here, my data becomes None if I do this. I'm using SQLite. If you define a fresh new table in your db.py with just one string field, just using default configs, this problem still happens? -- Vinicius Assef On 07/25/2012 12:31 AM, Mark Li

Re: [web2py] Re: Posgresql's full text search capabilities and DAL

2012-07-25 Thread Johann Spies
Hallo Massimo, Long ago you reacted to an email by me: On 1 December 2010 17:53, mdipierro wrote: > The query is easy: > > db("@@ to_tsquery('%s');" % title_body.replace("'","''")).select() > > to generate the table you need SQLCustomField and the compute > attribute. > Give it a try and please

[web2py] db.mytable.myfield.contains('value') doesn't work?

2012-07-25 Thread Alec Taylor
Unsure as to why this isn't working, it looks the same as the examples in the DAL chapter: search_form = SQLFORM.factory(Field('Search', requires=IS_ALPHANUMERIC())) if search_form.process().accepted: session.search_term = search_form.vars.search_term #query = ( db.group_of_ev

Re: [web2py] db.mytable.myfield.contains('value') doesn't work?

2012-07-25 Thread Johann Spies
On 25 July 2012 13:38, Alec Taylor wrote: > Unsure as to why this isn't working, it looks the same as the examples in > the DAL chapter: > > search_form = SQLFORM.factory(Field('Search', requires=IS_ALPHANUMERIC())) > if search_form.process().accepted: > session.search_term = search_f

[web2py] update progress to user

2012-07-25 Thread Janath
Hi, One function of my application involves running a set of algorithms which takes longer. Last time it took abt 10 minutes. And having executed it in another machine, I thought there was an error in processing, but it had ran perfectly when I checked in server. To avoid this confusing situati

Re: [web2py] Re: Cookbook Chapter 2 - Reddit clone Ajax problem

2012-07-25 Thread villas
Right, I wondered why. I also found this code in layout to be a 'challenge': middle_columns = {0:'span12',1:'span9',2:'span6'}[ (left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)] }} It took me a while to figure out what was going on there -- it seems very clever and c

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
Could this be related? http://stackoverflow.com/questions/11092444/nginx-keeps-passing-the-same-http-cookie-to-uwsgi It's a little beyond me, but I notice that HTTP_REFERER is facebook in both cases, and they are also using nginx+uwsgi. On Wednesday, July 25, 2012 12:07:26 PM UTC+1, Neil wrot

[web2py] Re: bootstrap and user panel

2012-07-25 Thread Alan Etkin
Buenísimas las dos aplicaciones. ¿No se puede integrar el manejo de las tablas auth_ con appadmin como una funcionalidad más? *User Panel Admin* > > An application to administer the auth_user table. You can add, remove, > activate users/ add groups, also add users to groups and so on. > https:/

Re: [web2py] db.mytable.myfield.contains('value') doesn't work?

2012-07-25 Thread Alec Taylor
Thanks for that, that solved the error, however a strange result is now occurring, always None; even when using the exact name is specified: def search(): search_form = SQLFORM.factory(Field('Search', requires=IS_ALPHANUMERIC())) search_result=None if search_form.process().accepted:

[web2py] "Internal error" on every page, can't even access admin

2012-07-25 Thread Alec Taylor
I'm getting an annoying "Internal error" message on every page, with a link to the ticket it issued. Unfortunately following that link presents me with another "Internal error" page. Could this be a web-server issue, e.g.: out of memory? Would it be possible to open the ticket over SSH? Thanks

Re: [web2py] db.mytable.myfield.contains('value') doesn't work?

2012-07-25 Thread Anthony
Perhaps: session.search_term = search_form.vars should be: session.search_term = search_form.vars.Search Anthony On Wednesday, July 25, 2012 8:55:39 AM UTC-4, Alec Taylor wrote: > > Thanks for that, that solved the error, however a strange result is now > occurring, always None; even when usi

Re: [web2py] displacement of password button [web2py twitter bootstrap]

2012-07-25 Thread Kevin Miller
To me it seems like it was the placement of the welcome message that caused the problem. In the latest build the welcome message is now in the same line as the other auth links. Are you sure you are using the most current build? If you were using a previous build you should probably clear your bro

Re: [web2py] Re: Empty Database value is not None, but an empty string

2012-07-25 Thread Anthony
Can you attach a sample CSV file that fails, and show your table model code as well as any code used to do the import? Anthony On Tuesday, July 24, 2012 11:31:27 PM UTC-4, Mark Li wrote: > > Anthony, I tried > > db.mytable.import_from_csv_file([file object], null='') > > from the web2py shell, b

Re: [web2py] Re: how to achieve public/private key authentication for web service in web2py?

2012-07-25 Thread Michele Comitini
2012/7/25 Amit : > Michele, > > I have gone through the X509_Auth class and its methods : > > login_form > > login_url > get_user > > But not able to visualize how to use this class in my model/controller, I > just write below what I understood, please confirm > whether I understood correctly or no

Re: [web2py] Re: Problem running Web2py DAL (Trunk) as Standalone

2012-07-25 Thread Phyo Arkar
I c, Let me check again. Thanks! On Thu, Jul 19, 2012 at 9:17 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you check if trunk now works? > > > > On Wednesday, 18 July 2012 10:55:51 UTC-5, Phyo Arkar wrote: >> >> Hello Massimo and all; >> >> I had to update to trunk version of

[web2py] Re: Question on using legacy tables

2012-07-25 Thread Massimo Di Pierro
Please open a ticket. This can be fixed if not fixed already. Using trunk or stable? On Tuesday, 24 July 2012 23:28:29 UTC-5, tomt wrote: > > I use several legacy tables in my web2py applications > A typical definition that I use is: > db2.define_table('analogpoint', > Field('pointnumber','i

Re: [web2py] prettydate question

2012-07-25 Thread Massimo Di Pierro
Can you post the language file that you are using? What language is your browser set up to? Massimo On Wednesday, 25 July 2012 06:05:27 UTC-5, ctrlSoft wrote: > > but with translation wont work, i have al translation files in languages > folder. --

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Massimo Di Pierro
The author of the post below says: "These are 2 distinct clients. I opened an incognito session, confirmed that no cookie was sent in the headers, and the uwsgi log shows that it received the same HTTP_COOKIE." This could very much be the problem. It would definitively cause the behavior you se

Re: [web2py] prettydate question

2012-07-25 Thread ctrlSoft
browser is set up to english, but in model i do T.force('ro'). without forced translation result is the same -- # coding: utf8 { '!=': '!=', '!langcode!': 'ro', '!langname!': 'Rom?n?', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a

[web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Jim S
I just fought the same problem. Mine turned out to be an application error on my part. But, I found it by looking at the text file in the errors sub-directory under my application. If you look around the error files enough you'll eventually figure out what is going on. They aren't easy to r

[web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Massimo Di Pierro
Look into admin/errors/ and look for the most recent file. You should be able to open it with an editor. Look at the last few lines. They contain the traceback. massimo On Wednesday, 25 July 2012 08:00:17 UTC-5, Alec Taylor wrote: > > I'm getting an annoying "Internal error" message on every pa

Re: [web2py] how to use cache decorator within modules?

2012-07-25 Thread villas
Hi All, For anyone who was interested in this thread, Massimo did implement cache decorators for use *inside modules* and this is now available in trunk. It seemed to work OK for me and for anyone else wishing to test this, here is the description Example Code for use inside your module:

Re: [web2py] how to use cache decorator within modules?

2012-07-25 Thread Anthony
Why is it called lazy_lazy_cache, as opposed to just lazy_cache? On Wednesday, July 25, 2012 10:36:50 AM UTC-4, villas wrote: > > Hi All, > > For anyone who was interested in this thread, Massimo did implement cache > decorators for use *inside modules* and this is now available in trunk. > It

[web2py] Re: Suggestion - a pickled DAL field

2012-07-25 Thread Omri Har-Shemesh
Thanks! I will try it out :) On Wednesday, July 25, 2012 3:55:39 AM UTC+2, Anthony wrote: > > On Tuesday, July 24, 2012 5:58:29 PM UTC-4, Derek wrote: >> >> Make it a computed field? >> > > I'm not sure that would be helpful in this case. A computed field computes > its value automatically based

Re: [web2py] MySQL DB reads have stopped working for one table in a background process

2012-07-25 Thread David Phillips
I think you have hit on the issue. I added a db.commit() call before I attempted to read from the table and the read was successful. Thanks so much. David On Jul 24, 2012, at 11:16 PM, Massimo Di Pierro wrote: > First of all we need to establish there is a problem and this is not the > expec

[web2py] how to set values for certains fields (SQLFORM.factory for one table and list of fields, fields are not bind to a table) with ajax or $.ajax callback

2012-07-25 Thread Richard Vézina
Hello, I have a form generated like this : SQLFORM.factory(db.table1, Field('name','type',requires='something', ...), Field('name1','type',requires='something', ...), etc.) Base on the value entered for a field in the db.table1 I want to set predefined (or default) values stored in database to t

[web2py] Re: SQLFORM.grid pagination refresh

2012-07-25 Thread Anthony
Yeah, it looks like the query string isn't propagated to the links within the table. However, you can propagate URL args by specifying the "args" argument to .grid(). Maybe something like this: {{=LOAD('default', 'ajaxTable2.load', args=[60], ajax=True, target='grid')}} $('#input4').keyu

[web2py] [WEB2PY] Twitter bootstrap Carousel not cycling

2012-07-25 Thread Kevin Miller
Hi all, Any ideas why twitter bootstrap carousel not cycling. I followed what was told: I put this in the header: $(document).ready(function(){ $('#myCarousel').carousel({ interval: 2000 }); } and in the body I placed the code as indicated on the website. It only cycles after I click

Re: [web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Alec Taylor
I didn't do anything on the website for the past 3 hours (had some more academic research to do), and when I went back to the site, it loaded. Checking tickets, found a few of these: *OSError: [Errno 28] No space left on device: '/tmp/tmpznG08R'* + details

Re: [web2py] Re: Suggestion - a pickled DAL field

2012-07-25 Thread Toby Shepard
On 07/24/2012 06:55 PM, Anthony wrote: On Tuesday, July 24, 2012 5:58:29 PM UTC-4, Derek wrote: Make it a computed field? I'm not sure that would be helpful in this case. A computed field computes its value automatically based on other fields in the record, but in this case, he needs to pi

Re: [web2py] Re: callback on an anchor tag

2012-07-25 Thread Toby Shepard
{{=A("CLICK ME!!", callback=URL('http://mysite.com/foo.html' ), target='hater')}} should be {{=A("CLICK ME!!", callback='http://mysite.com/foo.html' ,target='hater')}} Ok, thanks. Perhaps there is a small problem with the manual sec

[web2py] Complex query with left outer join

2012-07-25 Thread jw
Hi, my question is about the following query. I'm planning to program an e-learning software. For this I use three tables to select the cards to learn for today. Table "cards" contains the question, "userCard" contains the progress for the special student (lastTimeLearned as a multiplicator for

Re: [web2py] prettydate question

2012-07-25 Thread Asimionese Alexandru
On Wednesday, July 25, 2012 11:48:34 AM UTC+3, ctrlSoft wrote: > > > > On Tuesday, July 24, 2012 5:58:16 PM UTC+3, dbdeveloper wrote: >> >> ctrlSoft, is issue still present ? >> >> Vladyslav Kozlovskyy (Ukraine) >> >> 23.07.12 13:32, ctrlSoft написав(ла): >> >> datetime format is: 2012-07-18 1

[web2py] web2py with Amazon AWS and dynamoDB

2012-07-25 Thread kantaki
Hello, is it possible to run web2py with dynamodb? If yes what are the restrictions? Maybe there are other frameworks that are more suitable with dynamodb? --

[web2py] Left outer join in a compex select

2012-07-25 Thread jw
Hi! I'm trying to develop a E-Learning-System. The idea is to give the student a bunch of cards to learn every day. Therefore I have a table 'cards' which includes only the answer. Table 'userCard' includes the date when the user learnt the card the last time and in which stage (multiplier for t

[web2py] Error using Scheduler with CouchDB

2012-07-25 Thread Ted
Hi Web2pyers, Has anyone sucessfully used the new scheduler functionality with *CouchDB? *(I'm assuming this is feasible) I'm currently trying to use the scheduler on *Windows 7* with *CouchDB *as the DAL source. My code works fine with sqlite but seems to silently fail using *CouchDB*- altho

Re: [web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Alec Taylor
Alright, happened again, just checked the uwsgi log: tmpfile(): No space left on device [proto/http.c line 338] error parsing request :\ On Thu, Jul 26, 2012 at 2:04 AM, Alec Taylor wrote: > I didn't do anything on the website for the past 3 hours (had some more > academic research to do), and

Re: [web2py] Re: prettydate question

2012-07-25 Thread Alec Taylor
On Tue, Jul 24, 2012 at 2:28 AM, ctrlSoft wrote: > yes. >>> >> http://i.imgur.com/jaeop.jpg > > http://i.imgur.com/xPBG1.jpg > > Quick aside, that view you've screenshotted, would you be able to show me the code (view+controller) you used to generate it? --

Re: [web2py] Re: Suggestion - a pickled DAL field

2012-07-25 Thread Anthony
> > > Make it a computed field? > > > > > > I'm not sure that would be helpful in this case. A computed field > > computes its value automatically based on other fields in the record, > > but in this case, he needs to pickle an object, which is not one of the > > other fields. Also, it n

Re: [web2py] Re: callback on an anchor tag

2012-07-25 Thread Anthony
> > Ok, thanks. Perhaps there is a small problem with the > manual section on views. I copied my example from the manual: > > > {{=A('click me', callback=URL('myaction'), target="t")}} > > > and the response of the ajax callback will be stored in the DIV with id > equal to "t". > No, the

Re: [web2py] Re: callback on an anchor tag

2012-07-25 Thread Toby Shepard
On 07/24/2012 06:48 PM, Massimo Di Pierro wrote: {{=A("CLICK ME!!", callback=URL('http://mysite.com/foo.html' ), target='hater')}} should be {{=A("CLICK ME!!", callback='http://mysite.com/foo.html' ,target='hater')}} Ok, so now I have:

Re: [web2py] Re: callback on an anchor tag

2012-07-25 Thread Toby Shepard
On 07/25/2012 09:21 AM, Anthony wrote: Ok, thanks. Perhaps there is a small problem with the manual section on views. I copied my example from the manual: {{=A('click me', callback=URL('myaction'), target="t")}} and the response of the ajax callback will be stored in the D

Re: [web2py] Complex query with left outer join

2012-07-25 Thread Alec Taylor
On Thu, Jul 26, 2012 at 12:13 AM, jw wrote: > Hi, > > my question is about the following query. I'm planning to program an > e-learning software. For this I use three tables to select the cards to > learn for today. > Table "cards" contains the question, "userCard" contains the progress for > the

Re: [web2py] Re: callback on an anchor tag

2012-07-25 Thread Anthony
> > Oh, I had thought that 'myaction' stood for a full URL. So in this > case, is 'myaction' actually the name of a controller, or function? > It's a function. When you don't pass an application or controller name to URL(), it assumes the current application and current controller. Anthony

[web2py] BR()

2012-07-25 Thread Toby Shepard
In my own html generating libraries, I normally allow an integer argument to the maker, which is a count of how many tags to put out. So: {{=BR(5)}} could output This works out since the BR tag can't have any components anyway. Just a thought. I find it useful at times. Tobiah --

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
I got to the point where I could reproduce this locally using incognito mode. Looks like it is a known uwsgi bug that was just patched 3 days ago: http://stackoverflow.com/questions/11598935/uwsgi-resends-headers-in-async-mode To anyone else using a recent version of uwsgi - you might want to

[web2py] Re: Complex query with left outer join

2012-07-25 Thread pbreit
I don't really understand what you're trying to do but I would recommend trying to simplify. First, you don't always need to do a join or a left join. Try to figure out if those are really necessary. For example, do you really need to join the questions and the progress or can you retrieve thos

Re: [web2py] Complex query with left outer join

2012-07-25 Thread vinicius...@gmail.com
timedelta syntax is timedelta(days=1) On 07/25/2012 11:13 AM, jw wrote: Hi, my question is about the following query. I'm planning to program an e-learning software. For this I use three tables to select the cards to learn for today. Table "cards" contains the question, "userCard" contains the

Re: [web2py] Re: Complex query with left outer join

2012-07-25 Thread vinicius...@gmail.com
Indeed, pbreit. Did you check if your SQL query is correct? print db._lastsql would help, too. Baby steps, baby. Baby steps. -- Vinicius Assef On 07/25/2012 01:58 PM, pbreit wrote: I don't really understand what you're trying to do but I would recommend trying to simplify. First, you don't

Re: [web2py] BR()

2012-07-25 Thread Lucas R. Martins
You also can use {{=BR()*5}} or {{=ANYTHING()*5}} Em Qua 25 Jul 2012 13:51:38 BRT, Toby Shepard escreveu: In my own html generating libraries, I normally allow an integer argument to the maker, which is a count of how many tags to put out. So: {{=BR(5)}} could output This works out since t

Re: [web2py] BR()

2012-07-25 Thread vinicius...@gmail.com
No, you cannot. On 07/25/2012 02:18 PM, Lucas R. Martins wrote: You also can use {{=BR()*5}} or {{=ANYTHING()*5}} Em Qua 25 Jul 2012 13:51:38 BRT, Toby Shepard escreveu: In my own html generating libraries, I normally allow an integer argument to the maker, which is a count of how many tags

[web2py] Visit Plugow on FISL13

2012-07-25 Thread vinicius...@gmail.com
Plugow is a totem developed by our team, at Agencia X4, using Python and web2py. It integrates several techologies like webcam, qrcode, social networks (twitter and fb) and youtube. We're on FISL 13 [1] (International Free Software Forum, 13th edition) in Brazil. If you understand Portuguese

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Roberto De Ioris
Il giorno 25/lug/2012, alle ore 18:54, Neil ha scritto: > I got to the point where I could reproduce this locally using incognito mode. > Looks like it is a known uwsgi bug that was just patched 3 days ago: > > http://stackoverflow.com/questions/11598935/uwsgi-resends-headers-in-async-mode >

Re: [web2py] BR()

2012-07-25 Thread Anthony
Though you can do: {{=BR().xml()*5}} or {{=str(BR())*5}} Anthony On Wednesday, July 25, 2012 1:23:37 PM UTC-4, viniciusban wrote: > > No, you cannot. > > On 07/25/2012 02:18 PM, Lucas R. Martins wrote: > > You also can use {{=BR()*5}} or {{=ANYTHING()*5}} > > > > Em Qua 25 Jul 2012 13:51:

Re: [web2py] BR()

2012-07-25 Thread vinicius...@gmail.com
They don't work. Output is escaped. Try it out. -- Vinicius Assef On 07/25/2012 03:40 PM, Anthony wrote: Though you can do: | {{=BR().xml()*5}} | or | {{=str(BR())*5}} | Anthony On Wednesday, July 25, 2012 1:23:37 PM UTC-4, viniciusban wrote: No, you cannot. On 07/25/2012 02:18

[web2py] Re: Error using Scheduler with CouchDB

2012-07-25 Thread Niphlod
Scheduler was meant to run on relational dbs. Actually, I think noone ever tested it on Nosql adapters, but if this is a popular requirement I could see into it. BTW, I posted an app to test the scheduler in trunk for this kind of tests. https://groups.google.com/d/topic/web2py/E_mASrZIpvw/disc

Re: [web2py] BR()

2012-07-25 Thread Derek
Ok, how about {{=(BR()*5).XML()}} On Wednesday, July 25, 2012 11:53:05 AM UTC-7, viniciusban wrote: > > They don't work. Output is escaped. > > Try it out. > > -- > Vinicius Assef > > > On 07/25/2012 03:40 PM, Anthony wrote: > > Though you can do: > > > > | > > {{=BR().xml()*5}} > > | >

Re: [web2py] BR()

2012-07-25 Thread vinicius...@gmail.com
You cannot, too. I've tested. The correct way is: {{=XML(str(BR())*5)}} On 07/25/2012 04:09 PM, Derek wrote: Ok, how about {{=(BR()*5).XML()}} On Wednesday, July 25, 2012 11:53:05 AM UTC-7, viniciusban wrote: They don't work. Output is escaped. Try it out. -- Vinicius Ass

[web2py] Re: Web2Py on OpenShift

2012-07-25 Thread Alec Taylor
Looking good, but I was wondering, is it possible to get this working with latest trunk? I tried, but ended up with "Internal error"s before I was even presented with the enter admin password view. The welcome app worked fine though >.< Thanks On Saturday, June 9, 2012 1:07:39 AM UTC+10, Andre

Re: [web2py] BR()

2012-07-25 Thread Derek
nope... unsupported operand type(s) for *: 'BR' and 'int' and also... 'BR' object has no attribute 'XML' On Wednesday, July 25, 2012 12:09:24 PM UTC-7, Derek wrote: > > Ok, how about {{=(BR()*5).XML()}} > > On Wednesday, July 25, 2012 11:53:05 AM UTC-7, viniciusban wrote: >> >> They don't work.

[web2py] Re: Suggestion - a pickled DAL field

2012-07-25 Thread howesc
For what it is worth i have used custom fields for this type of thing with great success! On Tuesday, July 24, 2012 8:20:03 AM UTC-7, Anthony wrote: > > You could use a SQLCustomType field: > http://web2py.com/books/default/chapter/29/6#Custom-Field-types-(experimental) > . > > Anthony > > On Tu

[web2py] Re: web2py with Amazon AWS and dynamoDB

2012-07-25 Thread howesc
i may be speaking out of turn, but i don't recall that there is a DAL adapter for dynamodb. i bet the DAL adapter would look like other nosql adapters We should probably add it in if there is demand for it! the rest of web2py should run fine. On Wednesday, July 25, 2012 4:51:56 AM UTC-7,

[web2py] Re: [WEB2PY] Twitter bootstrap Carousel not cycling

2012-07-25 Thread howesc
check the JS console for errors. if somehow your code above is executed before bootstrap has finished loading it bet the init fails...though i wouldn't expect it to work at all. i guess check the console and let us know if you see errors. On Wednesday, July 25, 2012 9:04:00 AM UTC-7, dundee w

Re: [web2py] BR()

2012-07-25 Thread Derek
Better way is this: {{=XML(""*5)}} But only because you have a ton less brackets. On Wednesday, July 25, 2012 12:14:09 PM UTC-7, viniciusban wrote: > > You cannot, too. > > I've tested. The correct way is: {{=XML(str(BR())*5)}} > > > > > On 07/25/2012 04:09 PM, Derek wrote: > > Ok, how about {

[web2py] email question, and mysterious variable behavior

2012-07-25 Thread joe
Hello Two problems. First, I have no experience whatsoever with the mail system, but I need to use it for a request/notification system. (when the status of a run changes to what a user wanted it to change to, the user gets an email). The email is not being sent. I set up email like this:

Re: [web2py] BR()

2012-07-25 Thread Niphlod
1.99.7 {{=XML(BR().xml()*5)}} works ok. On Wednesday, July 25, 2012 9:17:04 PM UTC+2, Derek wrote: > > nope... > unsupported operand type(s) for *: 'BR' and > 'int' > and also... > 'BR' object has no attribute 'XML' > > On Wednesday, July 25, 2012 12:09:24 PM UTC-7, Derek wrote: >> >> Ok, how

Re: [web2py] BR()

2012-07-25 Thread Anthony
Right, you have to put it inside an XML(). On Wednesday, July 25, 2012 2:53:05 PM UTC-4, viniciusban wrote: > > They don't work. Output is escaped. > > Try it out. > > -- > Vinicius Assef > > > On 07/25/2012 03:40 PM, Anthony wrote: > > Though you can do: > > > > | > > {{=BR().xml()*5}} >

[web2py] Re: email question, and mysterious variable behavior

2012-07-25 Thread Niphlod
mail.settings.server needs to be ('logging' for debugging purposes or) an ip(:port) where a mail daemon is listening, not the http address of a web2py instance.. And again (this rises up quite a bit): DAL is not an ORM. DAL is a Database Abstraction Layer, not an Object Relational Mapper.

[web2py] Re: email question, and mysterious variable behavior

2012-07-25 Thread Anthony
> > from gluon.tools import Mail > mail = Mail() > mail.settings.server = 'http://127.0.0.1:8000' > mail.settings.sender = 'myem...@emailclient.com' > You also need: mail.settings.login = 'username:password' row.notified = True > > The other odd thing is that notified stays

[web2py] Re: Inconsistent behavior with SqlGrid and referenced tables

2012-07-25 Thread Derek
created_by works because it references db.auth_user and db.auth_user has a format attribute which specifies how it is to be represented. So, your argument '%(name)s' gives it a label, but not a representation. Add a format attribute to those other tables. On Saturday, July 21, 2012 7:13:08 AM UT

[web2py] Re: email question, and mysterious variable behavior

2012-07-25 Thread joe
Thanks, the variable thing works now. Also, if the server is 'logging', will the email be sent? Sorry, I have never used this before. Thanks for the help -Joe peacock On Wednesday, July 25, 2012 2:42:42 PM UTC-5, Niphlod wrote: > > mail.settings.server needs to be ('logging' for debugging purp

[web2py] Re: Inconsistent behavior with SqlGrid and referenced tables

2012-07-25 Thread Derek
I'll quote Massimo here... http://permalink.gmane.org/gmane.comp.python.web2py/79516 A field has two attributes, requires and represent. If web2py finds a 'reference auth_user" but no requires, it assumes db.report.person.requires=IS_IN_DB(db, db.auth_user.id, db.auth_user._format) db.report.p

[web2py] Re: email question, and mysterious variable behavior

2012-07-25 Thread Niphlod
'logging' gets the raw email printed on the console. it is only for debugging purposes. BTW (and I mean no harm on that): I get that asking on such an active list is "speedier" than having to read documentation, but since you are going to use the feature, why don't you just go and read about it

Re: [web2py] how to use cache decorator within modules?

2012-07-25 Thread Derek
because this one is really lazy. On Wednesday, July 25, 2012 7:44:20 AM UTC-7, Anthony wrote: > > Why is it called lazy_lazy_cache, as opposed to just lazy_cache? > > On Wednesday, July 25, 2012 10:36:50 AM UTC-4, villas wrote: >> >> Hi All, >> >> For anyone who was interested in this thread, Mas

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
This is very useful information - I was always unsure about using async. Thanks a lot! On Wednesday, July 25, 2012 6:49:39 PM UTC+1, Roberto De Ioris wrote: > > > You can get the updated stable-branch from here: > > http://projects.unbit.it/hg/uwsgi-1.2 > > (the maintainance release will be tom

Re: [web2py] Re: Web2Py on OpenShift

2012-07-25 Thread Andrew Replogle
I haven't attempted with a recent release. I'll pull down trunk and see if I can get the admin working. Keep in mind that when an OpenShift gear is started, your configuration is copied from the git area to a runtime area and executed from there. So, while I haven't tested this and can't confirm f

[web2py] Modifying form submit button markup?

2012-07-25 Thread Alec Taylor
I've been able to change the textual value of the submit button on `SQLFORM.factory` by modifying the `submit_button` attribute. I want to change its class to: , and move it up to the text field, so it will look like: *Search*[][icon] For a better explanation on what classes I want to a

Re: [web2py] Re: prettydate question

2012-07-25 Thread ctrlSoft
On Wednesday, July 25, 2012 7:17:43 PM UTC+3, Alec Taylor wrote: > > On Tue, Jul 24, 2012 at 2:28 AM, ctrlSoft wrote: > >> yes. >>> http://i.imgur.com/jaeop.jpg >> >> http://i.imgur.com/xPBG1.jpg >> >> Quick aside, that view you've screenshotted, would you be able to show me > the code

Re: [web2py] Re: Web2Py on OpenShift

2012-07-25 Thread Alec Taylor
Excellent, thanks. I haven't really looked at the newly built in OpenShift feature, but I'm pretty sure it just facilitates updating the application on OpenShift, rather than the application + web-framework. On Thu, Jul 26, 2012 at 6:23 AM, Andrew Replogle wrote: > I haven't attempted with a rec

Re: [web2py] Re: prettydate question

2012-07-25 Thread Alec Taylor
Thanks On Thu, Jul 26, 2012 at 6:40 AM, ctrlSoft wrote: > > > On Wednesday, July 25, 2012 7:17:43 PM UTC+3, Alec Taylor wrote: >> >> On Tue, Jul 24, 2012 at 2:28 AM, ctrlSoft wrote: >> >>> yes. > http://i.imgur.com/jaeop.jpg >>> >>> http://i.imgur.com/xPBG1.jpg >>> >>> Quick aside, th

[web2py] Re: Visit Plugow on FISL13

2012-07-25 Thread Massimo Di Pierro
Can you tell us more hat it does? On Wednesday, 25 July 2012 12:36:46 UTC-5, viniciusban wrote: > > Plugow is a totem developed by our team, at Agencia X4, using Python and > web2py. > > It integrates several techologies like webcam, qrcode, social networks > (twitter and fb) and youtube. > We

Re: [web2py] BR()

2012-07-25 Thread Massimo Di Pierro
Why not? Good idea. It is in trunk! {{=BR()*5}} On Wednesday, 25 July 2012 12:18:26 UTC-5, Lucas R. Martins wrote: > > You also can use {{=BR()*5}} or {{=ANYTHING()*5}} > > Em Qua 25 Jul 2012 13:51:38 BRT, Toby Shepard escreveu: > > In my own html generating libraries, I normally allow > > an

Re: [web2py] how to use cache decorator within modules?

2012-07-25 Thread Massimo Di Pierro
Because while the cache decorator wraps the function once. The lazy_lazy_cache wraps cache once, therefore the function twice. This is because cache requires current.request but this is only available when the function is called, not when the module is first imported and the cache decorator exe

Re: [web2py] Re: Empty Database value is not None, but an empty string

2012-07-25 Thread Mark Li
I'm using SQLite3 on Windows (running from source). I didn't install anything extra, just been using SQLite that came with web2py I attempted try: db.testtable.import_from_csv_file('example.csv', null='') except: print db._lastsql db.rollback() However, print db._lastsql doe

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Massimo Di Pierro
Hello Neil, thank you for this thread and for how you handled the issue. This was a tricky one to debug and a very important issue for the community. We can all rejoice this is a uwsgi issue and not a web2py one. There is nothing web2py can do if the web server injects the wrong headers but I

  1   2   >