[web2py] Re: [ISSUE] can't see db from database administration menu

2017-11-03 Thread Kirill Shatalaev
I suppose this is bug 1727 Try to update to latest dev. четверг, 2 ноября 2017 г., 3:59:32 UTC+4 пользователь Арслан Ибатуллин написал: > > Hi, i'm newbee on web-development, so if i click on every db(even in new > created app), web2py gives me

Re: [web2py] pycharm and web2py - setup project

2017-08-14 Thread Kirill Shatalaev
d *#PY-172.3317.103*, built on July 25, 2017 > JRE: 1.8.0_152-release-915-b5 amd64 > JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o > Linux 4.4.0-89-generic > > Richard > > On Mon, Aug 14, 2017 at 5:11 AM, Kirill Shatalaev <k...@zombiehost.net > > wrote: > >> R

Re: [web2py] pycharm and web2py - setup project

2017-08-14 Thread Kirill Shatalaev
Richard, how did you do that? This is my scrincast on a clean installation and without any virtual environment. Does not work. https://youtu.be/51mmwUSJ_VM пятница, 11 августа 2017 г., 17:57:46 UTC+4 пользователь Richard написал: > > Kirill, I just try to create a new project and the

Re: [web2py] pycharm and web2py - setup project

2017-08-10 Thread Kirill Shatalaev
0, 2017 at 1:20 PM, Kirill Shatalaev <k...@zombiehost.net > > wrote: > >> Just tried with python 2.7, it creates new project from scratch and >> downloads web2py automatically. Still no autocomplete and parameters. >> >> четверг, 10 августа 2017 г., 17:47:42 UTC+4

[web2py] pycharm and web2py - setup project

2017-08-08 Thread Kirill Shatalaev
Hello, I have Pycharm 2017.2 (Professional version). And autocompletion and Parameter info (ctrl+p) does not work out of the box for my project. But, when I install pyDAL package on my project interpreter options, and it starts to work (see attached screenshot). This is not the right way:

[web2py] Re: Error in appadmin (database admin) on python 3

2017-08-08 Thread Kirill Shatalaev
#1727 on web2py понедельник, 7 августа 2017 г., 18:20:30 UTC+4 пользователь Massimo Di Pierro написал: > > please open a ticket in web2py or pydal, I can fix this in either place. > > >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Error in appadmin (database admin) on python 3

2017-08-06 Thread Kirill Shatalaev
Hello, when using python3 and database admin, I got this error: name 'unicode' is not defined You need to click on any table name (for example, http://127.0.0.1:8000/mysite/appadmin/select/db?query=db.auth_user.id%3E0). I think this is python3 unicode -> str specific related trouble. --

[web2py] Re: Error with database admin and backsticks in table/field names

2016-10-12 Thread Kirill Shatalaev
> > Can you post your table declarations? Taking a quick look at the sql.log > (and I'm not a mysql user), but the index declarations look different > between Oct 06 and Oct 10: > > > # -*- coding: utf-8 -*- db.define_table('component_group', Field('name', 'string',

[web2py] Re: Error with database admin and backsticks in table/field names

2016-10-11 Thread Kirill Shatalaev
> What version of web2py is this happening on? > web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2016 Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 > Does this happen just with your app, or with the welcome app as well? > With my app. Welcome is not affected, but

[web2py] Re: Error with database admin and backsticks in table/field names

2016-10-11 Thread Kirill Shatalaev
> > > > Where do you see this? In the appadmin/select page, where queries are > entered? (the default query is db.tablename.id > 0) > > (path is https:...server/appadmin/select/db?query=db.logtable.id%3E0, > where %3E encodes '>') > > /dps > > Yes, exactly. Table header links to:

[web2py] Error with database admin and backsticks in table/field names

2016-10-11 Thread Kirill Shatalaev
Hello. Dont know why, but I see tables and fields surrounded by backsticks on appadmin. For example: `component`.`id` `component`.`name` So, when I try to sort table ckicking by field name, I get error: Traceback (most recent call last): File

[web2py] Re: crud.delete and record versioning error

2016-09-08 Thread Kirill Shatalaev
So, is CRUD going to be deprecated? вторник, 6 сентября 2016 г., 18:39:03 UTC+4 пользователь Massimo Di Pierro написал: > > please do not use crud. it has not been supported in long time. just use > db(...).delete() > > > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: crud.delete and record versioning error

2016-09-04 Thread Kirill Shatalaev
Well it seems to me del table[record_id] does not work with record versioning according to this old discussion: https://groups.google.com/d/topic/web2py/XqNkiPQq8v4/discussion So I changed in controller crud.delete to db().delete() But I think this is a bug on gluon, am I right? --

[web2py] crud.delete and record versioning error

2016-09-04 Thread Kirill Shatalaev
Hello. In my controller I have def delete_comment(): try: comment_id = int(request.args(0)) post_id = get_post_id_by_comment(comment_id) commented_post_url = get_post_url(post_id) print commented_post_url comment = get_comment(comment_id) except:

[web2py] Re: TAG helper and unnamed argument

2016-08-30 Thread Kirill Shatalaev
> > > So, @Kirill, there's no way but ending up with _pubdate='' will give you a > syntactically equivalent markup. > > >>> Well, I see now. Sleazy, but correct. Thank you. P.S. Not sure about others, but we russians have joke about man visiting doctor and "sleazy"... -- Resources: -

[web2py] TAG helper and unnamed argument

2016-08-29 Thread Kirill Shatalaev
So, how to do some like: 1 day ago I tried: TAG.time('1 day ago', _pubdate=True, _datetime=str(datetime.year) + '-' + '%02d' % datetime.month + '-' + '%02d' % datetime.day) And got: 1 day ago Here I can read: http://www.web2py.com/init/simple_examples/hello5 "attributes without

[web2py] Re: Retrieve custom form input/select value in case of errors

2016-08-25 Thread Kirill Shatalaev
It's not nice and I don't know how I can say to web2py to add the > error-wrapper after the input-group. Do you know that? > > On the controller form.accept(hideerror=True) On the view you have to display errors yourself {{if form.errors.daily_distance:}} ... write your own

[web2py] restrict direct access to .load component views views

2016-08-21 Thread Kirill Shatalaev
Hello. In the book we see: We can access it at the URL 1 http://127.0.0.1:8000/test/comments/post.load But in production I do not want user to access this directly! It must be callable only from template {{=LOAD}} How must I restrict this, by webserver (apache deny, for example) rules?

[web2py] Re: upload field and IS_IMAGE

2016-08-19 Thread Kirill Shatalaev
пятница, 19 августа 2016 г., 3:48:12 UTC+4 пользователь 黄祥 написал: > > pls try : > requires = IS_EMPTY_OR([IS_LENGTH(16384), IS_IMAGE() ] ) > > best regards, > stifan > Man, thanks!!! I completely forgot about this validator. Need to sleep more... -- Resources: - http://web2py.com -

[web2py] upload field and IS_IMAGE

2016-08-18 Thread Kirill Shatalaev
Hello. I have in model: Field('avatar', 'upload', required=False, autodelete=True, label=T('Avatar'), uploadfolder=os.path.join(request.folder, 'static/images/avatars'), requires=[IS_LENGTH(16384), IS_IMAGE()]) Well, the logic is simple: "avatar is not necessary, but when it

[web2py] Re: XML(sanitize=True) and incorrect HTML

2016-06-15 Thread Kirill Shatalaev
Opened #1363 вторник, 14 июня 2016 г., 22:25:05 UTC+4 пользователь Anthony написал: > > > Feel free to file a Github issue. > > Anthony > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] XML(sanitize=True) and incorrect HTML

2016-06-14 Thread Kirill Shatalaev
Hello. XML crashes while trying to sanitize some sorts of incorrect html. For example: a = '' # wrong html b = XML(a, sanitize=True) pop from empty list I suppose this is a severe bug. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Request Password not working correct

2016-05-07 Thread Kirill Shatalaev
Hi friend. I got same trouble. The reason is an empty translations strings. Check the strings: 'Click on the link %(link)s to reset your password' 'Password reset' The first is for message body, the second for subject. понедельник, 5 января 2015 г., 20:49:34 UTC+4 пользователь Ramashish

[web2py] Re: Strange trouble with password reset

2016-05-05 Thread Kirill Shatalaev
I've found a trouble: empty translation string. But I did not edit translations. Is it a bug? -- 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] Strange trouble with password_reset

2016-05-04 Thread Kirill Shatalaev
Hello, I'm using web2py 2.14.5-stable+timestamp.2016.04.14.03.26.16 mail = logging for testing purposes. So, controller: def user(): return dict(form=auth()) Registering new user goes as it must. Email verification (this is console output): 2016-05-05 01:21:14,601 - web2py - WARNING -

[web2py] Re: for those of us who do not understand ...

2016-03-26 Thread Kirill Shatalaev
Hello. Did you inspect it with some tool like auto css-checker? There is no font-weight:strong; font-weight:string; on css specification. And some typos четверг, 3 марта 2016 г., 11:27:57 UTC+4 пользователь Massimo Di Pierro написал: > > A damn simple and easy css framework ... stupid.css > >

[web2py] Re: using FORM with new line layout

2014-08-20 Thread Kirill Shatalaev
You are on the wrong way, if you want to do this in the *controller*. Due to MVC, you have to customize your form's appearance in your *view* понедельник, 18 августа 2014 г., 2:37:22 UTC+4 пользователь sid datta написал: HI - I wanted to customize the layout and use FORM. So a simple