[web2py] union of the records in two sets of rows not working with & operand, Pydal 17.11

2019-02-18 Thread Michael Becker
ill be another recommended way of combining rows. Many thanks in advance, Michael -- 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 m

Re: [web2py] Web2py oracle migration

2018-10-23 Thread Michael Buchler
Hmm I appear to have solved this problem by reinstalling the Web2Py Framework and creating a new Oracle account. My issue now is with the AUTH_GROUP and AUTH_EVENT tables. It gives me the strangest error whenever I try to create a new user there. On Tue, Oct 23, 2018 at 7:15 AM Michael Buchler

[web2py] Web2py oracle migration

2018-10-22 Thread Michael Buchler
tion.get('db.migrate'), check_reserved=['all']) I've also re-created the default tables in oracle. However, whenever I try something like creating an account on the default/users page, I get the following error Traceback (most recent call last): File "C:\U

[web2py] ORA-04098

2018-10-22 Thread Michael Buchler
Hi, I managed to get cx_Oracle linked up to my web2py instance, so the previous issue I posted is now resolved. However, I keep getting this error whenever I try to create an account with default/users: ORA-04098: trigger 'MADRN_MAIN.AUTH_USER_TRIGGER' is invalid and failed re-validation I'

[web2py] Deployment to Openshift dependency

2018-10-22 Thread Michael Buchler
Hi fellow coders I'm having a lot of trouble deploying my app to openshift. Every time I try, it asks for distutils. I've tried to install it, but pip can't find it anywhere. Would appreciate any help. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

Re: [web2py] Re: conditional {{include}} in view

2018-05-02 Thread Michael Dunga
wow, just what I wasl ooking for On Friday, July 8, 2011 at 7:14:48 PM UTC+3, Kernc wrote: > > OMG, setting response.view does it for me 110%! > Confident in the ease of use of web2py, I swear I tried this the very > first. Maybe I mistyped it to response.view = 'article.html' or > request.view,

[web2py] Re: Displaying Uploaded PDF Documents

2018-05-01 Thread Michael Dunga
thank you. I needed it too On Wednesday, December 15, 2010 at 9:27:58 PM UTC+3, azarkowsky wrote: > > Thanks everybody for your suggestions! I went with what Bruno > suggested and it worked like a champ! I figured I wouldn't be able > to bypass the upload security mechanism, but the uploadfol

[web2py] Buttons labels change to "Working..." when pressed

2018-04-17 Thread Michael Cowen
I am not sure if this is related to web2py or something else so I thought I would ask ... I have three buttons that I make a toggle switch through Java script. The Java script changes their class name which then lets different CSS style them. I have noticed that when I click a button, EVERY

[web2py] Re: table name created as a string in db model is not reference-able as a DB object in the controller

2018-04-16 Thread Michael Cowen
Apologies. That's pretty fundamental to how all this works. Thank you ! On Monday, April 16, 2018 at 9:53:08 AM UTC-5, Michael Cowen wrote: > > In the model file …/Models/db.py I have the following code > > > > *# Connect to a local postgres instance* > > *

[web2py] table name created as a string in db model is not reference-able as a DB object in the controller

2018-04-16 Thread Michael Cowen
In the model file …/Models/db.py I have the following code *# Connect to a local postgres instance* *db = DAL(**"postgres://user@localhost/DBName"**)* *# Create some fields* *_name * *= Field(**'name'**, * *type=**'string'**, * *length=* *'256'** )* *_author* *

[web2py] Re: web2py compatibility for python3

2018-01-30 Thread Michael M
Should this information be updated in "The Book"? On Tuesday, January 30, 2018 at 8:09:14 AM UTC-8, Anthony wrote: > > As of version 2.15, web2py does in fact support Python 3. > > On Tuesday, January 30, 2018 at 11:07:51 AM UTC-5, > narendr...@routemobile.com wrote: >> >> Hi, >> >> currently w

[web2py] How can I add a scrollbar to a web2py dropdown menu

2017-10-05 Thread Michael Dunga
In my application I have a drop-down menu consisting of the names of all countries and I have realized that menu items that fall outside of the width of the screen are not viewable -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sour

[web2py] Re: web2py admin app

2017-04-14 Thread Michael Beller
Yes - you can store sessions in a database rather than the filesystem or cookies. Here is some info: http://www.web2py.com/books/default/chapter/29/04/the-core#session On Wednesday, April 12, 2017 at 6:37:40 AM UTC-7, James Holstead wrote: > > I was testing clustering in our test environment a

[web2py] Re: CKEditor CDN

2017-04-14 Thread Michael Beller
pril 14, 2017 at 10:44:30 AM UTC-7, Alex Glaros wrote: > > It's looking better Michael but based on code example below, could you > please help with: > > 1. Remind me how to get the updated text from textarea back into the table > 2. the fromat_tags parm,, seems that purpo

[web2py] Re: CKEditor CDN

2017-04-14 Thread Michael Beller
I add this to my base template: // Replace the textarea with a CKEditor instance (replace 'content_body' with the id of your textarea) CKEDITOR.replace('content_body', { height: 500, contentsCss: '{{=URL('static','css/contract.css')}}', format_tags: 'p;h1;h2;h3;h4;div', });

[web2py] Re: Making application looks better.

2017-04-14 Thread Michael Beller
I created my own scaffold app based on the AdminLTE layout, similar to what António did in terms of layout but replaced the Welcome app. I use this for each new app instead of the Welcome app as my base app: https://github.com/mjbeller/web2py-starter On Thursday, April 13, 2017 at 3:38:52 A

[web2py] How do API keys work for authentication?

2017-02-22 Thread 'Michael Gheith' via web2py-users
Let's pretend I want to create a service like Stripe. I know that if you make a call to a web service, you provided information (your api key) in the request header. Is this what JWT is used for? What's the workflow? Are there any examples out there? Does web2py support this type of authen

Re: [web2py] Re: cannot access my app via http. only via https

2017-02-03 Thread Michael Messmer
I think its the its how the script is built out. The way this comments reads: * For the administrative interface to work, the web2py app must be mounted to and accessed through an HTTPS-enabled site. You would usually mount the app to two websites - HTTPS-disabled one for normal access, and HT

[web2py] Re: Rocket server and HTTPS

2017-02-02 Thread Michael Messmer
I dont know much about Rocket. But if you are looking to move towards nginx in the end. Have you tried any of the install scripts @ https://github.com/web2py/web2py/tree/master/scripts ? On Thursday, February 2, 2017 at 1:49:57 PM UTC-8, Dave S wrote: > > Trying to use HTTPS with the Rocket serv

[web2py] Re: Docker

2017-02-02 Thread Michael Messmer
Sweet On Thursday, February 2, 2017 at 6:30:29 AM UTC-8, mcm wrote: > > Nice! I will try to test it on AWS when time permits. > > Il giorno giovedì 2 febbraio 2017 08:58:54 UTC+1, Michael M ha scritto: >> >> Hello all, I put together a docker build: >> >>

[web2py] Docker

2017-02-01 Thread Michael M
Hello all, I put together a docker build: https://github.com/preactive/web2py-docker-centos7-nginx-uwsgi I tested it out on a CentOS7 Azure docker host image. Worked. Just FYI. ;-) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (So

[web2py] Re: Web2py Added to Vinta's Awesome-Python

2017-02-01 Thread Michael M
My change has been merged. https://github.com/vinta/awesome-python/blob/master/README.md#web-frameworks -- 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) --- Y

[web2py] Web2py Added to Vinta's Awesome-Python

2017-01-24 Thread Michael Messmer
Hello All, Just wanted to get Web2py some additional exposure out there. If y'all could thumbs up my pull request it will get added. Thanks! https://github.com/vinta/awesome-python/pull/787 Also a link to awesome-python https://github.com/vinta/awesome-python/blob/master/README.md Thanks!

[web2py] Re: DAL SQLFORM.grid sort error

2016-12-09 Thread Michael Griffiths
I had this exact error. Turned out I was setting request.vars['order'] to a value that conflicted with SQLFORM.grid. If your using the 'order' variable name - change it to something else. On Monday, September 14, 2015 at 11:10:12 PM UTC+10, Dmitri Ermolaev wrote: > > DAL error > h = CAT( >

[web2py] Re: custom forms

2016-11-08 Thread Michael Beller
The online web2py book is a great place to start: http://web2py.com/book Web2py will "automatically" generate a form (with dropdowns, radio buttons, etc.) and the form field validation based on the database model (along with the create, read, and edit forms). The forms chapter I think provides

[web2py] Re: Push Notifications

2016-11-08 Thread Michael Beller
I've been thinking about trying https://pusher.com/ On Wednesday, November 2, 2016 at 6:32:54 PM UTC-4, David wrote: > > Hello, > > My website allows users to send messages to one another; however, the only > way to see their new messages is to refresh the page. Is there any way to > notify th

Re: [web2py] Re: Detecting changes to auth_user record of logged in user.

2016-10-07 Thread Michael Ellis
Thanks, Anthony. That works nicely. On Fri, Oct 7, 2016 at 10:32 AM Anthony wrote: > Have you tried adding: > > auth.user.update(userlevel=newlevel) > > Anthony > > > On Thursday, October 6, 2016 at 6:15:02 PM UTC-4, Michael Ellis wrote: > > > I have the

[web2py] Re: Detecting changes to auth_user record of logged in user.

2016-10-07 Thread Michael Ellis
> Em quinta-feira, 6 de outubro de 2016 19:15:02 UTC-3, Michael Ellis > escreveu: >> >> >> I have the following code as a json service for changing user >> privileges. This app doesn't need the fine-grained control of Web2py RBAC >> so I've added

[web2py] Detecting changes to auth_user record of logged in user.

2016-10-06 Thread Michael Ellis
I have the following code as a json service for changing user privileges. This app doesn't need the fine-grained control of Web2py RBAC so I've added an integer userlevel field to auth_user. It mostly works as intended except when a logged in user alters her own userlevel. The change isn't

Re: [web2py] Re: Setting process title at web2py startup

2016-08-18 Thread Michael Ellis
Thanks. I'll let you know how it works out. On Thu, Aug 18, 2016 at 3:42 PM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I think what you propose should work fine. I would set cron=False btw. > > > On Wednesday, 17 August 2016 15:08:08 UTC-5, Michael El

Re: [web2py] Re: Setting process title at web2py startup

2016-08-17 Thread Michael Ellis
ose. My > guess is that you want it done at the level of the web2py server rocket. In > which case I would copy web2py.py into main.py and edit the latter. > > On Tuesday, 9 August 2016 10:48:10 UTC-5, Michael Ellis wrote: >> >> >> I'm running web2py in conjunctio

[web2py] Re: user name case sensitivity

2016-08-14 Thread Michael M
EFORE the tables are generated. If the line > occurs after the auth table is generated it has no effect. At lease this > was the case when I first ran afoul of it a year ago. > > -- Joe > > > On Tuesday, July 19, 2016 at 4:47:49 PM UTC-7, Michael Messmer wrote: >> &g

[web2py] Setting process title at web2py startup

2016-08-09 Thread Michael Ellis
I'm running web2py in conjunction with a suite of other, independent, python processes. In development I often want to 'ps' or kill the entire suite from the command line. I've found the Python setproctitle module really useful for prepending a common label to all the process titles. In each

[web2py] Re: Best way to send data from web2py client to web2py server

2016-07-21 Thread Michael Messmer
instead. On Thursday, July 21, 2016 at 5:24:38 AM UTC-7, Aydin wrote: > > Centralized DB, because to process the data on the server that is > available by a domain. The data are integers. > > On Wednesday, July 20, 2016 at 11:22:38 PM UTC-4, Michael Messmer wrote: >> >>

[web2py] Re: Best way to send data from web2py client to web2py server

2016-07-20 Thread Michael Messmer
Are you talking about High Availability? Load Balancer and Centralized DB? Why and what kind of data? On Wednesday, July 20, 2016 at 5:59:18 AM UTC-7, Aydin wrote: > > What's the best way to send data from web2py clients to a web2py server? > Especially when there are many web2py clients tha

Re: [web2py] Re: UWSGI root vs limited user.

2016-07-20 Thread Michael Messmer
Sorry for the confusion. And thanks! On Wednesday, July 20, 2016 at 8:38:38 AM UTC-7, Niphlod wrote: > > ah, ok!!! me, I'm proud of myself very little these days > > but, and it's a big butI'm totally proud of you! > > On Wednesday, July 20, 2016 at

Re: [web2py] Re: UWSGI root vs limited user.

2016-07-20 Thread Michael Messmer
I figured out my own problem. ;) Another admin didn't have to save me. Regards, *Michael B. Messmer* *UNIX OS Team - Analyst* Desk: (425) 416-8871 On Wed, Jul 20, 2016 at 7:21 AM, Niphlod wrote: > me, proud? of ? > > On Wednesday, July 20, 2016 at 8:02:55 AM UTC+2, M

[web2py] Re: UWSGI root vs limited user.

2016-07-19 Thread Michael M
ges chown u+r /opt/www-data/web2py/gluon restarted ( systemctl restart uwsgi.service ) uwsgi Loaded perfectly. Web2py now running as limited user "uwsgi" and not root!!!WOOHOO On Monday, July 18, 2016 at 4:44:57 PM UTC-7, Michael Messmer wrote: > > Environment

[web2py] Re: user name case sensitivity

2016-07-19 Thread Michael Messmer
I added it and it still didn't work. But I am using LDAP-AD login method. The method I use is: def user(): if request.args(0) == 'login' and request.post_vars.username: request.post_vars.username = request.vars.username = request.post_vars.username.upper() #or .lower() if you pref

[web2py] UWSGI root vs limited user.

2016-07-18 Thread Michael Messmer
Environment nginx & uwsgi Rhel7 web2py: Version 2.14.6-stable+timestamp.2016.05.09.19.18.48 (Running on Unknown, Python 2.7.5) --- uwsgi.ini file --- [uwsgi] master = true processes = 4 max-requests = 50 enable-threads = true chdir = /opt/www-data/web2py module = wsgihandler:application plugin

[web2py] Re: Bootstrap datepicker plugin

2016-07-10 Thread Michael Beller
I'm using bootstrap-datepicker.js also with these changes, not sure it's as robust but works and I use it for multiple date formats such as this: Field('origination_date', 'date', widget=datepicker_widget(format='mm/', min_view_mode='months' ), requires=IS_DATE('%m/%Y')), # exa

[web2py] Re: save the original value of one field in another field

2016-07-10 Thread Michael Beller
For n2, you could try only updating if n2 was not empty. This is not tested but something like ... Field('n2', 'integer', compute=lambda r: r.start_number if not r.n2 else None) On Sunday, July 10, 2016 at 4:38:33 PM UTC-4, ahz...@gmail.com wrote: > > In my application a user enters a boolean

[web2py] Re: jQuery.web2py.component "Synchronous XMLHttpRequest ..." error

2016-06-30 Thread Michael Beller
y, June 29, 2016 at 1:21:31 AM UTC-4, Michael Beller wrote: > > I'm loading an edit form in a boostrap modal > using jQuery.web2py.component(). > I'm using bootstrap-datepicker.js for my date fields. > The edit form works outside the modal. > > When I load the edit for

[web2py] jQuery.web2py.component "Synchronous XMLHttpRequest ..." error

2016-06-28 Thread Michael Beller
I'm loading an edit form in a boostrap modal using jQuery.web2py.component(). I'm using bootstrap-datepicker.js for my date fields. The edit form works outside the modal. When I load the edit form inside the modal, everything works fine except for the datepicker. When I click on the text field

[web2py] Re: how to debug weasyprint error - failed to load a library: cairo / cairo-2

2016-06-15 Thread Michael Beller
th some more info if anybody in the future needs it ... https://www.pythonanywhere.com/forums/topic/4898/#id_post_21876 On Tuesday, June 14, 2016 at 3:57:34 PM UTC-7, Michael Beller wrote: > > I posted this on the pythonanywhere (PAW) forums also but I think it may > be web2py specific (or

[web2py] how to debug weasyprint error - failed to load a library: cairo / cairo-2

2016-06-14 Thread Michael Beller
I posted this on the pythonanywhere (PAW) forums also but I think it may be web2py specific (or at least specific to the PAW/web2py combination) ... I'm using weasyprint to generate a PDF. It's working on my local dev environment and my PAW personal account. On a new PAW account it fails on: f

[web2py] Re: [SOLVED] Custom form not accepted (formkey missing)

2016-05-08 Thread Michael Beller
Thanks Carlos! I just came across this and your post helped me. On Friday, March 11, 2016 at 5:09:50 AM UTC-8, Carlos Kitu wrote: > > Hi guys, I don't show up here too often because all the issues I find use > to be solved here. Good job. > > Today I was going nuts with one issue, and I would li

[web2py] Re: How to integrate SendGrid in Web2py ?

2016-04-28 Thread Michael Beller
agmail > <http://www.google.com/url?q=http%3A%2F%2Fkootenpv.github.io%2F2016-04-24-yagmail&sa=D&sntz=1&usg=AFQjCNE-lXj8-rj0yq8hNGP1EUYHH9dtgQ> > > > > > And regarding the outlook like mailbox interface as Michael mentioned, > Michael, we can simply do this. Righ

Re: [web2py] new Starter app (alternative to Welcome app)

2016-04-27 Thread Michael Beller
2016 at 6:27:14 PM UTC-5, Michael Beller wrote: >> >> Yes - thanks. I knew about that bug, just fixed it. The background and >> font were both white. Can you check now? >> >> On Mon, Apr 25, 2016 at 6:07 PM, Ron Chatterjee >> wrote: >> >>> Have y

Re: [web2py] new Starter app (alternative to Welcome app)

2016-04-25 Thread Michael Beller
n console you can choose this as starter >> >> On Friday, 25 March 2016 11:09:38 UTC+1, Ramos wrote: >>> >>> This starter is sooo cool. >>> Its was time we had something like this. >>> >>> >>> >>> 2016-03-24 19:51 GMT+00:00

[web2py] Re: Changing color of field

2016-04-21 Thread Michael Beller
There are a couple of ways to do this. I've found it easier to just add to my models rather than use javascript ... If you have a date field in your model ... Field('deadline', 'date', default=request.now + (week * 4), label=T( 'Deadline')), you can add a represent that generates a span ... d

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Michael Beller
if form.process().accepted: >> >> >> Richard >> >> On Thu, Apr 21, 2016 at 2:05 PM, Richard Vézina > > wrote: >> >>> I am not sure, but .factory() should accept readonly=True for read >>> form... >>> >>> Are you sure you ha

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Michael Beller
wrote: > > I am not sure, but .factory() should accept readonly=True for read form... > > Are you sure you have not any fields with the same name in both tables? > > On Thu, Apr 21, 2016 at 2:00 PM, Richard Vézina > wrote: > >> Michael, >> >> About display

[web2py] Re: How to integrate SendGrid in Web2py ?

2016-04-21 Thread Michael Beller
m('myweb2pyapp.com') > > If someone response to the email, how do I retrieve it? I need to log into > my sandgrid account I am guessing. Not sure why sessage.set_form is my app > name.com > > > > > On Thursday, April 21, 2016 at 2:00:00 PM UTC-4, Michael Belle

[web2py] Re: How to integrate SendGrid in Web2py ?

2016-04-21 Thread Michael Beller
Hi Ron, I'm implementing an 'outlook' like interface for some messaging at the moment which includes two way messages with attachments. The early parts are incorporated in my scaffold app at https://mjbeller.pythonanywhere.com/starter The 'outlook' like interface that you can use is included

[web2py] Re: How to integrate SendGrid in Web2py ?

2016-04-21 Thread Michael Beller
You can use the sendgrid smtp server or their api. https://sendgrid.com/blog/which-protocol-should-i-use-to-send-email-smtp-or-rest/ Here is my logic for using their api (I also use mailgun with I like also): def send_email_via_sendgrid(email_to, email_subject, email_body): # https://github.c

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Michael Beller
;email')} > > ? > > On Wed, Apr 20, 2016 at 11:43 PM, Michael Beller > wrote: > >> Thanks Richard, I should have provided more details. >> >> When I tried to create a form using SQLFORM.factory for two tables >> (including auth_user), I would get an

[web2py] Re: Not web2py related but want an advice.

2016-04-21 Thread Michael Beller
imho, taking advantage of courses in college to broaden and deepen your understanding of computer science (and areas outside computer science) is very worthwhile. it's hard to predict where your career will lead and what "web development" will be in 5, 10, 15, years and beyond. "web developmen

[web2py] Re: How to ensure each row in the db table having distinct value of a partcular field?

2016-04-20 Thread Michael Beller
unique=True assures the value is unique at the database level but does not add a form validator. In addition to unique=True, you can add a validator like this: db.person.username.requires = IS_NOT_IN_DB(db, 'person.username') from the book: http://web2py.com/books/default/chapter/29/07/form

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-20 Thread Michael Beller
y doesn't display the values from form.vars so I may just generate the form manually. On Wednesday, April 20, 2016 at 3:58:37 PM UTC-4, Richard wrote: > > Hello Michael, > > I am not sure to understand what you are trying to acheive exactly and > what is causing issue...

[web2py] Re: relation "auth_user" already exists

2016-04-20 Thread Michael Beller
It sounds like you need to update the .tables files to match your database and models. I believe you need to set both migrate=True and fake_migrate_all=True for the fake migrate to regenerate the .tables files. Here's the logic in the book: http://web2py.com/books/default/chapter/29/06/the-data

[web2py] Re: How can I pre populate a option column of a form?

2016-04-20 Thread Michael Beller
before you call SQLFORM, insert: db.pratiche.stato_pratica.default = 'aperta' On Wednesday, April 20, 2016 at 6:05:06 PM UTC-4, Andrea Marin wrote: > > Hi I have this type of form in my model file: > > db.define_table('pratiche', > Field('nome', requires=IS_NOT_EMPTY()), >

[web2py] what's the best approach for view and update forms for multiple tables?

2016-04-20 Thread Michael Beller
The approach in the book for one form for multiple tables works well for create forms: http://web2py.com/books/default/chapter/29/07/forms-and-validators#One-form-for-multiple-tables I have not found a good method for view or update forms. I have a model: db.define_table('buyer', Field('auth_u

[web2py] Placeholder in SQLFORM factory

2016-04-01 Thread Nick Michael
Hi there, I can't seem to find a way to add placeholder text using SQLFORM.factory. My table design is as follows: upload_folder = os.getcwd() + "/applications/" + request.application + "/uploads" form = SQLFORM.factory( Field('name', requires=db.user_items.name.requires), Field(

[web2py] Upload file from 'static/images' to database

2016-03-29 Thread Nick Michael
Hi, I'm having some trouble and was hoping someone could point me in the right direction. I'm creating an application which has an input form which stores to a database. One entry accepts images, but can also be left empty (by using requires IS_EMPTY_OR). I also have a placeholder image saved u

[web2py] Re: Load component in a ?

2016-03-26 Thread Michael Beller
You may be able to use jquery unwrap, wrap, or replace For example, I want to load a component and not generate the wrapping DIV so I added a unique id to the top element in my view.load file and this inline at the bottom: $("#unique-id").unwrap(); I think you may be able to use replace als

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-03-24 Thread Michael Beller
t simple sites) on GAE for free (but I don't think that supports PHP either). On Thursday, March 24, 2016 at 9:35:42 AM UTC-4, Carlos Cesar Caballero wrote: > > Hi Michael, thanks for your suggestion, pythonanywhere is really good, but > it do not meet two requirements that I n

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
dators?search=upload#SQLFORM-and-uploads On Thursday, March 24, 2016 at 3:03:41 PM UTC-4, Ron Chatterjee wrote: > > I am sorry, I was having some problem downloading the latest version so > everything is good. Quick question Michael, how does someone change the > profile picture?

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
*) *File "…\helpers\classes.py"*, *line 18*, in *__init__ > *return self.*__dict__*.*__init__*(**args*, ***kwargs > *) *TypeError*: *'NoneType' object *is not *iterable > > Using 2.13.4 (which has a flash bar rash that just don't go away). > > > &g

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
Ron Chatterjee wrote: >> >> I am looking at this link: >> >> https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. Is >> that widget/plugin that comes with that bootstrap? Michael, you familiar >> with that? >> >> It has something call dire

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
, Ron Chatterjee wrote: > I am looking at this link: > > https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. Is > that widget/plugin that comes with that bootstrap? Michael, you familiar > with that? > > It has something call direct chat. > > On Thursd

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread Michael Beller
UTC-4, Massimo Di Pierro wrote: > > I am linking this from the new examples app. I assume you will be > maintaining it. for a while. :-) > On Wednesday, 23 March 2016 19:38:22 UTC-5, Michael Beller wrote: >> >> Are you using 2.14.1 beta? >> >> I would try to get

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-03-23 Thread Michael Beller
+1 for pythonanywhere.com based in UK if that meets your non-USA requirement awesome support completely scalable runs on AWS infrastructure (they've essentially built a layer on top of AWS that's make it trivial to manage) On Tuesday, March 22, 2016 at 8:47:12 AM UTC-4, Carlos Cesar Caballero

[web2py] Re: Auth_user add username field

2016-03-23 Thread Michael Beller
m to be shown on the registration page. Any ideas? > > On Wednesday, March 23, 2016 at 5:43:14 PM UTC-7, Michael Beller wrote: >> >> no changes should be required to any controller or view. Everything is >> handled by the line: >> return dict(form=auth()) >> >&

[web2py] Re: Auth_user add username field

2016-03-23 Thread Michael Beller
:16:42 PM UTC-4, Jerry Liu wrote: > > Not sure if I understood, you mean I still have to make changes on View > and Controller, right? > because adding this line doesn't change anything on login and registration > views. > > On Wednesday, March 23, 2016 at 4:12:49 PM U

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread Michael Beller
Are you using 2.14.1 beta? I would try to get it running without changes before making changes (unless you have a need to get it running on an old version of web2py). As Massimo pointed out, it's not necessarily backward compatible but other than removing host_names (which I already did in the

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread Michael Beller
I changed auth = Auth(db, host_names=myconf.get('host.name')) to auth = Auth(db) for backwards compatibility (I think host_names will be introduced in the upcoming release) That should fix that problem. Are you having another problem? I'm actually having a problem with the old pydal in old ver

[web2py] Re: Auth_user add username field

2016-03-23 Thread Michael Beller
It's easier than that ... just change username=True in db.py, all the web2py components (e.g., log in form, auth_user table, log in menu, etc.) will now support username ... auth.define_tables(username=True, signature=True) On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote: >

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread Michael Beller
) or in models/db1.py change this response.formstyle = myconf.get('forms.formstyle') to this response.formstyle = 'bootstrap3_inline' that should work in older web2py versions On Wednesday, March 23, 2016 at 2:27:04 PM UTC-4, Ramos wrote: > > 2.12.13 > > 2016-03-23

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread Michael Beller
should probably move Starter to the stable release. On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote: > > error in login/register > [image: Imagem inline 1] > > 2016-03-23 17:07 GMT+00:00 António Ramos > >: > >> i cannot log in or register... &g

Re: [web2py] learning curve?

2016-03-23 Thread Michael Beller
Those should appear after you log in (but are hidden for guests). Were you logged in? On Wednesday, March 23, 2016 at 9:25:20 AM UTC-4, billmac...@gmail.com wrote: > > Hi Michael, > > I looked at the preview of the starter app. However I am not seeing the > dashboard icons (lik

Re: [web2py] learning curve?

2016-03-23 Thread Michael Beller
Hi Jon, I just posted my sample app, called Starter, that uses: https://almsaeedstudio.com/preview You can read about it here: https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D and download it here: https://github.com/mjbeller/web2py-starter On Monday, March 21, 2016 at 8:37:

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread Michael Beller
ednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote: >>> >>> Nice but i get an error installing it as "starter" application >>> any help ? >>> >>> [image: Imagem inline 1] >>> >>> 2016-03-23 9:40 GMT+00:00 Massimilian

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-22 Thread Michael Beller
the left and right. I did just notice the web2py user login menu doesn't render correctly on my phone so I need to fix that. On Wednesday, March 23, 2016 at 12:31:35 AM UTC-4, Richard wrote: > > Michael, > > The preview is really "fucking" nice!! > > It that

[web2py] new Starter app (alternative to Welcome app)

2016-03-22 Thread Michael Beller
I created a new 'starter' app for the types of data and process management apps I tend to build. I used https://almsaeedstudio.com/preview as the template and I'm hosting a preview at https://mjbeller.pythonanywhere.com/starter. I'd welcome any feedback but also wanted to share the code at htt

[web2py] Re: Scheduler as a service RHEL 7

2016-03-19 Thread Michael M
Sorry Dave, I know how that goes :) If you find a more elegant solution. I'm open. -- 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 me

[web2py] Re: Oracle Driver Not Available When web2py run from bash script

2016-03-19 Thread Michael M
CX_Oracle and instantclient are weird about permissions. See where they get installed on your system with command "locate" and report back the output of "ls -l" in the directory it was found in. Also run "ps -aux|grep web2py" and see who the user is running it under the different methods you e

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Michael M
tworktools,networktools Type=simple [Install] WantedBy=multi-user.target -- On Tuesday, March 15, 2016 at 4:43:23 PM UTC-7, Michael M wrote: > > I read though that a ton of times but I believe RHEL 7 retired that method > in /etc/init/ and conf files and moved to systemd and serv

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Michael M
:35:40 PM UTC-7, Michael M wrote: >> >> I'm not stuck on getting it running as a Service. >> >> Just getting it so it runs when the server is power cycled or otherwise. >> Insuring that the scheduler is running so it can do DB updates of >> flat-files th

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Michael M
I'm not stuck on getting it running as a Service. Just getting it so it runs when the server is power cycled or otherwise. Insuring that the scheduler is running so it can do DB updates of flat-files that get dumped on the box daily. On Sunday, March 13, 2016 at 7:32:47 PM UTC-7, Mich

[web2py] Re: Scheduler as a service RHEL 7

2016-03-13 Thread Michael M
uot; and "journalctl -xe" for details. On Sunday, March 13, 2016 at 7:27:30 PM UTC-7, Michael M wrote: > > [root@server~]# systemctl status web2py-scheduler.service -l > ● web2py-scheduler.service - Web2py Scheduler service >Loaded: loaded (/etc/systemd/system/web2p

[web2py] Re: Scheduler as a service RHEL 7

2016-03-13 Thread Michael M
: 13549 (python) CGroup: /system.slice/web2py-scheduler.service └─13549 /usr/bin/python /opt/www-data/web2py/web2py.py -K networktools & Mar 13 19:09:14 server systemd[1]: Starting Web2py Scheduler service. On Saturday, March 12, 2016 at 5:20:36 PM UTC-8, Michael M w

[web2py] Re: Send Mail with AppRelay Server

2016-03-13 Thread Michael Messmer
That was it. Thanks! On Sunday, March 13, 2016 at 12:09:12 AM UTC-8, Dave S wrote: > > > > On Saturday, March 12, 2016 at 2:18:38 PM UTC-8, Michael M wrote: >> >> >> Hello, I was recently instructed to use our internal apprelay server for >> sending em

[web2py] Scheduler as a service RHEL 7

2016-03-12 Thread Michael M
Currently I have "/etc/systemd/system/web2py-scheduler.service": - [Unit] Description=Web2py Scheduler service chedulerService] ExecStart= /usr/bin/python /opt/www-data/web2py/web2py.py -K networktools -Q & Restart=always KillSignal=SIGQUIT Type=notify NotifyAcces

[web2py] Send Mail with AppRelay Server

2016-03-12 Thread Michael M
Hello, I was recently instructed to use our internal apprelay server for sending email internally. But one of the quirks of the server is that is does not require username or password. how do I do I got about doing that because when I comment out in the db.py and appconf.ini the lines that

[web2py] Send Mail with AppRelay Server

2016-03-12 Thread Michael M
Hello, I was recently instructed to use our internal apprelay server for sending email internally. But one of the quirks of the server is that is does not require username or password. how do I do I got about doing that because when I comment out in the db.py and appconf.ini the lines that

[web2py] Send Mail with AppRelay Server

2016-03-12 Thread Michael M
Hello, I was recently instructed to use our internal apprelay server for sending email internally. But one of the quirks of the server is that is does not require username or password. how do I do I got about doing that because when I comment out in the db.py and appconf.ini the lines that

[web2py] Re: Duplicate entries in Auth_user DB table upon sign in

2016-02-04 Thread Michael Messmer
2.13.2-stable+timestamp.2015.12.18.11.00.46 (Running on Unknown, Python 2.7.5) On Thursday, February 4, 2016 at 7:20:06 AM UTC-8, Richard wrote: > > Hello Michael, > > Which version of web2py are you using and which version of python > interpreter?? > > Thanks > > Ric

[web2py] Re: Duplicate entries in Auth_user DB table upon sign in

2016-02-02 Thread Michael Messmer
26 January 2016 16:45:33 UTC-6, Michael M wrote: >> >> Ok, I inadvertently lied. >> >> Not everything was the same. Part of my install script is to download >> the source from the internet of web2py. >> >> I switched my DB back to SQLite and and tr

[web2py] Re: Duplicate entries in Auth_user DB table upon sign in

2016-01-26 Thread Michael M
rst_name', 'last_name', 'email','username'] I dont know what else to link to. Should I submit a bugfix on Git? On Friday, January 22, 2016 at 5:36:31 PM UTC-8, Michael M wrote: > > I just asked my guys on my DBA team to do a trace. So they ran the

  1   2   3   4   5   6   7   >