[web2py] web2py and python3

2014-03-27 Thread Maurice Waka
Does web2py function with python 3.3 or python 3.4? I have installed web2py but it cannot run with the python3.4 that I use. I get an error after trying to run the 'web2py.exe - S welcome' that says, syntax error -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] importing modules to web2py

2014-04-06 Thread Maurice Waka
I have several modules with a print function in python 3.4. How do i import them to web2py and display the print to the web? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] How to output data from sqlite3 table to html

2014-04-19 Thread Maurice Waka
I am trying to use web2py to build an app. I have a simple print function that a user submits a key word . The string or int key word is directed to an sqlite db to retrieve a row and output the data. I need to know 1. how to use the print on html. 2. How to split the string...so far i did

[web2py] Re: How to output data from sqlite3 table to html

2014-05-03 Thread Maurice Waka
request. This can be simplified a lot. On Saturday, 19 April 2014 04:57:34 UTC-5, Maurice Waka wrote: I am trying to use web2py to build an app. I have a simple print function that a user submits a key word . The string or int key word is directed to an sqlite db to retrieve a row

[web2py] How do I define this item

2014-05-21 Thread Maurice Waka
When I iterate through the controller as this: def return_post: form = SQLFORM(db.post) for c in form: form1= post.body form2 = form1.split()return dict(form2=form2) I get an error that form2 is not defined in the view{{=form2}}. How do i define this form2? --

[web2py] How to import python functions

2014-05-22 Thread Maurice Waka
I have this example code in python module: def test(): .code print('Message delivered') test() How do I import such a function to* print* in the html view the same message as in the python code? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: How do I define this item

2014-05-22 Thread Maurice Waka
Thanks! it worked On Wednesday, May 21, 2014 1:01:46 PM UTC+3, Maurice Waka wrote: When I iterate through the controller as this: def return_post: form = SQLFORM(db.post) for c in form: form1= post.body form2 = form1.split()return dict(form2=form2) I get an error

Re: [web2py] How to import python functions

2014-05-22 Thread Maurice Waka
I dont understand, which fileam also using python2.7...so the print is not :print(mesage...') On Thursday, May 22, 2014 5:31:12 PM UTC+3, marco mansilla wrote: El Wed, 21 May 2014 22:17:07 -0700 (PDT) Maurice Waka mauri...@gmail.com javascript: escribió: I have this example code

[web2py] Re: How to import python functions

2014-05-23 Thread Maurice Waka
index(): return dict(message='Message delivered') And in the view: {{=message}} Anthony On Thursday, May 22, 2014 1:17:07 AM UTC-4, Maurice Waka wrote: I have this example code in python module: def test(): .code print('Message delivered') test() How do I import

[web2py] Error message: function not callable.

2014-05-26 Thread Maurice Waka
My code in HTML view is like this: {{import test}} {{while True:}} {{test()}} {{pass}} But I get this error that: function test is not callable. What can I do to correct this? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Error message: function not callable.

2014-05-27 Thread Maurice Waka
...@gmail.com wrote: test is a module, not a function. If there is a function named test inside the test module, then you would call it via test.test(). Or you could do from test import test. Anthony On Monday, May 26, 2014 8:51:46 AM UTC-4, Maurice Waka wrote: My code in HTML view is like

[web2py] web2py function import not working well

2014-06-03 Thread Maurice Waka
from applications.Folders1.modules.myfolder1.main import mainfrom applications.Folders1.modules.myfolder1.list1 import GAMES0 code.if id == name3: result = location return result else: while True: class

Re: [web2py] web2py function import not working well

2014-06-03 Thread Maurice Waka
. On Tuesday, June 3, 2014 2:50:48 AM UTC-7, Maurice Waka wrote: from applications.Folders1.modules.myfolder1.main import main from applications.Folders1.modules.myfolder1.list1 import GAMES0 code. if id == name3: result = location return result else: while True: class Filters(object): def

Re: [web2py] web2py function import not working well

2014-06-05 Thread Maurice Waka
it will tell you what instance of class you have. if you want to print like it does in the repl, you need to 'print repr(x)' where x is the class or whatever you want. On Tuesday, June 3, 2014 12:30:02 PM UTC-7, Maurice Waka wrote: When I work with the same module on python shell, its perfectly

Re: [web2py] web2py function import not working well

2014-06-08 Thread Maurice Waka
result = test() return result N/B with python shell. this works fine, but on web2py, i get the 'None' printout On Thursday, June 5, 2014 3:13:51 PM UTC+3, Maurice Waka wrote: Thanks team!! That gives me an idea of how to program. Much appreciated! On Thu, Jun 5, 2014 at 2:20 AM

[web2py] Re: web2py function import not working well

2014-06-08 Thread Maurice Waka
On Tuesday, June 3, 2014 12:50:48 PM UTC+3, Maurice Waka wrote: from applications.Folders1.modules.myfolder1.main import mainfrom applications.Folders1.modules.myfolder1.list1 import GAMES0 code.if id == name3: result = location return result else

[web2py] How do I use getattr in web2py

2014-06-14 Thread Maurice Waka
http://stackoverflow.com/questions/24218339/how-to-use-getattr-in-web2py# My code: from applications.Folders1.modules.myfolder1.main import mainfrom applications.Folders1.modules.myfolder1.list1 import GAMES0 code. name3 = main() class Filters(object): def Filter_cause(self):

[web2py] How do I view text on view.html

2014-06-16 Thread Maurice Waka
My code: class Person(): name = 'Victor' def say(self, what): print(self.name, what) getattr(person, attr_name) How do I display 'Victor' on web2py html.view? I tried using: {{=getattr(person, attr_name)}} I know this could be wrong and I cant get a result either

Re: [web2py] How do I view text on view.html

2014-06-16 Thread Maurice Waka
@ Carlo, that's where am stuck On Mon, Jun 16, 2014 at 2:36 PM, Carlos Costa yamandu.co...@gmail.com wrote: You should create and action for that view and pass it in dictionary to the view 2014-06-16 7:08 GMT-03:00 Maurice Waka mauricew...@gmail.com: My code: class Person

Re: [web2py] Re: How do I view text on view.html

2014-06-17 Thread Maurice Waka
. -- Dr Maurice Waka, MBCHB. Nairobi -- 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

[web2py] Error lling a variable from class method

2014-06-19 Thread Maurice Waka
Am working on a simple game/app. When I call a variable on web2py view, I get this error: quack= duck.quack()TypeError: unbound method quack() must be called with duck instance as first argument (got nothing instead) my codes are here: In the module module from gluon import *class duck():

Re: [web2py] Re: Error lling a variable from class method

2014-06-21 Thread Maurice Waka
/zWGI68D2VDA/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Dr Maurice Waka, MBCHB. Nairobi -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Web2py Try:AttributeError: I need help with this

2014-06-28 Thread Maurice Waka
I imported a class with static methods from a python module that goes like class foo(object): @staticmethod def paint(): for items on : return func() @staticmethod def draw(): In the controller: from applications.import foo foo = foo() def this():

[web2py] How do I iterate over imported methods in a list?

2014-07-10 Thread Maurice Waka
in my web2py app, i created this code that works well in python shell. python modules: #The methods work in such a way that a user inputs an equation query to get an answer. If it is an addition, method1 works it out, the same to other methods being invoked to performing different codes def

[web2py] how to iterate through sqlite data and display on web2py

2014-09-09 Thread Maurice Waka
I have several lists in sqlite rows as follows: ROWID x 1['123', '1234', '12345',] 2['abc', 'abcd', 'abcde',] 3['1a2b3c', '1a2b3c4d', '1a2b3c4d5e',] I would like to iterate over these items in a game that matches them with a user input, say when a user prints 123, it prints

Re: [web2py] Re: how to iterate through sqlite data and display on web2py

2014-09-09 Thread Maurice Waka
...@gmail.com wrote: On Tuesday, September 9, 2014 8:08:00 AM UTC-4, Maurice Waka wrote: I have several lists in sqlite rows as follows: ROWID x 1['123', '1234', '12345',] 2['abc', 'abcd', 'abcde',] 3['1a2b3c', '1a2b3c4d', '1a2b3c4d5e',] How are you storing the lists in a single

Re: [web2py] Re: how to iterate through sqlite data and display on web2py

2014-09-09 Thread Maurice Waka
Hey thanks alot! let me work on this then. Kind regards On Tue, Sep 9, 2014 at 3:55 PM, Anthony abasta...@gmail.com wrote: On Tuesday, September 9, 2014 8:40:04 AM UTC-4, Maurice Waka wrote: Thanks for the input. Yes it is part of a web2py app game. I have about 1000 rows, but when a user

Re: [web2py] Re: how to iterate through sqlite data and display on web2py

2014-09-17 Thread Maurice Waka
this code on a ython module imported to web2py and not in the controller. In my view: {{=item}} On Tue, Sep 9, 2014 at 4:21 PM, Maurice Waka mauricew...@gmail.com wrote: Hey thanks alot! let me work on this then. Kind regards On Tue, Sep 9, 2014 at 3:55 PM, Anthony abasta...@gmail.com wrote

[web2py] Re: web2py 2.9.12 is OUT

2015-01-26 Thread Maurice Waka
Great and Thanks On Saturday, January 17, 2015 at 9:20:14 AM UTC+3, Massimo Di Pierro wrote: Changelog: - Modular DAL, thanks Giovanni - Added coverage support, thanks Niphlod - More tests, thanks Niphlod and Paolo Valleri - Added support for show_if in readonly sqlform, thanks Paolo -

[web2py] web2py pagination

2015-01-26 Thread Maurice Waka
Suppose I have such a code: def products(): if len(request.args): page=int(request.args[0]) else: page=0 items_per_page=20 limitby=(page*items_per_page,(page+1)*(items_per_page+1)) qset = db(db['products']['name']!='None') grid = qset.select(limitby=limitby) return

[web2py] Printing data on web2py view page is different from python shell

2015-03-18 Thread Maurice Waka
When I have data from sqlite printing out to python shell such as from this code: import sqlite 3 code def trial_stuff() style = [ 'string',] id = record[0] place = record[5] if item in string == id: print place *In an example data, the result appears as this:*

Re: [web2py] Re: Printing data on web2py view page is different from python shell

2015-03-19 Thread Maurice Waka
Thanks Leo. It worked! On Mar 18, 2015 3:53 PM, Leonel Câmara leonelcam...@gmail.com wrote: This is just how HTML works. You may want to study HTML a bit more but here's a quick n' dirty solution. {{extend.layout.html}} Answer: {{=XML(result.replace('\n', 'br'))}} -- Resources: -

Re: [web2py] Re: Printing data on web2py view page is different from python shell

2015-03-19 Thread Maurice Waka
Thank so much. It worked! On Mar 18, 2015 3:53 PM, Leonel Câmara leonelcam...@gmail.com wrote: This is just how HTML works. You may want to study HTML a bit more but here's a quick n' dirty solution. {{extend.layout.html}} Answer: {{=XML(result.replace('\n', 'br'))}} -- Resources: -

[web2py] web2py new version

2015-03-14 Thread Maurice Waka
I have been using the old version of web2py but when I updated to the latest version, I noted that there are some things that don't work with my new app. I get errors such as prettydate is not declared', now the view.html page is returning 'None'on my requests. Can I go back to the old version

[web2py] Limit view of posts online

2015-03-23 Thread Maurice Waka
I tried a Reddit app where one can view posts and comments. My trouble is getting the user t be the only one to view the Posts instead of public view(all postS seen by everyone) How do I limit that? I tried: @auth.requires_signature() def view_posts_by_author(): ...code return locals()

Re: [web2py] Re: Limit view of posts online

2015-03-23 Thread Maurice Waka
(db.user_posts.posted_by==db.auth_user.id ).select(db.user_posts.ALL) then show that data to just the user. Kind of hard to structure without seeing your database model. On Monday, March 23, 2015 at 12:10:22 PM UTC-4, Maurice Waka wrote: I tried a Reddit app where one can view posts and comments. My trouble

Re: [web2py] Re: Limit view of posts online

2015-03-23 Thread Maurice Waka
And thanks everybody too. On Tue, Mar 24, 2015 at 6:25 AM, Maurice Waka mauricew...@gmail.com wrote: Thanks Anthony. I saw the answer you posted about 4 hrs ago. Kind regards On Tue, Mar 24, 2015 at 3:38 AM, Anthony abasta...@gmail.com wrote: See the answer here: http://stackoverflow.com

Re: [web2py] Re: Limit view of posts online

2015-03-23 Thread Maurice Waka
Thanks Anthony. I saw the answer you posted about 4 hrs ago. Kind regards On Tue, Mar 24, 2015 at 3:38 AM, Anthony abasta...@gmail.com wrote: See the answer here: http://stackoverflow.com/a/29222859/440323 On Monday, March 23, 2015 at 12:10:22 PM UTC-4, Maurice Waka wrote: I tried a Reddit

[web2py] convert sqlite code to DAL

2015-06-10 Thread Maurice Waka
I have been working with sqlite DB for some time but want to integrate my codes to web2py esp. DAL. How do I rewrite such a code to DAL script? name = input ('Please Type your Question: ').lower().split() name2 = name[:] import sqlite3 for item in name2:#break

[web2py] what can I do with this error: Getaadrinfo Failed.

2015-09-19 Thread Maurice Waka
When trying to custom pack and download my app as .exe, I get this error: [Errno socket error] [Errno 11004] getaddrinfo failed How can I resolve it? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: what can I do with this error: Getaadrinfo Failed.

2015-09-23 Thread Maurice Waka
I thought I could download my app(what ia have developed) as .exe On Wed, Sep 23, 2015 at 2:35 PM, Leonel Câmara wrote: > This seems like a temporary error where your DNS wasn't working so it > couldn't download the web2py_win from web2py.com which is the first step > to

Re: [web2py] Re: what can I do with this error: Getaadrinfo Failed.

2015-09-23 Thread Maurice Waka
On Wed, Sep 23, 2015 at 2:32 PM, Maurice Waka <mauricew...@gmail.com> wrote: > This is the error I got. > Kind regards > > On Sun, Sep 20, 2015 at 6:32 PM, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> Please submit a bug report. Do you

Re: [web2py] Re: what can I do with this error: Getaadrinfo Failed.

2015-09-23 Thread Maurice Waka
I will get you the info soon. Am not at my 'IT' desk at the moment. Thanks !! On Wed, Sep 23, 2015 at 4:44 PM, Leonel Câmara wrote: > You can, however the way this works is: > > 1 - Download the web2py windows executable version > 2 - Put your Application in it > 3 -

[web2py] Web2py Error:tuple object has no attribute 'replace'

2016-05-25 Thread Maurice Waka
I initially had a code : for records in records: id = record[0] location = record[3] code return location with wb2py code as: def consult_p(): code... if list_func: return list_func report = consult_p() view_consult code: {{while true:}}{{break}} '))}}{{break}}

Re: [web2py] Web2py Error:tuple object has no attribute 'replace'

2016-05-25 Thread Maurice Waka
Sorry I forgot one thing. I tried to remove the replace () function and only got a blank page. I would like to find a way to iterate between printing both the location or record[3] and the sentence On May 26, 2016 08:04, "Maurice Waka" <mauricew...@gmail.com> wrote: > I i

[web2py] Why can't i iterate over functions and print on view

2016-06-01 Thread Maurice Waka
I have part of the code here as follows: r_lst = [foo(), foo1(), foo2(), foo3()] class Filters(object): @staticmethod def Search_item(): it = iter(r_lst) while True: try: for i in range(len(r_lst)): it.next

Re: [web2py] Re: Why can't i iterate over functions and print on view

2016-06-01 Thread Maurice Waka
Hi. Am not a professional python programmer so please bear with my crude code. On Jun 1, 2016 8:10 PM, "Leonel Câmara" wrote: What are you trying to do exactly? That code is an unreadable mess. The reason you're getting a blank page is that you only return if 'Filter'

Re: [web2py] Re: Why can't i iterate over functions and print on view

2016-06-01 Thread Maurice Waka
I can see your point though. And the input from Anthony. Let me work on the code again and try return a dict. The code is very long that's why I only took a snippet On Jun 1, 2016 8:10 PM, "Leonel Câmara" wrote: What are you trying to do exactly? That code is an

Re: [web2py] Re: Why can't i iterate over functions and print on view

2016-06-01 Thread Maurice Waka
gt; > On Wednesday, June 1, 2016 at 12:48:41 PM UTC-4, Maurice Waka wrote: >> >> I have part of the code here as follows: >> r_lst = [foo(), foo1(), foo2(), foo3()] >> class Filters(object): >> @staticmethod >> def Search_item(): >> it =

[web2py] Web2py Update

2016-02-07 Thread Maurice Waka
Hi I have been using web2py for about 1 yr now. I love it. I recently came acros this crazy article about web2py advantages and disadvantages. My question is that have, these disadvantages been addressed since 6 yrs ago in your updates? Am working on and app and would love to launch it soon, in

Re: [web2py] Re: Web2py Update

2016-02-07 Thread Maurice Waka
wadays production always requires > multiple processes. > > > On Sunday, February 7, 2016 at 9:26:02 AM UTC+1, Maurice Waka wrote: >> >> Hi >> I have been using web2py for about 1 yr now. I love it. I recently came >> acros this crazy article about web2py advantages and

[web2py] Re: RuntimeError: table appears corrupted

2016-09-26 Thread Maurice Waka
Good morning all. I came across this post when searching for an answer. I got this error from my app:: Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Traceback (most recent call last): File "C:\Python27\web2py\gluon\restricted.py", line 227, in restricted exec ccode in environment

[web2py] How to link a default function to html

2017-03-16 Thread Maurice Waka
my code goes like this: db.py db.define_table('category', Field('name', requires = (IS_LOWER(), IS_SLUG(), IS_NOT_IN_DB(db, 'category.name' db.define_table( 'searches', Field('body', 'text', requires = (IS_NOT_EMPTY(), IS_LOWER())),

Re: [web2py] Re: change the size of a text field in a form

2017-03-18 Thread Maurice Waka
I had the same problem and changed but noted that the button 'submit' disappears.any help on how to sort this hout On Tuesday, January 19, 2016 at 7:00:10 PM UTC+3, Richard wrote: > > And why not : > > > textarea { > width: 1320px; > height: 70px; > } > > > You don't need js for

Re: [web2py] Re: I can't post into a DAL Field

2017-04-02 Thread Maurice Waka
om in this scenario? > > Anthony > > > On Saturday, April 1, 2017 at 11:56:41 AM UTC-4, Maurice Waka wrote: >> >> I have this: >> Post =define_table('post' >> Field('message', 'text', >> requires=IS_NOT_EMPTY, notnull=True

Re: [web2py] Re: I can't post into a DAL Field

2017-04-02 Thread Maurice Waka
I had to create another table for 'reply', and it worked. I appreciate your continuous support!! Regards On Sun, Apr 2, 2017 at 11:13 AM, Maurice Waka <mauricew...@gmail.com> wrote: > Great Antony!. But wait, now I have a new issue: > IntegrityError: NOT NULL constraint failed:

[web2py] IntegrityError('NOT NULL constraint failed:post.message)

2017-04-02 Thread Maurice Waka
I thought I had escaped/ solved this error. But now am stuck. My db.py code: Post = db.define_table('post', Field('message', 'text', requires=IS_NOT_EMPTY(), notnull=False), Field('answers', 'text', requires=IS_NOT_EMPTY(), notnull=False),

Re: [web2py] Re: IntegrityError('NOT NULL constraint failed:post.message)

2017-04-13 Thread Maurice Waka
Noted. Thanks On Apr 12, 2017 14:20, "Massimo Di Pierro" <massimo.dipie...@gmail.com> wrote: > I think the problem is that > > db.post.insert(answers=report) > > should be under > > if form.process().accepted: > > > On Sunday, 2 April 2017 07:30:1

[web2py] JavaScript scroll issues

2017-04-15 Thread Maurice Waka
Am trying to get the focus of my chat messages top the newest, at the bottom of the page but the scroll automatically goes to the top.Here is my code: js: $(document).ready(function){ $('#GridDiv').click(function(){ $('html, body').animate({scrollTop:$(document).height()}, 'slow');

Re: [web2py] Re: Unpickling error

2017-03-09 Thread Maurice Waka
eating tables in the file db2.py, what are the contents of this file? > > On Monday, March 6, 2017 at 10:08:04 AM UTC-6, Maurice Waka wrote: >> >> Am getting this web2py error in Ubuntu: >> >> Traceback (most recent call last): >> File "/home/mwk/web2

Re: [web2py] Re: Unpickling error

2017-03-12 Thread Maurice Waka
Yes I had backed up my data. It worked after I resumed with the 'old' data. Regards On Fri, Mar 10, 2017 at 4:09 AM, Dave S <snidely@gmail.com> wrote: > > > On Thursday, March 9, 2017 at 4:59:03 AM UTC-8, Maurice Waka wrote: >> >> Sorry. I discovered tha

[web2py] Unpickling error

2017-03-06 Thread Maurice Waka
Am getting this web2py error in Ubuntu: Traceback (most recent call last): File "/home/mwk/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/home/mwk/web2py/applications/britamintell/models/db2.py", line 15, in auth.signature) File

[web2py] I can't post into a DAL Field

2017-04-01 Thread Maurice Waka
I have this: Post =define_table('post' Field('message', 'text', requires=IS_NOT_EMPTY, notnull=True), Field('reply', 'text', requires=IS_NOT_EMPTY). auth.signatue ) Post.is_active.readable=False

[web2py] web2py i cant submit customized form with input

2017-04-30 Thread Maurice Waka
down votefavorite I have a problem using input with web2py when it comes to form submission. My code below: db.define_table('searches', Field('body', 'text', requires= (IS_NOT_EMPTY(),

[web2py] we2admin tables

2017-06-21 Thread Maurice Waka
Its nice to use web2admin to manage groups, permissions etc. I note that i have another table created: dbhome = DAL('sqlite://healthhome.db', folder='/home/name/web2py') dbhome.define_table('home', Fields...) I cant see this table in the web2admin tables shown, and I want to add permissions

Re: [web2py] Re: we2admin tables

2017-06-22 Thread Maurice Waka
but you can add additional dbs. > > Note, though, that it expects Auth to be in the first db listed, and > functionality related to Auth is limited to the first db listed. If dbhome > is your only database or the primary database, then list it first. > > Anthony > > > > On Wedn

[web2py] Auth_membership issues

2017-06-20 Thread Maurice Waka
I tried this code found here . When it comes to logging in, i get an error: Not Authorized, none. When using @auth.requires_login(), it works. What could I be doing wrong? I need to register as admin.

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-20 Thread Maurice Waka
ts. > > Anthony > > > On Saturday, June 17, 2017 at 7:24:42 AM UTC-4, Maurice Waka wrote: >> >> >> db.define_table('answers', >> Field('quest', 'text', default =auth. user_id) , >> Field('report', 'text', default =auth

Re: [web2py] Auth_membership issues

2017-06-20 Thread Maurice Waka
may require to > logout and login again to force those variables to be updated. > > > You may consider improving the Bruno's code by replacing SQLFORM() by > proper auth methods. > > Thanks > > Richard > > On Tue, Jun 20, 2017 at 11:13 AM, Maurice Waka &l

Re: [web2py] Re: we2admin tables

2017-06-23 Thread Maurice Waka
I I'll give it a try @ron On Jun 23, 2017 06:20, "Ron Chatterjee" wrote: > Does this help? > > http://www.web2pyslices.com/slice/show/2018/plugin-manage-groups > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

Re: [web2py] Re: we2admin tables

2017-06-23 Thread Maurice Waka
I find wrb2admin easier to understand and use. Is there a simplified way/explanation on how to use after installing. e.g. Www.vimeo.com/60895953 Regards On Jun 23, 2017 06:20, "Ron Chatterjee" wrote: Does this help?

Re: [web2py] Re: jqmobile issue

2017-05-24 Thread Maurice Waka
js console. what is it calling in background? do any call result in an error/ticket? On Tuesday, 9 May 2017 23:54:42 UTC-5, Maurice Waka wrote: > > Am having a problem displaying views on mobile interface. I keep getting a > black blank screen. > See attachment. > I have the latest

[web2py] path to file issues

2017-05-28 Thread Maurice Waka
Using Ubuntu.. If you have such a path to a file or Db; path = '/home/username/web2py/applications/welcome/databases/usern.db' conn = sqlite3.connect(path) code... Now if you want to compile the code and upload to GAE, what will happen at compile time, in terms of the path? Do you have to change

Re: [web2py] Re: jqmobile issue

2017-05-29 Thread Maurice Waka
Dave S wrote: >> >> >> >> On Wednesday, May 24, 2017 at 8:42:02 AM UTC-7, Maurice Waka wrote: >>> >>> You lost me here. How do I do it. >>> >> >> The answer isn't as obvious as for a desktop browser, it seems. Maybe >> this will help: >>

[web2py] KeyError issue: column.id Not found

2017-06-03 Thread Maurice Waka
I seem to have the same problem as highlighted in this: https://groups.google.com/forum/#!topic/web2py/oriec4bEAJQ The traceback is the same as mine. Has anyone solved the problem or found the origin of it? After updating my laptop, i now have the same. When ever i click on any table

[web2py] Re: 'Column table.id not found (SQLTABLE)'

2017-06-03 Thread Maurice Waka
Hi did anyone get to solve this error? I seem to be locked in it also Regards On Monday, March 20, 2017 at 4:39:13 PM UTC+3, Santiago Cartasegna wrote: > > Are you trying to use a table that you have defined in your database and > not in web2py? > If it is the case you must add an id field with

Re: [web2py] KeyError issue: column.id Not found

2017-06-04 Thread Maurice Waka
After uninstalling pyDAL it worked perfectly. On Jun 3, 2017 19:19, "Maurice Waka" <mauricew...@gmail.com> wrote: > I seem to have the same problem as highlighted in this: > https://groups.google.com/forum/#!topic/web2py/oriec4bEAJQ > > The traceback is the same

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-14 Thread Maurice Waka
Sorry. Am not sure about value of Auth.user_id On Jun 15, 2017 07:25, "Anthony" <abasta...@gmail.com> wrote: > What is the value of auth.user_id? Are you sure there are records in the > database whose "post_by" value is equal to it? > > On Thursday, June

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-15 Thread Maurice Waka
Thanks. Once logged in I'll fix it. Regards On Jun 15, 2017 09:19, "Anthony" <abasta...@gmail.com> wrote: > On Thursday, June 15, 2017 at 1:48:51 AM UTC-4, Maurice Waka wrote: >> >> Sorry. Am not sure about value of Auth.user_id >> > > It is the id of

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-17 Thread Maurice Waka
db.define_table('answers', Field('quest', 'text', default =auth. user_id) , Field('report', 'text', default =auth. user_id) auth.signature ) On default controller : - replies = db(db.answers).select() - return

Re: [web2py] web2py i cant submit customized form with input

2017-04-30 Thread Maurice Waka
Done custom submit but there is no improvement On Apr 30, 2017 19:45, "Marlysson Silva" wrote: > Try out form.custom.submit as button's form.. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source

Re: [web2py] Re: web2py i cant submit customized form with input

2017-04-30 Thread Maurice Waka
A user types in text. The send button submits it. That's where I find it difficult to submit the form On Apr 30, 2017 22:49, "Anthony" wrote: > Yes to what? How is the form submitted? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] why cant I submit a customized form with this button

2017-05-04 Thread Maurice Waka
I have a web2py app, with two problems: 1. I can submit the customized form with pressing 'Enter' but when clicking the button, I get an error. 2. when pressing 'Enter', the form is submitted but the page is refreshed immediately. How can i stop that? Here is the code; This does not work

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Maurice Waka
d-validators#Custom-forms > > > Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ > > On Fri, 05-05-2017 11:15 AM, Maurice Waka wrote: > > I have a web2py app, with two problems: > > 1. I can submit the customized form with pressing 'E

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Maurice Waka
ers-from-submitting-a-form-by-hitting-enter > > -Jim > > On Friday, May 5, 2017 at 9:56:28 AM UTC-5, Maurice Waka wrote: >> >> Still no change. How about the preventing page refreshing >> >> On May 5, 2017 10:06, "Kiran Subbaraman" <subbaram...@gma

Re: [web2py] why cant I submit a customized form with this button

2017-05-06 Thread Maurice Waka
10:17:06 AM UTC-5, Maurice Waka wrote: > Without js, form still only submitted by hitting enter. I'll check this > other link. Regards > > On May 5, 2017 18:07, "Jim S" <ato@gmail.com> wrote: > >> Can you strip out all of your javascript and confirm that th

Re: [web2py] Re: web2py i cant submit customized form with input

2017-04-30 Thread Maurice Waka
Yes On Apr 30, 2017 20:06, "Anthony" <abasta...@gmail.com> wrote: > How is the form submitted? It looks like you simply have some text in a > div for the "Send it" functionality. > > Anthony > > On Sunday, April 30, 2017 at 8:40:03 AM UTC-4, Mauri

Re: [web2py] Deleting a db table row

2017-10-14 Thread Maurice Waka
Hi. I happened to have the same issue as this: Specifically (syntax-wise) how does one delete a specific table row, but INDEPENDENT of the ".id" field? for example, lets say that I have the following rows in a database table: bid.idbid.bid_id 1LJWI 2LJWJ 3LJWK 4

[web2py] Scroll messages

2017-10-01 Thread Maurice Waka
Am using this code from web2sockets: $(document).ready(function(){ var data; $.web2py.web2py_websocket('ws://127.0.0.1:8000/realtime/mygroup <http://127.0.0.1:/realtime/mygroup>',

Re: [web2py] Re: Simple chatbot

2017-11-12 Thread Maurice Waka
Sorry I cant make any head, nor tail of this.I need you help On Mon, Nov 13, 2017 at 8:13 AM, Maurice Waka <mauricew...@gmail.com> wrote: > I don't have it. > Let me work it out > > On Sun, Nov 12, 2017 at 10:33 PM, Dave S <snidely@gmail.com> wrote: > >> >

Re: [web2py] Re: Simple chatbot

2017-11-12 Thread Maurice Waka
I don't have it. Let me work it out On Sun, Nov 12, 2017 at 10:33 PM, Dave S <snidely@gmail.com> wrote: > > > On Saturday, November 11, 2017 at 7:13:31 PM UTC-8, Maurice Waka wrote: >> >> Why I said that: >> >>1. Loading takes too long to load >

[web2py] Simple chatbot

2017-11-10 Thread Maurice Waka
Hi everyone. For several months, though not a python expert, nor a web2py guru either, I have been working on a simple bot. I borrowed from this site: https://codepen.io/pavel_komiagin/pen/gaGJJK My code is this: {{extend "layout.html"}} {{for q in question:}}

Re: [web2py] Re: How to get teh last DB Field data

2017-11-14 Thread Maurice Waka
Done that. Still can't get the last item inserted. I keep getting the second last item updated. On 15 Nov 2017 4:10 AM, "Leonel Câmara" wrote: > I'm not sure I understand what you're doing. However you're not ordering > your results, so, depending on the database you

Re: [web2py] Re: How to get teh last DB Field data

2017-11-14 Thread Maurice Waka
2017 7:35 AM, "Maurice Waka" <mauricew...@gmail.com> wrote: > Done that. Still can't get the last item inserted. I keep getting the > second last item updated. > > On 15 Nov 2017 4:10 AM, "Leonel Câmara" <leonelcam...@gmail.com> wrote: > >> I'm no

[web2py] new version

2017-11-26 Thread Maurice Waka
Hi I just installed, removed and reinstalled the new version in ubuntu 16.04 LTS but this is the picture I get. Any reason

Re: [web2py] Re: Retrieve database item using print vs return

2017-11-23 Thread Maurice Waka
my code in the controller be the issue? May I see how you did yours? Regards On Tue, Nov 21, 2017 at 9:21 AM, Dave S <snidely@gmail.com> wrote: > > > On Monday, November 20, 2017 at 10:05:47 PM UTC-8, Maurice Waka wrote: >> >> You mean a screen shot of before

Re: [web2py] Re: How to get teh last DB Field data

2017-11-17 Thread Maurice Waka
ot defined") } } else if(txt[0] == "c" && txt[1] == "m" && txt[2] == "d"){ try{ eval(txt) } catch(e){ incoming(e) ;

[web2py] Retrieve database item using print vs return

2017-11-20 Thread Maurice Waka
In my previous question: [web2py] How to get the last DB Field data : I got some good response. But my issue still persists. My code:

Re: [web2py] Re: Retrieve database item using print vs return

2017-11-20 Thread Maurice Waka
You mean a screen shot of before input, and after the input? On 21 Nov 2017 8:59 AM, "Dave S" <snidely@gmail.com> wrote: > > > On Monday, November 20, 2017 at 9:49:41 PM UTC-8, Maurice Waka wrote: >> >> That's the first input message I typed. The return

Re: [web2py] Re: Retrieve database item using print vs return

2017-11-20 Thread Maurice Waka
catch(e){ incoming("Error Executing") } } catch(e){ incoming("Command not defined") } } else if(txt[0] == "c" && txt[1] == &

  1   2   3   4   >