[web2py] Re: PY4WEB request.vars error

2020-02-24 Thread Ruslan Gareev
Hi! Now in py4web it will be (if POST vars): request.forms.message or request.POST.message or if GET vars: request.query.message or request.GET.message понедельник, 24 февраля 2020 г., 20:11:02 UTC+5 пользователь Maurice Waka написал: > > Hi > I can't make a head or tail out of this. > What

[web2py] Re: p4web auth issues

2020-02-23 Thread Ruslan Gareev
Hi! Looks like no import of auth воскресенье, 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+'.'+' Thank you for > signing in with us

[web2py] Re: How do you update a deployed app?

2019-11-28 Thread Ruslan Gareev
Hello. If you make migrate=False in appconfig.ini it will not make any migrations. пятница, 29 ноября 2019 г., 2:07:56 UTC+5 пользователь Guilherme Botelho написал: > > I have an app which is currently running on Pythonanywhere, and would like > to know if there is an easy way to update it with

[web2py] Re: Filter table by headers

2019-11-28 Thread Ruslan Gareev
Hi! Maybe using Datables will feet your request. пятница, 29 ноября 2019 г., 2:07:55 UTC+5 пользователь Josh B написал: > > Hi, > > Does anyone know how to add filters to table headers (so that the user can > filter a table using table data from each column)? > > I'm str

[web2py] Re: How do I display uploaded images from uploads folder

2019-11-11 Thread Ruslan Gareev
Hi, looks like your request.args(0) is empty. понедельник, 11 ноября 2019 г., 15:37:31 UTC+5 пользователь Maurice Waka написал: > > I'm trying to retrieve an uploaded image from the uploads folder using > this >

[web2py] Re: Example in Celery for scheduling in py4web ?

2019-11-06 Thread Ruslan Gareev
2019 г., 18:19:44 UTC+5 пользователь Marcelo Huerta написал: > > El miércoles, 6 de noviembre de 2019, 1:59:06 (UTC-3), Ruslan Gareev > escribió: >> >> Hello. You can google something like: "python celery queue". :) >> > > Har har. I wanted an example sp

[web2py] Re: Example in Celery for scheduling in py4web ?

2019-11-05 Thread Ruslan Gareev
Hello. You can google something like: "python redis queue". :) вторник, 5 ноября 2019 г., 18:37:08 UTC+5 пользователь Marcelo Huerta написал: > > El jueves, 31 de octubre de 2019, 0:23:30 (UTC-3), Massimo Di Pierro > escribió: >> >> No. The fact is, it does not need it. py4web is does not have t

[web2py] Re: Redirect to different pages depending on memebership

2019-10-30 Thread Ruslan Gareev
я 2019 г., 8:57:39 UTC+5 пользователь Cristina Sig написал: > > I tried your suggestion but it doesn't work. > It keeps loading the index page and doesn't allow me to see the login page. > > > El miércoles, 30 de octubre de 2019, 23:15:37 (UTC-3), Ruslan Gareev > es

[web2py] Re: Azure Connection

2019-10-30 Thread Ruslan Gareev
Hello. Did you tried to connect with other tools like Pycharm DB connector or something else? Maybe there is Asure issue, not only from your code. среда, 30 октября 2019 г., 4:58:00 UTC+5 пользователь Mark Billion написал: > > So, my connection string is: db = DAL('mysql:// > user:p...@my-server.

[web2py] Re: Redirect to different pages depending on memebership

2019-10-30 Thread Ruslan Gareev
Hi, try: @auth.requires(lambda: check_membership()) def index(): ...your code... четверг, 31 октября 2019 г., 5:51:34 UTC+5 пользователь Cristina Sig написал: > > Hi everyone, > > I have two different memberships. One is 'Admin' and the other one is > 'Schools' and what I want to do is red

[web2py] Re: Sessions and Ajax / Load

2019-10-25 Thread Ruslan Gareev
In models: current.session = session In your component: from gluon import current def your_function(): session = current.session пятница, 25 октября 2019 г., 16:34:49 UTC+5 пользователь Philip Kilner написал: > > Hi. > > I am using sessions and Ajax (via web2py's LOAD), and finding that

[web2py] Re: About mail and auth

2019-10-24 Thread Ruslan Gareev
By default, emails must be delivered. If user had not received your email - it is an abnormal situation. So you can implement your own logic to handle this situation. Usually, nobody cares :) среда, 23 октября 2019 г., 22:22:12 UTC+5 пользователь Константин Комков написал: > > Maybe there are a

[web2py] Re: custom autocomplete fields and style

2019-10-23 Thread Ruslan Gareev
Hi, you can use `Selectable` jquery plugin for it. среда, 23 октября 2019 г., 5:30:56 UTC+5 пользователь Patito Feo написал: > > Hi, > > Is it possible to show an array of fields in the autocomplete like "field1 > - field2" ? > How can i stylish the dropdown options, backgroup colors, z-indez,

[web2py] Re: About mail and auth

2019-10-23 Thread Ruslan Gareev
Hi, i think that you need to leave info explanating that if user had not get email, must write issue to admin :) среда, 23 октября 2019 г., 17:13:32 UTC+5 пользователь Константин Комков написал: > > Hello! I have registration form with email verification (see picture). > When user push on regis

Re: [web2py] How to insert/pass image to view using js

2019-10-23 Thread Ruslan Gareev
Hi Maurice! Improving Dave's answer, you can make in your controller function: imgs = [IMG(_src=URL('path', 'to/your/image'), _style="your style")) среда, 23 октября 2019 г., 2:37:51 UTC+5 пользователь Dave S написал: > > > > On Tuesday, Octo

[web2py] Re: Setting a pre-authenticated user (no password in auth db) as "logged in" for web2py app

2019-10-22 Thread Ruslan Gareev
; David > > On Tuesday, October 22, 2019 at 9:59:19 AM UTC+2, Ruslan Gareev wrote: >> >> Hi. How did you used login_user method? Is it was like this: >> auth.login_user(user) >> ? >> >> >> пятница, 18 октября 2019 г., 18:34:31 UTC+5 пользователь David

Re: [web2py] How to insert/pass image to view using js

2019-10-22 Thread Ruslan Gareev
try: controller function(): imgs = [''] суббота, 19 октября 2019 г., 19:43:39 UTC+5 пользователь Maurice Waka написал: > > Hello > I need to pass the image link from the controller to js > controller function(): > imgs = [" style=\"max-height='100px';border-radius:7px;\"/>"] > > view pa

[web2py] Re: Setting a pre-authenticated user (no password in auth db) as "logged in" for web2py app

2019-10-22 Thread Ruslan Gareev
login window instead of skipping it as I would like. > When I use the "login_bare" method, it does not display the login window. > > Thanks you for you time, > On Thursday, October 17, 2019 at 4:59:54 PM UTC+2, Ruslan Gareev wrote: >> >> Hi, i think that a "login_user&q

[web2py] Re: Setting a pre-authenticated user (no password in auth db) as "logged in" for web2py app

2019-10-17 Thread Ruslan Gareev
Hi, i think that a "login_user" method in AuthApi meets your reqests. четверг, 17 октября 2019 г., 13:33:43 UTC+5 пользователь Davidiam написал: > > Hello, > > We pre-authenticate users outside of web2py via SAML and the user lands on > a page where he can choose from a list of applications. > Wh

[web2py] Re: How to easily implement another CSS-Framework

2019-10-11 Thread Ruslan Gareev
Hi. Yes, you can delete files. For me it's normal and i use that way in my projects. пятница, 11 октября 2019 г., 10:38:52 UTC+5 пользователь Jay B написал: > > Hello guys, > > I'm trying to figure out how to include another CSS framework instead of > bootstrap. But the fact that the layout.html

[web2py] Re: How to use T in layout.html in Py4web?

2019-10-11 Thread Ruslan Gareev
> def index(): > return dict(T=T) > > now index.html can see and use T > > > > > > > > On Monday, 7 October 2019 06:06:40 UTC-7, Ruslan Gareev wrote: >> >> Using T in Layout.html is make me to copy-paste code from common.py to >> layout.html >

[web2py] How to use T in layout.html in Py4web?

2019-10-07 Thread Ruslan Gareev
Using T in Layout.html is make me to copy-paste code from common.py to layout.html [[from py4web import Translator]] [[from ..settings import T_FOLDER]] [[T = Translator(T_FOLDER)]] some code ... [[=T('Sign in')]] ... How to make that no repeat code? -- Resources: - http://web2py.com - h

[web2py] Re: How to use scheduler in modules ?

2019-10-04 Thread Ruslan Gareev
Hi. It is not necessary to have task_add in same file, where scheduler initialiazed. Your solution with "current" is right. четверг, 3 октября 2019 г., 16:15:41 UTC+5 пользователь Ramos написал: > > But if i do > scheduler.queue_task(task_add, pvars=dict(a=1, b=2)) > task_add must reside in the s

Re: [web2py] Write Inline query

2019-06-26 Thread Ruslan Gareev
Hi. This should be in documentation. I have spent 20 minuts to find this :) среда, 3 декабря 2014 г., 17:06:05 UTC+5 пользователь Niphlod написал: > > not_in = db(db.table2.id>0)._select(db.table2.column2) > > > query = db(~db.table1.column1.belongs(not_in)).select() > > > > On Tuesday, December 2

Re: [web2py] unicode error with postgre on 2.10.3 (with sample app)

2015-05-04 Thread Ruslan Gareev
Hi, i have the same error, when I register user with ciryllic(Russian) chars in name. My config is: PgSQL 9.3. base in UTF-8. Web2py version is 2.10.3. Ubuntu 14.04. среда, 29 апреля 2015 г., 0:31:53 UTC+5 пользователь mcm написал: > > One more check... is the encoding of the database UTF-8? >