[web2py] markmin as separate package

2015-05-31 Thread Gour
Hello, for simply web sites I want to use Nikola - Python-powered static-site-generator (http://getnikola.com) which supports writing content by using many different markup languages. Yesterday, while chatting on IRC with main developer, I asked him about adding support for markin and he replied

[web2py] Re: What is Hooks in Database Administration in appadmin ?

2015-05-31 Thread 黄祥
yes, it is for database callbacks. best regards, stifan On Monday, June 1, 2015 at 5:13:46 AM UTC+7, Niphlod wrote: > > if I'm not wrong it shows database callbacks (if any are defined.) > > On Sunday, May 31, 2015 at 11:11:20 PM UTC+2, Πέτρος Χατζηλάμπρος wrote: >> >> When I go to http://localho

[web2py] Re: Syntax for exiting grid function

2015-05-31 Thread Alex Glaros
I want to return FROM the grid with a value. The way we normally do using row.id, but in this case, instead of the grid being called outside of the parent function, it is called from within the parent function. PARENT_FUNCTION(): makes call to child function that has grid. User selects

[web2py] Re: my site is broken

2015-05-31 Thread Niphlod
this can be a good poster for "why upgrade in the first place, why doing it on production without trying first on a VM, etc etc etc". Bashing "whatever" without knowing how to resolve issues afterwards hitting "next,next,next" seems a taddle bit counterproductive, if you want to learn to manage

[web2py] Re: What is Hooks in Database Administration in appadmin ?

2015-05-31 Thread Niphlod
if I'm not wrong it shows database callbacks (if any are defined.) On Sunday, May 31, 2015 at 11:11:20 PM UTC+2, Πέτρος Χατζηλάμπρος wrote: > > When I go to http://localhost:8000/[myapplication]/appadmin I see a tab > which is named Hooks. > > When I click on it it shows nothing. > > What is this

[web2py] What is Hooks in Database Administration in appadmin ?

2015-05-31 Thread Πέτρος Χατζηλάμπρος
When I go to http://localhost:8000/[myapplication]/appadmin I see a tab which is named Hooks. When I click on it it shows nothing. What is this? Is it a feature that I miss ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Fixing cursor issues in Web2Py on Google AppEngine?

2015-05-31 Thread Michael Jackson
I have a simple UI for interacting with a database set up on a Google AppEngine application using Web2Py. I'm using the default Grid builder to settings to display it. Here is my full controller function: @auth.requires_login()def managePeople(): # To hide the ID column from being seen on t

Re: [web2py] Re: web2py 2.11.2 is OUT

2015-05-31 Thread Vikash Sharma
Last time I raised this issue, I was asked to refresh chrome cache, as chrome might be using old cached data. And it worked for me. Regards, Vikash Sharma vikash0...@gmail.com On Sun, May 31, 2015 at 12:15 PM, Simon Ashley wrote: > On windows 8.1 and Chrome, I'm finding the Welcome screen badly

[web2py] Re: Syntax for exiting grid function

2015-05-31 Thread Massimo Di Pierro
I do not understand what you mean by "return to the grid with a value". Anyway, you can't because the gird urls are signed. On Sunday, 31 May 2015 08:07:37 UTC-5, Alex Glaros wrote: > > I want to send user to a child grid function to select a row value and > then return to the parent function wi

[web2py] Re: web2py 2.11.2 is OUT

2015-05-31 Thread 黄祥
sometimes i face the similar situation when accessing welcome app, either, change browser, restart web2py, or directly goes to admin page. best regards, stifan On Sunday, May 31, 2015 at 1:45:27 PM UTC+7, Simon Ashley wrote: > > On windows 8.1 and Chrome, I'm finding the Welcome screen badly for

[web2py] Re: web2py 2.11.2 is OUT

2015-05-31 Thread 黄祥
i tested using web2py source on windows 7 with python 2.78. another have face the same situation before (not the newest version). ref: https://groups.google.com/forum/#!topic/web2py/fBZN1MMEmWE best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] Re: Initialise a list integer field with zeros on GAE with 2.10.4

2015-05-31 Thread Massimo Di Pierro
No. It is not can you please open a ticket about this? On Thursday, 28 May 2015 00:16:55 UTC-5, Donald McClymont wrote: > > It seems the following field definition in a model file doesn't currently > work with GAE - however it is fine on SQLite? > > Field('questcounts','list:integer',default=[0,

[web2py] Re: web2py 2.11.2 is OUT

2015-05-31 Thread Massimo Di Pierro
What did you upgrade from? Could it be an issue with reloading the browser cache? On Sunday, 31 May 2015 01:45:27 UTC-5, Simon Ashley wrote: > > On windows 8.1 and Chrome, I'm finding the Welcome screen badly formatted > (no visible menus, unusual buttons etc). > Under Firefox and IE11. its fine

[web2py] Re: web2py 2.11.2 is OUT

2015-05-31 Thread Massimo Di Pierro
This is strange because the folder should be created by web2py. Anybody else having a similar problem? On Sunday, 31 May 2015 00:49:19 UTC-5, 黄祥 wrote: > > just tested the newest version it seems that cache folder is very > important directory (not found any explaination about this on book) > e.g

[web2py] Re: How to control authorization to REST api

2015-05-31 Thread horridohobbyist
I figured out what was wrong. It all comes down to CORS – CORS and user authentication are quite braindead (http://stackoverflow.com/questions/21850454/how-to-make-xmlhttprequest-cross-domain-withcredentials-http-authorization-cor). I decided to bypass all this CORS shit and do my own user auth

[web2py] Syntax for exiting grid function

2015-05-31 Thread Alex Glaros
I want to send user to a child grid function to select a row value and then return to the parent function with the value. Right now, I just send user to the child grid controller first from the main menu, then user clicks button in the selected row, and a redirect takes him to the parent contro

Re: [web2py] Re: many to many with SQLFORM.grid

2015-05-31 Thread Massimiliano
Sorry. What I wrote is wrong. Try this ways: def test1(): id_company = 1 m, cm = db.meeting, db.co_meet cm.ref_company.default = id_company cm.ref_company.readable = cm.ref_company.writable = False cm.ref_meeting.requires = IS_IN_DB(db, m.id ,'%(title)s') q = cm.ref_co

Re: [web2py] Re: many to many with SQLFORM.grid

2015-05-31 Thread Massimiliano
m, cm = db.meeting, db.co_meet q = m.id == cm.ref_meeting q = q & (cm.ref_company == 1) grid = SQLFORM.grid(q, field_id=m.id, fields=[m.id, m.title]) On Sun, May 31, 2015 at 4:48 AM, Ben Lawrence wrote: > Both of your answers give a grid of co_meet. > > What would the query be i