[web2py] Re: p4web auth issues

2020-02-23 Thread Maurice Waka
, 23 февраля 2020 г., 7:28:10 UTC+5 пользователь Maurice Waka > написал: >> >> Using this code, >> >> File "apps/_scaffolds/controllers.py", line 82, in index >> db.posts.insert(message="Welcome "+auth_user.first_name+'.'+&#

[web2py] Re: p4web auth issues

2020-02-23 Thread Maurice Waka
import os import datetime as dt from datetime import datetime, timedelta, date from .common import db, session, T, cache, auth, logger, authenticated, unauthenticated from py4web import action, request, DAL, Field, Session, Cache, user_in, abort, redirect, URL, Field from py4web.utils.auth impo

[web2py] PY4WEB request.vars error

2020-02-23 Thread Maurice Waka
New issue with py4web. Whats the new code for request.vars?? I get this error: Traceback (most recent call last): File "/home/maurice/.local/lib/python3.6/site-packages/bottle.py", line 1397, in __getattr__ var = self.environ['bottle.request.ext.%s'%name] KeyError: 'bottle.request.ext.vars'

Re: [web2py] Re: p4web auth issues

2020-02-23 Thread Maurice Waka
.get.user()[first_name] >> >> With an error.. 'first_name' is not defined >> Regards >> >> On Mon, Feb 24, 2020, 02:02 Val K wrote: >> >>> `auth` in py4web is no the same as in web2py >>> to get user-record you should >>> ... >&

Re: [web2py] Re: p4web auth issues

2020-02-24 Thread Maurice Waka
egards >> >> On Mon, Feb 24, 2020, 02:02 Val K wrote: >> >>> `auth` in py4web is no the same as in web2py >>> to get user-record you should >>> ... >>> def index(): >>> user = auth.get_user() >>> >>> >>> &

Re: [web2py] Re: p4web auth issues

2020-02-24 Thread Maurice Waka
Working now. I had to reinstall the app. Regards On Monday, February 24, 2020 at 12:58:10 PM UTC+3, Val K wrote: > > get_user(), not get.user() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/

[web2py] Re: PY4WEB request.vars error

2020-02-24 Thread Maurice Waka
/api.html#bottle.Request > > On Monday, February 24, 2020 at 12:30:29 AM UTC+3, Maurice Waka wrote: >> >> New issue with py4web. >> >> Whats the new code for request.vars?? >> >> I get this error: >> >> >> Traceback (most recent cal

[web2py] py4web defining tables

2020-02-27 Thread Maurice Waka
Hello, from this code, I have already defined my table in models as follows: import os import datetime as dt from datetime import datetime, timedelta, date from py4web import action, request, DAL, Field, Session, Cache, user_in from py4web.utils.auth import Auth from py4web import action, request,

[web2py] Re: py4web defining tables

2020-02-27 Thread Maurice Waka
p? If not, can you post a minimal common.py, models.py and > your controller? > > -Jim > > On Thursday, February 27, 2020 at 5:55:23 AM UTC-6, Maurice Waka wrote: >> >> Hello, from this code, I have already defined my table in models as >> follows: >> >

[web2py] Re: py4web defining tables

2020-02-27 Thread Maurice Waka
d to last > line of your post you say you're not doing. > > I'm confused... I'd like to help, but need a clear picture of a minimal > common.py, models.py and your controller that reproduces this error. > > -Jim > > On Thursday, February 27, 2020 at 10:0

Re: [web2py] Re: py4web defining tables

2020-02-27 Thread Maurice Waka
ement above from models.py to > common.py > > -Jim > > > > > On Thursday, February 27, 2020 at 11:29:39 AM UTC-6, Maurice Waka wrote: >> >> In my models, I have: >> >> import os >> import datetime as dt >> from datetime import datetime, time

[web2py] Re: py4web defining tables

2020-02-27 Thread Maurice Waka
atement above from models.py to > common.py > > -Jim > > > > > On Thursday, February 27, 2020 at 11:29:39 AM UTC-6, Maurice Waka wrote: >> >> In my models, I have: >> >> import os >> import datetime as dt >> from datetime import dat

[web2py] prettydate in py4web

2020-02-27 Thread Maurice Waka
what changed in py4web with this: [[=prettydate(reply.modified_on)]] which is in web2py? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] py4web posting to db

2020-02-28 Thread Maurice Waka
I'm still learning a lot from py4web.especially not being a programmer myself, and I appreciate a lot from the help I get from you ALL. Anyway, I managed o create the tables and controller functions but I note that I'm not able to post to the database, at the same time, I cant see the mess

[web2py] Re: py4web posting to db

2020-03-03 Thread Maurice Waka
Any help on this please ? On Friday, February 28, 2020 at 9:29:01 PM UTC+3, Maurice Waka wrote: > > I'm still learning a lot from py4web.especially not being a programmer > myself, and I appreciate a lot from the help I get from you ALL. > > Anyway, I managed o c

Re: [web2py] Re: py4web posting to db

2020-03-04 Thread Maurice Waka
ot;/home/maurice/py4web/py4web/core.py", line 514, in wrapper ret = obj.transform(ret) File "/home/maurice/py4web/py4web/core.py", line 300, in transform reader=Template.reader, File "/home/maurice/.local/lib/python3.6/site-packages/yatl/template.py", line 968, in r

[web2py] pyweb login

2020-03-04 Thread Maurice Waka
Hello I recently logged out of py4web app. Upon login again, I can't get in. Tried to login to all apps installed in vain. I downloaded another py4web and reinstalled it but still after registration I cant login. No error messages shown at all. It behaves as if its going to refresh but returns

Re: [web2py] pyweb login

2020-03-07 Thread Maurice Waka
.0.0.1) 14.35ms WARNING:tornado.access:403 GET /_dashboard/apps (127.0.0.1) 1.72ms WARNING:tornado.access:403 GET /_dashboard/tickets (127.0.0.1) 1.31ms WARNING:tornado.access:403 GET /_dashboard/routes (127.0.0.1) 1.32ms On Thu, Mar 5, 2020 at 4:57 AM Maurice Waka wrote: > Hello > I recently logged ou

Re: [web2py] pyweb login

2020-03-07 Thread Maurice Waka
Saturday, March 7, 2020 at 6:55:16 AM UTC-6, AGRogers wrote: >> >> Maybe reinstall python as well? >> >> On Sat, 7 Mar 2020, 22:26 Maurice Waka, wrote: >> >>> See attached, nothing shows that is installed yet. >>> Regards >>> >

Re: [web2py] pyweb login

2020-03-07 Thread Maurice Waka
WOW, WOW! It's a problem with opera. I'm using version Version:67.0.3575.53. Everything works well on google chrome but not opera. How can I solve this ? Regards On Sat, Mar 7, 2020 at 6:33 PM Maurice Waka wrote: > Hi. > This doesn't help > Thanks > > On Sat

Re: [web2py] pyweb login

2020-03-08 Thread Maurice Waka
It did not work @Val K On Sat, Mar 7, 2020 at 7:10 PM Val K wrote: > Try open console ctrl-shift-j then network the disable cache and reload > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.goo

Re: [web2py] pyweb login

2020-03-09 Thread Maurice Waka
Hi Jim I havent done anything yet in coding. I just removed all apps, downloaded the py4web but the above errors come with opera browser. Regards On Mon, Mar 9, 2020 at 2:25 AM Jim S wrote: > Maybe show the code? The more code you show the more we can help. > > -Jim > > On Sunday, March 8, 2020

[web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Hello, I'm trying to customize the SQLFORM to look like textarea/inputwith text area floating left and submit button to the right and not bottom. I'm using the LOAD signature. I also want to hide the filed name (labelled as Questions see attached). Currently with this code, I cant hide the

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
> El mié., 18 de mar. de 2020 a la(s) 09:51, Maurice Waka ( > mauricew...@gmail.com) escribió: > >> Hello, >> >> I'm trying to customize the SQLFORM to look like textarea/inputwith >> text area floating left and submit button to the right and not bot

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
}}{{=form.custom.submit}} > {{=form.custom.end}} > > El mié., 18 de mar. de 2020 a la(s) 10:09, Maurice Waka ( > mauricew...@gmail.com) escribió: > >> Thanks. >> I put the code in the model.py code. It works. >> >> How about float button to right? >> >> Regards >&

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
2, label=T('questions'),widget=widget(_placeholder='Type your question here',)), auth.signature ) On Wed, Mar 18, 2020 at 4:22 PM Maurice Waka wrote: > I'm getting a none value. See attached. > > On Wed, Mar 18, 2020 at 4:14 PM Javi

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
I got something but still not working: buttons = [INPUT(_type="submit"),INPUT(_type="button",_onclick="history.go(-1);return False")] On Wed, Mar 18, 2020 at 4:24 PM Maurice Waka wrote: > This is my code in the model.py > > db.define_table('posts&#x

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Thanks. This worked: {{=form.custom.begin}} {{=form.custom.widget.message}} {{=form.custom.submit}} {{=form.custom.end}} On Wed, Mar 18, 2020 at 4:40 PM Javier Pepe wrote: > Change > > db.posts.question by db.posts.message > > El mié., 18 de mar. de 2020 a la(s) 10:2

[web2py] sticky footer:How to make it stick

2020-03-18 Thread Maurice Waka
I have used this example and noticed that with more items submitted, the textarea keeps moving down. How can I keep it sticky at the bottom of the page as the items scroll with more submissions. This is my code. {{for

Re: [web2py] sticky footer:How to make it stick

2020-03-18 Thread Maurice Waka
I found something promising here <https://jsfiddle.net/L56wxhqm/678/>. On Wed, Mar 18, 2020 at 7:48 PM Maurice Waka wrote: > I have used this > <http://web2py.com/books/default/chapter/29/12/components-and-plugins#LOAD> > example and noticed that with more items submitte

Re: [web2py] sticky footer:How to make it stick

2020-03-18 Thread Maurice Waka
}} {{=post.created_by}} > says {{=post.message}} > > > > > > > {{for reply in replies:}} > > On {{=reply.created_on}} {{=reply.created_by}} > says {{=reply.message}} > >

[web2py] web2py LOAD on localhost vs pythonanywhere

2020-03-21 Thread Maurice Waka
I have this code on both local host and pythonanywhere test page. {{if post.message:}} {{=post.created_on}} {{=post.message}} {{else:}} {{pass}}

[web2py] SQLFORM button position

2020-03-22 Thread Maurice Waka
I came across this code model: def widget(**kwargs): return lambda field, value, kwargs=kwargs: SQLFORM.widgets[field.type]. widget(field, value, **kwargs) db.define_table('posting', Field('author', 'reference auth_user', default=auth.user_id, writable=False, readable=False

Re: [web2py] SQLFORM button position

2020-03-23 Thread Maurice Waka
Solution found. Regards On Mon, Mar 23, 2020, 01:38 Maurice Waka wrote: > I came across this code > > model: > > def widget(**kwargs): > return lambda field, value, kwargs=kwargs: SQLFORM.widgets[field.type > ].widget(field, value, **kwargs) > >

[web2py] How do I use LOAD Helper

2020-03-29 Thread Maurice Waka
I would like to know more about how one can use LOAD () on dB insert. Supposing two users are connected to the db, then one of the users posts/inserted an item to the db. How will the secondbusers' page load using LOAD without the second user having clicked or submitted, and sees the last inserte

[web2py] jQuery not working with web2py

2020-03-31 Thread Maurice Waka
I have this code below that works well on the demo site: http://jsfiddle.net/Lhg914dc/ {{extend 'layout.html'}} /*QuickReset*/ *{margin:0;box-sizing:border-box;} html,body{height:100%;font:14px/1.4 sans -serif;} article { height: 150vh; } WELCOME (waits 3 sec) {{=me}}

[web2py] Re: jQuery not working with web2py

2020-04-01 Thread Maurice Waka
o("#contact", 3500); }); // Alternatively, without using callbacks you can do // goTo("#testimonials", 3000); // goTo("#contact", 6000); // Reuse function for elements click! $("[href^='#']").on("click", function(e) { e.preventDefau

Re: [web2py] Re: jQuery not working with web2py

2020-04-01 Thread Maurice Waka
eeing in your browser console? > > -Jim > > > On Wednesday, April 1, 2020 at 4:56:07 PM UTC-5, Maurice Waka wrote: >> >> Any help on this? >> I can't get the code to work with jQuery >> >> {{extend 'layout.html'}} >> >> >> &g

Re: [web2py] Re: jQuery not working with web2py

2020-04-01 Thread Maurice Waka
> But have you looked at the browser JavaScript console to see what it is > telling you? > > In Firefox press F12 and then click on the console tab. That will tell you > what JavaScript errors are occurring in the browser. > > Jim > > > On Wed, Apr 1, 2020, 9:35 PM

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Maurice Waka
grate with web2py. Create one html file >>> with the code you need, get that working and then take what you learned >>> there and pull it in to your web2py application. >>> >>> Does that make sense? >>> >>> -Jim >>> >>>

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Maurice Waka
Thanks team. Take care Regards On Thu, Apr 2, 2020, 19:59 Maurice Waka wrote: > My biggest apology. > > I edited a wrong html file (the one outside web2py) by removing the > {{extend 'layout.html'}} > > So with the right file edited, it now works. > &

[web2py] SQLFORM CSS DESIGN

2020-04-04 Thread Maurice Waka
I'm trying to get some better looking form for my app. I tried the method below to change the color and size of border among others but it does not work. form=SQLFORM(db.posting) form['_style']='border:2px solid black' How can I manage this? I also want to have a label, and a button* inside *th

[web2py] Re: SQLFORM CSS DESIGN

2020-04-05 Thread Maurice Waka
I just got an answer to this. Regards On Saturday, April 4, 2020 at 7:10:57 PM UTC+3, Maurice Waka wrote: > > I'm trying to get some better looking form for my app. > I tried the method below to change the color and size of border among > others but it does not work. > >

[web2py] web2py_ckeditor4 error in view

2020-04-08 Thread Maurice Waka
I followed this example which worked perfectly well a day ago. I used the LOAD helper for the views. But when trying to view data from the db I keep getting this error: Traceback (most recent call last): File "/home/maurice/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, e

[web2py] Android and ios aops

2020-04-24 Thread Maurice Waka
Just following on this discussion : "Can we use a web2py app on Android mobile? - Google Groups" https://groups.google.com/forum/m/#!topic/web2py/1ZxFEB5j4XA Anyone who has latest information on creating a download able app? -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Prevent submit of empty value

2020-04-24 Thread Maurice Waka
Hello. I have this in one of my pages {{=BEAUTIFY(request.vars)}} Every time there is a reload esp. using LOAD () Helper I get a blank or none submit value on the page. How can I prevent this on the html side? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Mobile menu for login not active

2020-04-25 Thread Maurice Waka
Hello I know guys have busy schedules but please help here On my mobile app, I have trouble logging out when using the menu option since the logout, profile, password options are inactive. How can I activate them or the sub-menus? Only the highlighted menu is active See attached. Regards -- R

[web2py] Re: Prevent submit of empty value

2020-04-25 Thread Maurice Waka
I opted to use this option/iteration instead {{=BEAUTIFY(request.vars.message if request.vars.message else 'loggin in...')}} Kind of works for me On Saturday, April 25, 2020 at 8:14:05 AM UTC+3, Maurice Waka wrote: > > Hello. > I have this in one of my pages > >

[web2py] Re: Mobile menu for login not active

2020-04-26 Thread Maurice Waka
7;), []), (T('Notifications'), False, URL('que_forum', 'noti'), [])] if auth.has_membership('user_7'): response.menu.append((T('Admin Space'),False,None,[ (T('Manage Users'), False, URL('que_forum', 'manage'), [])]))

[web2py] web2py and ubuntu 20lts

2020-04-30 Thread Maurice Waka
I recently moved to ubuntu 20LTS and on login to web2py I get this error: Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Traceback (most recent call last): File "/home/maurice/web2py/gluon/main.py", line 440, in wsgibase serve_controller(request, response, session) File "/home/m

Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Maurice Waka
iling it with python 3.x. >>> >>> Does this solve the problem? >>> >>> Regards >>> Clemens >>> >>> On Friday, May 1, 2020 at 7:24:34 AM UTC+2, Maurice Waka wrote: >>>> >>>> I recently moved to ubuntu 20LTS and on l

[web2py] login after period of inactivity

2020-05-05 Thread Maurice Waka
I notice this message after a period of inactivity. See attached. The problem is that on clicking on the login link on the app on pythonanywhere, I get an error: invalid view (default/user/load). How can I resolve this? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Document

Re: [web2py] Re: login after period of inactivity

2020-05-05 Thread Maurice Waka
- routers = { app: dict( default_language=possible_languages['default'][0], languages=[lang for lang in possible_languages if lang != 'default'] ) } On Tue, May 5, 2020 at 11:09 PM Jim S wrote: > Can you show some code? > > -Jim &g

Re: [web2py] Re: login after period of inactivity

2020-05-05 Thread Maurice Waka
='not-authorized alert alert-block') On Tue, May 5, 2020 at 11:09 PM Jim S wrote: > Can you show some code? > > -Jim > > On Tuesday, May 5, 2020 at 1:38:29 PM UTC-5, Maurice Waka wrote: >> >> I notice this message after a period of inactivity. See attached. &

Re: [web2py] Re: login after period of inactivity

2020-05-06 Thread Maurice Waka
;,record_id) > to decorate functions that need access control > """ > > So I was thinking you had put something custom in there. > > Are you able to force it to happen by setting your > auth.settings.expiration to a low number of seconds? > > -Jim > &

Re: [web2py] Re: login after period of inactivity

2020-05-08 Thread Maurice Waka
4:08 AM Jim Steil wrote: > Can you share the code for the user function in default.py? > > How do you know that the session timed out? > > Jim > > > On Wed, May 6, 2020, 5:58 PM Maurice Waka wrote: > >> After clicking the login, that's when the error comes in

[web2py] web2py read from .npy file

2020-05-17 Thread Maurice Waka
I'm trying to read a list from a .npy file. The content in text.npy fileis a list. content = open(os.path.join(current.request.folder, 'modules', 'text.npy'), 'rb').read() arr = np.array(list(content)) it=iter(arr) i = 0 for i in range(len(arr)): return arr I got this error: TypeError: it

Re: [web2py] web2py read from .npy file

2020-05-18 Thread Maurice Waka
I got the answer to this. I had imported a wrong file. Regards On Sun, May 17, 2020, 10:40 Maurice Waka wrote: > I'm trying to read a list from a .npy file. The content in text.npy fileis > a list. > > > > content = open(os.path.join(current.request.folder, 'modules&

[web2py] passing value from select/option to div and controller

2020-05-23 Thread Maurice Waka
I'm able to pass a value from the select/option to div but I can't seem to get a way of sending the same value to controller(then database). I have tried different AJAX methods but they seem not to pass the variables to controller. How do I get it to be done? So far this is my code: def insert_

[web2py] js array post to controller gives None value

2020-05-30 Thread Maurice Waka
I'm getting a 'None' value when posting an array to controller (array posted db). What could I be doing wrong? Here is my code Yes No function myFunction();{ var result = ["bat", "cat", "dog", "sun", "hut", "run"]; ajax('{{=URL('chat', 'synchptoms')}}' +

[web2py] Re: js array post to controller gives None value

2020-05-31 Thread Maurice Waka
After removing the .. onclick='myFunction()';, it now works well On Saturday, May 30, 2020 at 10:21:04 AM UTC+3, Maurice Waka wrote: > > I'm getting a 'None' value when posting an array to controller (array > posted db). What could I be doing wrong? > He

[web2py] how do I read localstorage data stored in database

2020-06-07 Thread Maurice Waka
with this code: js(view) $('#timed').change(function(){ arr.push($(this).val()); var arrayJSON = JSON.stringify(arr); localStorage.setItem("tabledata",arrayJSON); controller value =request.vars.json if valued: db.post.insert(message=value) My data is stored as

[web2py] how do i escape some characters when saving to db

2020-07-12 Thread Maurice Waka
I have some strings in *request.vars* that I'm trying to save to db. An example is this : ["sure","iii!@#$%^&*()_"]. These strings/lists come from users in an natural language processing (NLP) app being used. For example in medical language a bone fracture represented as '#' instead of the who

Re: [web2py] how do i escape some characters when saving to db

2020-07-12 Thread Maurice Waka
string > > Then in the view to see the values not encoded use: {{=XML(value)}} > > Maybe helps > > Cheers. > > El El dom, 12 de jul. de 2020 a la(s) 10:53, Maurice Waka < > mauri...@gmail.com > escribió: > >> I have some strings in *request.vars* that I

[web2py] Error running WSGI application-Pythonanywhere

2020-11-22 Thread Maurice Waka
I noticed that my pages reutrned an error: "404 NOT FOUND" The error log gives this messages: Error running WSGI application 2020-11-22 11:12:15,623: ModuleNotFoundError: No module named 'fileutils' 2020-11-22 11:12:15,630: File "/var/www/www_hest_com_wsgi.py", line 8, i

Re: [web2py] Error running WSGI application-Pythonanywhere

2020-11-22 Thread Maurice Waka
I removed the routes.py file and able to access the error messages. A file was missing prompting the error above. Closed. On Sun, Nov 22, 2020, 17:46 Maurice Waka wrote: > I noticed that my pages reutrned an error: "404 NOT FOUND" > > The error log

[web2py] Insert image to section options

2020-12-11 Thread Maurice Waka
I need to add some features into the options in the view sections including images or videos. I did this code below but the images are not showing. Boat when using a web link e.g. 'https/www...link-to-image.com', this appears buy my images are in the static/images folder. Pleas

[web2py] Re: Insert image to section options

2020-12-11 Thread Maurice Waka
at 1:24:49 PM UTC+3 Maurice Waka wrote: > I need to add some features into the options in the view sections > including images or videos. > > I did this code below but the images are not showing. > > style="background-color: white;height: 160px;width: 800px;"> >

[web2py] Selecting payment method

2020-12-22 Thread Maurice Waka
I worked on a way to pay through various methods. It involves a user selecting the appropriate method he/she likes or wants to use. This is the code: #Controller form = SQLFORM(Pending, formstyle="divs", submit_button='Subscribe'), if form.process().accepted: session.pending = form.v

[web2py] Re: Selecting payment method

2020-12-23 Thread Maurice Waka
I had to separate the payment methods to different pages than all in one. So a user selects a button and gets redirected to the subsequent subscription type. Previously i handled all payments in one function def pay(): subscr_one ...process subscr_one subscr_three ...process sub

[web2py] Title or capitalize names

2021-01-28 Thread Maurice Waka
Hello, How do i use title() or capitalize() on these: {{"%(first_name)s %(last_name)s (%(nickname)s)" % post.author}} I tried e.g. %(first_name.title())s %(first_name).title()s None working Please help -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

Re: [web2py] Title or capitalize names

2021-01-28 Thread Maurice Waka
Cool. That actually works! Regards On Thu, Jan 28, 2021, 17:25 Massimiliano wrote: > {{ post.author.first_name.title() }} ... etc.. > should work > > Il giorno gio 28 gen 2021 alle ore 14:05 Maurice Waka < > mauricew...@gmail.com> ha scritto: > >> Hello, >>

Re: [web2py] Custom information page after registration and hide field

2021-01-30 Thread Maurice Waka
I thought I must have seen an example of the same from github or Web2py examples. Regards On Sun, Jan 31, 2021, 02:47 'brushek' via web2py-users < web2py@googlegroups.com> wrote: > > Hello, > > I have two problems to solve, I think they are simple, but couldn't find > proper solution in docs. > >

Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread Maurice Waka
If its about QR codes, these are what I mean't: http://www.web2pyslices.com/slice/show/1462/qr-code-builder-with-web2py https://github.com/minlaxz/python-qr https://github.com/laconic75/QR-Inventory On Sun, Jan 31, 2021 at 4:50 PM 'brushek' via web2py-users < web2py@googlegroups.com> wrote: > OK

[web2py] How do I correct this error: AttributeError: 'NoneType' object has no attribute 'id'

2021-05-14 Thread Maurice Waka
I have a small code with this: db.define_table('book', Field('name',requires = IS_NOT_EMPTY()), Field('category', requires = IS_IN_SET(['Politics','Finance','Fiction','Wellness']), default = 'Poli

[web2py] Re: How do I correct this error: AttributeError: 'NoneType' object has no attribute 'id'

2021-05-14 Thread Maurice Waka
Seems to work after restarting the system On Friday, May 14, 2021 at 3:49:41 PM UTC+3 Maurice Waka wrote: > I have a small code with this: > > db.define_table('book', > Field('name',requires = IS_NOT_EMPTY()), &

Re: [web2py] Web2py and database integration

2021-05-16 Thread Maurice Waka
Your connection string... db_hivetu But your table is declared with db.define_tablenot db_hivetu.define_yable On Sun, May 16, 2021, 4:11 PM F.C. wrote: > # -*- coding: utf-8 -*- > > # - > # AppConfig configuration made

[web2py] Trying out this PosOnlineStore app

2021-05-18 Thread Maurice Waka
I know this app was designed some time ago, I have two issues I need help on. 1. I tried it out this app using python3.6 but got this error when using the 'buy' function: File "/home/maurice/web2py/applications/PosOnl

[web2py] ckEditor works well on local host but not on pythonanywhere

2021-06-05 Thread Maurice Waka
I have this code that works well on localhost. from plugin_ckeditor import CKEditor ckeditor.define_tables() track_changes(True) db = DAL( "postgres://mauricewaka:b3t1232a##@localhost:5432/wakadb")#, migrate=False) auth = Auth(db, hmac_key=Auth.get_or_create_key()) auth.define_tables(username=T

[web2py] Re: ckEditor works well on local host but not on pythonanywhere

2021-06-07 Thread Maurice Waka
I noted that it was a browser compatibility issue. Works well on chrome but not on opera. Regards On Saturday, June 5, 2021 at 1:58:26 PM UTC+3 Maurice Waka wrote: > I have this code that works well on localhost. > > from plugin_ckeditor import CKEditor > ckeditor.define_tables() >

[web2py] video app

2021-12-07 Thread Maurice Waka
Hello. Anyone who has a zoom/airmeet app like application / any leads on a such an app using web2py/p4web? Regards -- 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 Is

[web2py] Estore Error with stripe

2022-01-02 Thread Maurice Waka
Hello I got this error when trying out the Estore app. File "/home/maurice/web2py/applications/EStore/controllers/default.py" , line 157, in pay description="Purchase".encode('utf-8') File "/home/maurice/web2py/gluon/contrib/

Re: [web2py] Upgrading to a higher version of web2py through the admin interface

2022-01-18 Thread Maurice Waka
I also use pythonannywhere and regularly upgrade with no issues. If being cautious, just backup then upgrade. On Wed, Jan 12, 2022, 11:30 AM mostwanted wrote: > Hi guys, is it safe to upgrade my version of web2py through the admin > interface? Has anyone tried it & did it work? > > I have an opp

[web2py] STYLE an animated GIF/Spinner

2022-02-24 Thread Maurice Waka
Hello, If this below is the code, how do you style it that the "fa fa-spinner" animation appears like in a DIV? {{loadmsg = CAT("loading ...", BR(), SPAN(_class="fa fa-spinner fa-spin"))}} {{=LOAD(c='myhosts', f='myhosts2.load', target='my_hosts', content=loadmsg, ajax=True)}} I've tried this b

[web2py] Response flash message after email sent not working

2022-03-04 Thread Maurice Waka
We have this user function, and when a user requests for password retrieval. I would like to have a flash message displayed once the link is sent to user email. So far the mail,successfully sends but how will the user know without the flash display message? The code below doesn't seem to work. d

Re: [web2py] Does anyone have a stripe connect demo or example for web2py?

2022-04-03 Thread Maurice Waka
There is an example with e-store somewhere in Github.com... On Sat, Apr 2, 2022, 9:29 AM Andrew E. wrote: > Hello, I am looking to see if anyone has an example of using the stripe > connect api with a Web2py project and can share it. I might be asking for > to much but I thought I would try my l

[web2py] Use of .npz files vs DB

2022-04-30 Thread Maurice Waka
Anyone with experience using large .npz files? I find it to slow the app when calling out functions that access the (lists inside) npz files. Would storing the lists in the DB be faster? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

Re: [web2py] Use of .npz files vs DB

2022-04-30 Thread Maurice Waka
I use it like this: import numpy as np data = np.load(os.path.join(current.request.folder, 'modules', 'test_me.npz'), allow_pickle=True ) moa = data['x'] arr = np.asarray(moa) for item in arr: .. This I find it to be slow On Sat, Apr 30, 2022 at 12:06 PM

Re: [web2py] Use of .npz files vs DB

2022-05-05 Thread Maurice Waka
#x27;x'] >> arr = np.asarray(moa) >> for item in arr: >> .. >> >> >> This I find it to be slow >> >> On Sat, Apr 30, 2022 at 12:06 PM Maurice Waka wrote: >> >>> Anyone with experience using large .npz files? >>

Re: [web2py] Recommended python version for web2py-2.22.5(latest)

2022-06-09 Thread Maurice Waka
I use python 3:10.Nothing much apart from e.g. print being a function. On Thu, Jun 9, 2022, 11:47 AM Gaurav Vichare wrote: > I am upgrading web2py 2.14.6 running on python 2.7 to latest web2py > 2.22.5. May I know which python 3 version should i go with? Can I use > python 3.10? > > Thank You >

<    1   2   3   4