[web2py] Re: SELECT without duplicates for a specific field

2016-06-14 Thread Marlysson Silva
results = db(db.products).select(db.products.category, orderby=db.products. category.title, groupby=db.products.category) You probability forget the "s" at name of table "products" , I think it so. Em segunda-feira, 13 de junho de 2016 12:31:33 UTC-3, Gael Princivalle escreveu: > > New model: >

[web2py] Re: Unable to run web2py_no_console.exe (v2.14.6)

2016-06-14 Thread Marlysson Silva
Try to download the source version of code, there are a file .py that it's possible executable from terminal without problems , and still can to see the code of framework , the windows version just have .exe and the code (framework) stay obfuscated. Em segunda-feira, 13 de junho de 2016 17:23:

[web2py] Re: Why is this simple join not rendering?

2016-06-17 Thread Marlysson Silva
Pops up some traceback? Em sexta-feira, 17 de junho de 2016 03:56:57 UTC-3, Greenpoise escreveu: > > so I have this simple join: > > query = (db.customer.id > 0) & (db.customer_type.id > ==db.customer.customer_type) > > all_customers = db(query).select() > > return dict(all_customers = all

[web2py] Re: Indentation Error

2016-06-22 Thread Marlysson Silva
You use indentation with 4 spaces, standardizing. You use the same pattern indentation at code. Em quarta-feira, 22 de junho de 2016 02:14:35 UTC-3, ktesr...@gmail.com escreveu: > > Team, > > I keep getting Indentation error whenever i try to add code in the middle > please help how can i resol

[web2py] Re: Behave testing question

2016-06-23 Thread Marlysson Silva
OFF-TOPIC I was seeing your models and I noted that you used attributes to control hour and date of data change, don't would be better use the auth.signature ? Em quinta-feira, 23 de junho de 2016 09:50:55 UTC-3, Jeff Riley escreveu: > > Good morning everyone. This is not really a Web2py questio

[web2py] Use of REST to application

2016-06-24 Thread Marlysson Silva
Good morning. Folks, the use of decorator @request.restful() already it's enough to building the rest api? Already cover all the possibilities? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: How to check if new password is different from the actual?

2016-06-24 Thread Marlysson Silva
Yes. You can find the user logged current with : auth.user.id , and search them using the dal, i.e , db.auth_user[auth.user.id] and return the data of user, thereby verifying the field "password" ( of table ) with "form.new_pass

[web2py] Re: How to check if new password is different from the actual?

2016-06-24 Thread Marlysson Silva
Yes. You can find the user logged current with : auth.user.id , and search them using the dal, i.e , db.auth_user[auth.user.id] and return the data of user, thereby verifying the field "password" ( of table ) with "form.new_passw

[web2py] Re: A new and easier way to test your apps

2016-06-27 Thread Marlysson Silva
Cool, but I was no longer in gluon? Or it's a change? Em quarta-feira, 29 de agosto de 2012 19:49:14 UTC-3, Massimo Di Pierro escreveu: > > I think you are going to like this: > https://github.com/web2py/web2py/blob/master/gluon/contrib/webclient.py > > start web2py on port 8000. Then in a normal

[web2py] Re: update name of places and show them in google maps using web2py and python?

2016-06-27 Thread Marlysson Silva
Explain better your problem.. The names of places are in a form of google maps or in a field of your form? Em domingo, 26 de junho de 2016 08:25:40 UTC-3, Suchismita Debnath escreveu: > > how do i update name of places and show them in google maps using web2py > and python? > -- Resources: - ht

[web2py] Re: A new and easier way to test your apps

2016-06-27 Thread Marlysson Silva
More or less, Is that I saw the webclient.py at web2py documentation, and long times ago, but anyway great funcionality. Em segunda-feira, 27 de junho de 2016 14:03:08 UTC-3, Anthony escreveu: > > On Monday, June 27, 2016 at 6:59:01 AM UTC-4, Marlysson Silva wrote: >> >>

[web2py] Re: update name of places and show them in google maps using web2py and python?

2016-06-28 Thread Marlysson Silva
You have a field of form below of map of google maps, you want typing and showing at map? You could use session, "session.places" that would be a list and do type: session.place_names = [] session.place_names.append(request.vars["place_name"] and return this list, so don't would clean a list of

Re: [web2py] Re: SSL database connections

2016-06-28 Thread Marlysson Silva
To better anwers, could create a new topic with a question. But basicaly it's a list using append (add in last position) where when remove a element, just make a list.pop() , removing top element (last position added). Em terça-feira, 28 de junho de 2016 03:10:36 UTC-3, Suchismita Debnath escr

[web2py] Re: JSON / XML / other as response when raising HTTP error to restful request

2016-06-28 Thread Marlysson Silva
The web2py would use generic views depending of extension of url. Is it? Em terça-feira, 28 de junho de 2016 11:31:48 UTC-3, Joel Samuelsson escreveu: > > Hi, > > I'd like to respond with a complex data structure when raising a HTTP 409 > Conflict as response to a restful request but I can't see

[web2py] Re: accesskey for form

2016-06-30 Thread Marlysson Silva
Try use custom.form, and you add some property: form.custom.widget.field_name["_accesskey"] = "some_key" Em quinta-feira, 30 de junho de 2016 10:22:58 UTC-3, ahz...@gmail.com escreveu: > > How do I define HTML accesskeys (keyboard shortcuts) for a form, so the > user can quickly enter data wit

[web2py] Re: Update a form with new attributes

2016-07-01 Thread Marlysson Silva
Resolved? Em quinta-feira, 30 de junho de 2016 18:23:47 UTC-3, Jing Lu escreveu: > > OK, i figure it out by adding a hidden function to generate the form. > > On Wednesday, June 22, 2016 at 1:23:56 PM UTC-4, Jing Lu wrote: >> >> Hi Web2py developers, >> >> I have a trivial question, but I don't kn

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

2016-07-01 Thread Marlysson Silva
I've used datepicker from bootstrap, and I added the css and js from component and I removed the calendar.js component that came together how built-in of web2py ( came at layout.html in an of the included files ) I removed calendar.js because web2py generate same component of date when field of

[web2py] Re: Identifyng Relationship

2016-07-05 Thread Marlysson Silva
I don't understood your doubt. Are you talking about foreign key? There are models ( in examples in tutorials ) that use the keyword reserved "reference" to indicate relationship between tables. Em segunda-feira, 4 de julho de 2016 15:33:04 UTC-3, Carlos Cesar Caballero escreveu: > > Hi, all web

[web2py] Re: LOAD without div (internal redirect)

2016-07-05 Thread Marlysson Silva
Internal redirect? What case? redirect(URL()) don't work? Em terça-feira, 5 de julho de 2016 10:17:52 UTC-3, Facundo escreveu: > > I want to make an internal redirect and I read that I can use LOAD, but > the problem is that it creates a div. > > The only option I see is passing the LOAD thru a

[web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Marlysson Silva
Great funcionality!! Em terça-feira, 5 de julho de 2016 15:20:06 UTC-3, Massimo Di Pierro escreveu: > > db = DAL() > > db.define_table('person',Field('name')) > > db.define_table('thing',Field('name'),Field('owner','reference person')) > > > for name in ('Max','Tim','Jim'): > > i = db.person.

Re: [web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Marlysson Silva
To get the index of list , too could use "for index, value in enumerate(list)" . 2016-07-06 14:24 GMT-03:00 Anthony : > On Wednesday, July 6, 2016 at 1:21:33 PM UTC-4, Ron Chatterjee wrote: >> >> range (0, len (item)) > > > That's the same as range(len(item)). > > Anthony > > -- > Resources: >

[web2py] Re: show_if multiple selections

2016-07-07 Thread Marlysson Silva
Try use belongs, of DAL. http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#belongs Em quinta-feira, 7 de julho de 2016 06:24:08 UTC-3, Jeff Riley escreveu: > > Hello all. I am trying to get the line below from my db.py file to work. > Currently it is only working for

[web2py] Re: show_if multiple selections

2016-07-07 Thread Marlysson Silva
t;, "Nausea", "Pain")) > > > On Thursday, July 7, 2016 at 5:54:31 AM UTC-5, Marlysson Silva wrote: >> >> Try use belongs, of DAL. >> >> >> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#belongs >> >>

[web2py] Re: URL based internationalization and pattern router

2016-07-07 Thread Marlysson Silva
This not work? http://web2py.com/books/default/chapter/29/04/the-core?search=routes#URL-rewrite Using a languages dictionary , or setting a default language routers = dict( BASE = dict(default_application='myapp'), myapp = dict(languages=['en', 'it', 'jp'], default_language='en'),) Em qui

[web2py] Re: Pythonanywhere Timezone

2016-07-07 Thread Marlysson Silva
Where you are inicialize session.plugin_timezone_tx ? I too already had this issue, this happen because the script get timezone based on the server localization. I solved this using other way, converting user timezone to UTC and at showing converted in user timezone. They are some steps to do

[web2py] Support graph database pyDAL.

2016-07-07 Thread Marlysson Silva
Are you have some planning in port some graph database to operations in pyDAL? By example: Neo4j , OrientedDB... -- 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 Issu

[web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Marlysson Silva
Are you trying to get the timezone just of the your location? Case yes, you set your timezone at code, and deploy in pythonanywhere with value personal of the timezone. But you want timezone by any place, then I go prepare a article showing what I made to solved this. Em sexta-feira, 8 de jul

[web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Marlysson Silva
Are you trying to get the timezone just of the your location? Case yes, you set your timezone at code, and deploy in pythonanywhere with value personal of the timezone. But you want timezone by any place, then I go prepare a article showing what I made to solved this. Em sexta-feira, 8 de ju

[web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Marlysson Silva
cle. For me I am just going to keep it set to > US/Central. Also if anyone wants to use the code I have provided to build > this sort of web app for the general public, please feel free to use what I > have provided. > > On Friday, July 8, 2016 at 8:16:46 AM UTC-5, Marlysson Silva

[web2py] Re: web2py traceback is not clear to tell the error

2016-07-08 Thread Marlysson Silva
The keys of dictionary of bulk_insert are fields of table that you want you insert. Try so: db.bank.bulk_insert([ {'name' : 'bank0', 'website' : 'http://www.bank0.com' }, {'name' : 'bank1', 'website' : 'http://www.bank1.com'}, ] ) Em sexta-feira, 8 de julho de 2016 21:47:42 UTC-3, 黄祥 escreveu:

[web2py] AppConfig compatibility with previous versions

2016-07-09 Thread Marlysson Silva
Module AppConfig using appconfig.ini from private folder it's compatible with backaward versions that don't using this feature? Because I was used AppConfig and version of web2py shown that __init__ of Auth() don't use more of one argument; -- Resources: - http://web2py.com - http://web2py.com

[web2py] Re: Pythonanywhere Timezone

2016-07-10 Thread Marlysson Silva
You try to make this: 1. Add library in the front-end to get user timezone ( this code need to be in the first page that user access ), to get timezone first. - https://bitbucket.org/pellepim/jstimezonedetect/src {{if timezone_is_unknown: }} $(function() { var tz_name = jstz.determine();

Re: [web2py] Re: Support graph database pyDAL.

2016-07-11 Thread Marlysson Silva
I am more interested in building a graph data on top of dal can > use a relational back-end as storage. I believe it to be possible. > > > On Thursday, 7 July 2016 17:22:45 UTC-5, Marlysson Silva wrote: >> >> Are you have some planning in port some graph database to operati

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Marlysson Silva
d pytz. > Not sure what else to dheck. > > No module named pytz > > > On Sunday, July 10, 2016 at 4:39:30 PM UTC-5, Marlysson Silva wrote: >> >> You try to make this: >> >> 1. Add library in the front-end to get user timezone ( this code need to >> be

[web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Marlysson Silva
fied that I have pip installed pytz. > Not sure what else to dheck. > > No module named pytz > > On Sunday, July 10, 2016 at 4:39:30 PM UTC-5, Marlysson Silva wrote: >> >> You try to make this: >> >> 1. Add library in the front-end to get user timezone (

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Marlysson Silva
ble to see the git hub. If so I > will push to that. > > Thank you, > Jeff Riley > > On Jul 11, 2016, at 7:29 AM, Marlysson Silva > wrote: > > I think that I know where are missing pytz.. you put library in controller > define_timezone() .. > > Em segunda-feira

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Marlysson Silva
ble to see the git hub. If so I > will push to that. > > Thank you, > Jeff Riley > > On Jul 11, 2016, at 7:29 AM, Marlysson Silva > wrote: > > I think that I know where are missing pytz.. you put library in controller > define_timezone() .. > > Em segunda-feira

[web2py] Re: How to implement token based restful api in web2py

2016-07-11 Thread Marlysson Silva
Without to use DBAPI but still it would be possible to build API Rest with web2py using @restful? Managering dal mannualy Em segunda-feira, 11 de julho de 2016 09:38:36 UTC-3, Massimo Di Pierro escreveu: > > This is what the manual has to say about it: > > > http://web2py.com/books/default

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Marlysson Silva
veu: > > I have tried to get to the index page and I have gone to admin and then > the database tab so I can setup the authorized user. Both give me the same > error > > Thank you, > Jeff Riley > > On Jul 11, 2016, at 7:38 AM, Marlysson Silva > wrote: > > Might

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Marlysson Silva
setup the authorized user. Both give me the same > error > > Thank you, > Jeff Riley > > On Jul 11, 2016, at 7:38 AM, Marlysson Silva > wrote: > > Might put on github , but dont I can access them now > > I will analyse your code by here , by while. > > Late

[web2py] Re: How to convert JSON to Web2py dict?

2016-07-15 Thread Marlysson Silva
Basically it's to use the json module with encode/decode, this convert json objets in objets python ( dict ) and vice-versa. Convert to python object ( dict ) and you use in web2py. Em sexta-feira, 15 de julho de 2016 03:48:09 UTC-3, pbreit escreveu: > > I can't seem to figure out how to convert

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

2016-07-20 Thread Marlysson Silva
Using forms? And web2py get them using request.vars.* Em quarta-feira, 20 de julho de 2016 09:59:18 UTC-3, Aydin escreveu: > > What's the best way to send data from web2py clients to a web2py server? > Especially when there are many web2py clients that at the same time send > data to the web2py

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread Marlysson Silva
Try something how: . IS_DATE(format('%Y-%M-%D) . Seeing source code web2py, the split is made at "-" .. maybe this be the error. Em terça-feira, 19 de julho de 2016 16:54:10 UTC-3, web2py...@gmail.com escreveu: > > Hi everyone, > > i keep getting this error: > > File "/web2py/gluon/pa

[web2py] Re: treat url error

2016-07-22 Thread Marlysson Silva
Try using routes.py in the routes_in and at routes_out redirect to page ( controller + view ) that you wish.. Em sexta-feira, 22 de julho de 2016 13:44:48 UTC-3, Fabiano Almeida escreveu: > > How to capture and treat the url before displaying error? For example, the > User entered the url with

[web2py] Re: Rethinkdb on Web2py

2016-07-26 Thread Marlysson Silva
I think that no.. because the DAL adapters in the web2py support only these databases: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Connection-strings--the-uri-parameter- Em segunda-feira, 25 de julho de 2016 14:50:25 UTC-3, Oasis Agano escreveu: > > Is there a wa

[web2py] Re: Rethinkdb on Web2py

2016-07-26 Thread Marlysson Silva
Great answer , just I've a doubt .. which type of applications use rethinkdb standalone.. without persist in database.. Em terça-feira, 26 de julho de 2016 13:21:51 UTC-3, Anthony escreveu: > > On Monday, July 25, 2016 at 1:50:25 PM UTC-4, Oasis Agano wrote: >> >> Is there a way of using rethinkd

[web2py] Re: show_if issue

2016-07-26 Thread Marlysson Silva
The show if statement use a query of DAL , then I think that it's perfectly possible. But the fields that use show_if , generally are used in a SQLFORM() , and he verify if that field it's readable to SQLFORM. Em domingo, 24 de julho de 2016 19:32:43 UTC-3, Sneka R escreveu: > > Can I use show_i

[web2py] Re: Rethinkdb on Web2py

2016-07-26 Thread Marlysson Silva
Use them only to proccess something .. without write in to database.. use in a moment to something specific.. Em terça-feira, 26 de julho de 2016 19:05:17 UTC-3, Anthony escreveu: > > On Tuesday, July 26, 2016 at 1:05:50 PM UTC-4, Marlysson Silva wrote: >> >> Great answer ,

[web2py] Re: Excel like filter in grid

2016-07-27 Thread Marlysson Silva
@Gael Princivalle , good code, you could to post this code in GitHub , so everybody could see your code and can improvement them. Em terça-feira, 26 de julho de 2016 16:32:12 UTC-3, Gael Princivalle escreveu: > > Sure Ron I can share. > In a few words on each select I've add a call to a javascri

[web2py] Re: Cannot access the Administrative interface

2016-07-27 Thread Marlysson Silva
In admin app have a folder called private, and within them have a file called hosts.deny , try see if your address are in the file , whether yes , remove them.. Or then , remove from this file , all related with "block access" Em quarta-feira, 27 de julho de 2016 11:32:56 UTC-3, Sneka R escreveu

[web2py] Re: Cannot access the Administrative interface

2016-07-27 Thread Marlysson Silva
Ok , in root folder of web2py, have a file called parameters_ with a port number that you run web2py, verify within them wheither have a string with password=... Em quarta-feira, 27 de julho de 2016 12:18:18 UTC-3, Sneka R escreveu: > > hosts.deny file is empty. > > > > On Wednesday, July 27, 20

[web2py] Re: Cannot access the Administrative interface

2016-07-27 Thread Marlysson Silva
Try remove them. Em quarta-feira, 27 de julho de 2016 12:30:07 UTC-3, Sneka R escreveu: > > Yes. There is. > > On Wednesday, July 27, 2016 at 9:32:56 AM UTC-5, Sneka R wrote: >> >> I have been using administrative interface(localhost) without any >> problem. I tried several password and I got loc

[web2py] Re: Excel like filter in grid

2016-07-28 Thread Marlysson Silva
mercoledì 27 luglio 2016 20:32:02 UTC+2, Ron Chatterjee ha > scritto: >> >> This can be a good plugin for w2p to have. Add this to grid or a table. >> Thank you Gael for sharing. Great work ! >> >> On Wednesday, July 27, 2016 at 6:58:36 AM UTC-4, Marlysson Si

[web2py] Re: bounty pypi

2016-07-29 Thread Marlysson Silva
It so much dificult? Or just incentive.. Em sexta-feira, 29 de julho de 2016 10:59:38 UTC-3, Massimo Di Pierro escreveu: > > I will pay $200 if you help me put a version of web2py on PyPi. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/

[web2py] Re: populating the values in a SQLFORM with default data in a field type of list:string

2016-08-05 Thread Marlysson Silva
It appears some errors in web2py console ? Or just no show values.. Em quarta-feira, 3 de agosto de 2016 07:20:50 UTC-3, Encompass solutions escreveu: > > It seems that my SQLFORM.factory won't populate default values. Are you > guys getting similar or am I doing this wrong? > Here is what I am

[web2py] Re: Get Distinct dates

2016-08-09 Thread Marlysson Silva
Use of a SET in list returned of result. Em segunda-feira, 8 de agosto de 2016 15:21:58 UTC-3, madhu nomula escreveu: > > Hello, > > In Web2py database we have date entries. Need to get distinct dates and > bind to a dropdown control. But I am unable to get : > > Please find code below: > Contro

[web2py] Re: Get Distinct dates

2016-08-09 Thread Marlysson Silva
Backend: database or language programming? Em terça-feira, 9 de agosto de 2016 09:59:37 UTC-3, Niphlod escreveu: > > let the backend do set operations: it's by far faster than pure python > (saves bandwith, too) > > On Tuesday, August 9, 2016 at 12:49:35 PM UTC+2, M

[web2py] Re: Web2Py Navigating table records one at a time

2016-08-17 Thread Marlysson Silva
Your application works how? What the workflow them? The user don't log in at application to use them, only execute the actions ( submit , receive anwers) ? Em terça-feira, 16 de agosto de 2016 20:51:04 UTC-3, Meinolf escreveu: > > Hi > > I am new to python and web2py. I have a small sqlite tabl

[web2py] Re: New to web2py. Template use cases

2016-08-17 Thread Marlysson Silva
You are importing starting of gluon or just file template.py from gluon? Based in documentation you have just import standalone file template.py from gluon :| . Em terça-feira, 16 de agosto de 2016 20:51:04 UTC-3, billy...@gmail.com escreveu: > > Coming trying out different framework and really

Re: [web2py] Re: How does web2py save JSON fields?

2016-08-19 Thread Marlysson Silva
You removed the urllib.uquote() ? And after just receiving the request directly.. Em sexta-feira, 19 de agosto de 2016 11:51:54 UTC-3, Ramos escreveu: > > Ok got it. > If i create a new record via admin with > > {"Gestão":1} in the json Field, after saving the new record i get it as > > {u'Gs\xe3

Re: [web2py] Re: How does web2py save JSON fields?

2016-08-19 Thread Marlysson Silva
d by hand created a new record with > > {"Gestão":1} on the json field and it was saved as {u'Gs\xe3\x00cn': 1} > > so far so good , i understand now that saving in json fields encodes the > data. > Now i need to read that data and decode it. > > Reg

[web2py] Re: New to web2py. Template use cases

2016-08-19 Thread Marlysson Silva
; plural_rules and it breaks. > > On Thursday, August 18, 2016 at 3:37:47 PM UTC-4, Massimo Di Pierro wrote: >> >> Or simply copy the gluon/template.py where you want it, import it, than >> from template import render, etc. >> >> On Wednesday, 17 August 2016 06:2

[web2py] Re: New to web2py. Template use cases

2016-08-19 Thread Marlysson Silva
han > from template import render, etc. > > On Wednesday, 17 August 2016 06:28:05 UTC-5, Marlysson Silva wrote: >> >> You are importing starting of gluon or just file template.py from gluon? >> Based in documentation you have just import standalone file template.py >>

Re: [web2py] Re: How does web2py save JSON fields?

2016-08-19 Thread Marlysson Silva
> update_record : > > 2016-08-19 16:18 GMT+01:00 Marlysson Silva >: > >> For test, try render the controller data in a generic_view.json .. to >> test whether the encode the page which it's wrong.. >> >> Em sexta-feira, 19 de agosto de 2016 12:07:27

[web2py] Re: NameError: name 'category' is not defined (reddit clone application)

2016-08-22 Thread Marlysson Silva
It's possible show the result of get_category function ? Or show errors in these point ? Em segunda-feira, 22 de agosto de 2016 11:12:44 UTC-3, Annexx Xaar escreveu: > > Pls I am waiting for reply. pls anyone help? > > > > > > > > On Monday, August 22, 2016 at 2:58:08 PM UTC+1, Annexx Xaar wrote:

[web2py] Re: how to change color and case of form buttons

2016-09-06 Thread Marlysson Silva
You could to get css through the console web chrome ( inspected element ) and add property to your css file.. overwriting them Em quarta-feira, 31 de agosto de 2016 01:35:07 UTC-3, Alex Glaros escreveu: > > how to change colors and letter-case in form below > > form = FORM.confirm('Sure you want

[web2py] Re: put condition in appconfig

2016-09-09 Thread Marlysson Silva
A best pratices it create many files to each enviroments ( local , test , production ) .. and at moment which load this files make this conditionals.. Then exists each file separated and you make conditionals out enviroment .. and driven conditionals ( in model to example ) and load file app.co

[web2py] Re: vue.js

2016-09-26 Thread Marlysson Silva
I intend to delve me in the Vuejs , it's an awesome library Facilitates futher development Em domingo, 25 de setembro de 2016 00:25:51 UTC-3, Massimo Di Pierro escreveu: > > I am becoming a huge fan of vue.js. Any other user here? > -- Resources: - http://web2py.com - http://web2py.com/book (D

[web2py] Re: embed a video file

2016-09-28 Thread Marlysson Silva
The website that contains the video should be have link to add in your site. Em segunda-feira, 26 de setembro de 2016 15:59:48 UTC-3, SR escreveu: > > How do I embed a video file in my webpage? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

[web2py] Re: How to restrict access to a public webservice using a key?

2016-09-28 Thread Marlysson Silva
This is what you need: http://web2py.readthedocs.io/en/latest/tools.html#gluon.tools.Auth.jwt Json Web Token , communications to services "rest" .. I think that facilitates your work Em quarta-feira, 28 de setembro de 2016 08:57:59 UTC-3, Lisandro escreveu: > > Hi there! > I have a web2py app t

[web2py] Re: Error in redis_cache.py after upgrading web2py to last stable version

2016-09-28 Thread Marlysson Silva
Try look whether a instance of Redis return a type of redis , it is like that redis connection are failing and returning a string intead redis object. I Think. Em quarta-feira, 28 de setembro de 2016 11:24:10 UTC-3, Lisandro escreveu: > > Hi there! > Recently I've updated web2py to the last sta

[web2py] Re: how to do 2 step verification authentication????

2016-09-29 Thread Marlysson Silva
Which error appears? Em quarta-feira, 28 de setembro de 2016 16:13:05 UTC-3, prashant joshi escreveu: > > how configure email?? > i do according to the book but it not work... > > please anyone tell me another method??? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

[web2py] Re: modify default scaffolding (welcome app) welcome user logged in (top right)

2016-09-30 Thread Marlysson Silva
Well , how saw on "layout.html" file , he use the auth object: https://github.com/web2py/web2py/blob/master/gluon/tools.py#L2013-L2084 Then the auth object shoud be a method call of "navbar" that likely to define this behavior. Then I searched by auth object on source code of web2py I found thi

[web2py] Re: modify default scaffolding (welcome app) welcome user logged in (top right)

2016-09-30 Thread Marlysson Silva
Well , how saw on "layout.html" file , he use the auth object: https://github.com/web2py/web2py/blob/master/applications/welcome/views/layout.html#L64 Then the auth object shoud be a method call of "navbar" that likely to define this behavior. Then I searched by auth object on source code of we

[web2py] Re: modify default scaffolding (welcome app) welcome user logged in (top right)

2016-09-30 Thread Marlysson Silva
1. Well , how saw on "layout.html" file , he use the auth object: https://github.com/web2py/web2py/blob/master/applications/welcome/views/layout.html#L64 2. Then the auth object shoud be a method call of "navbar" that likely to define this behavior. 3. Then I searched by auth object on source c

[web2py] Re: modify default scaffolding (welcome app) welcome user logged in (top right)

2016-10-01 Thread Marlysson Silva
So you are changing framework's default behavior , when you update latest version , likely your script inserted in tools.py will cleaned. The web2py give you ways to define it by parameters.. but.. Anyway you are welcome Em sexta-feira, 30 de setembro de 2016 18:36:26 UTC-3, 黄祥 escreveu: > > t

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
You need that each type event change with a type backgroud specific? You should to create styles to each type and to use by javascript or jquery handle events and change background of element wished .. What do you need do? Em domingo, 2 de outubro de 2016 12:28:12 UTC-3, Peter escreveu: > > > >

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
First , in css , the classes are defined with "." before name them , then it's so : .trainning , .project_work With this answer : http://stackoverflow.com/questions/31322105/full-calendar-rails-adding-custom-css-classes-to-events/33894043#33894043 It's possible to use a custom function in

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
First , in css , the classes are defined with "." before name them , then it's so : .trainning , .project_work With this answer : http://stackoverflow.com/questions/31322105/full-calendar-rails-adding-custom-css-classes-to-events/33894043#33894043

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Marlysson Silva
Hello Peter , you are getting started with javascript now? Without problems. EventRenderCallback it's a callback function , that used in object properties "FULLCALENDAR" , that means in the element that to used the first parameter will be the general event and second will be the current element

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Marlysson Silva
1. Have how you provide this project in github? Stay easier handle with code , or it's private project? 2. A good practice it's generate data in web2py controller and at view just use the data. Ex: the "for" in the js code. But have how improve . after. Em segunda-feira, 3 de outubro de 2016 11

[web2py] Re: Impersonate in Layers...

2016-10-03 Thread Marlysson Silva
You want create a user that can handle other admin users? Remove, alter permissions , add Em sábado, 1 de outubro de 2016 05:56:11 UTC-3, Joe Barnhart escreveu: > > Still looking for a reply for this message! C'mon, it's only > been...what... 2-1/2 years?? Seriously. I was just looking at thi

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Marlysson Silva
You are welcome , good know that you did. Em segunda-feira, 3 de outubro de 2016 15:53:54 UTC-3, Peter escreveu: > > > So I played with it for a while and tried assigning red, green and blue > backgrounds randomly, just to get it working. > > My fullcalendar.css (FullCalendar v1.4.1 Stylesheet)

Re: [web2py] capturing primary key during insert

2016-10-04 Thread Marlysson Silva
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#insert Em terça-feira, 4 de outubro de 2016 00:53:58 UTC-3, Kiran Subbaraman escreveu: > > This may be what you are looking for: > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=befo

Re: [web2py] capturing primary key during insert

2016-10-04 Thread Marlysson Silva
The documentation call this: >>> db.person.insert(name="Alex")1>>> db.person.insert(name="Bob")2 *Insert returns the unique "id" value of each record inserted.* Most likely return id field like primary key Em terça-feira, 4 de outubro de 2016 00:53:58 UTC-3, Kiran Subbaraman escreveu: > > This

Re: [web2py] Re: vue.js

2016-10-04 Thread Marlysson Silva
Why? Was dificult? Em terça-feira, 4 de outubro de 2016 08:17:13 UTC-3, Ramos escreveu: > > Vue is good ,but Vue with centralized state management,Vuex, is even > better. > But then with Vuex i ended up with 2 apps. web2py for the server merely as > a REST API and vuex for the frontend. > I don

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-07 Thread Marlysson Silva
I'm want know how you build this enviroment to tests with web2py.. in three layers .. Are your project in github? Em sexta-feira, 7 de outubro de 2016 03:46:17 UTC-3, Mathieu Clabaut escreveu: > > Hello, > > I'm pondering to volunteer as a mentor for a pytest web2py framework, but > I'm a bit

[web2py] Re: manual for loop in views and json

2016-10-07 Thread Marlysson Silva
Try this: 1. Using service: @service.json def my_data(): your_data = your_query.as_dict() return response.json(you_data) 2. At view call: http://127.0.0.1/test/default/my_data 3. Most likely it's to return a dictionary with data,if it works then you call via getJson. Em sexta-feira,

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

2016-10-07 Thread Marlysson Silva
Isn't because you are putting the level user hardcoded? There after that user change own level , the verification don't works more. 1. If you want that user name are unique mark at table the field with validator unique=True 2. The size of rows returned could be made with count() , db(query).coun

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-07 Thread Marlysson Silva
testing environment from my application). > > > On Fri, Oct 7, 2016 at 1:19 PM Marlysson Silva > wrote: > >> I'm want know how you build this enviroment to tests with web2py.. in >> three layers .. Are your project in github? >> >> >> Em sex

[web2py] Re: manual for loop in views and json

2016-10-07 Thread Marlysson Silva
In web2py have how you get each fields, at moment that you recover the data, stop here, and adding as_list() , most linkely will return all list as list: rows = db(query).select(db.account.product.name, db.account. subscription_amount, orderby = ~db.account.id).as_list() And return this result

[web2py] Re: manual for loop in views and json

2016-10-07 Thread Marlysson Silva
You get data from pydal ( web2py ) ( each field in select ) , after transform in list using as_list and after return a response.json using a rows transformed in list. Em sexta-feira, 7 de outubro de 2016 10:04:31 UTC-3, Marlysson Silva escreveu: > > In web2py have how you get each fiel

[web2py] Re: manual for loop in views and json

2016-10-07 Thread Marlysson Silva
How are your database modeling.. You are retrieving r.product.name but don't are in this row returned.. :/ . Em sexta-feira, 7 de outubro de 2016 10:16:17 UTC-3, 黄祥 escreveu: > > *the code* > @service.json > def my_data(): > query = (db.account.investor == 1) > rows = db(query).select(db.a

[web2py] Re: manual for loop in views and json

2016-10-07 Thread Marlysson Silva
What string returned by : [[r.product.name, r.subscription_amount] for r in rows] ? Em sexta-feira, 7 de outubro de 2016 10:24:25 UTC-3, Marlysson Silva escreveu: > > How are your database modeling.. > You are retrieving r.product.name but don't are in this row returned.. :/ &g

[web2py] Re: read a field of auth_user

2016-10-07 Thread Marlysson Silva
Try: information = auth.user.newfield The auth.user contains a copy of auth_user table from current logged in user. Em sexta-feira, 7 de outubro de 2016 10:30:36 UTC-3, Aydin escreveu: > > I tried rows = db().select(db.auth_user.id==auth.user.id).newfield but it > did not work > > On Friday, O

[web2py] Re: read a field of auth_user

2016-10-07 Thread Marlysson Silva
Try: information = auth.user.newfield The auth.user contains a copy of auth_user table from current logged in user. Or: rows = db(db.auth_user.id==auth.user.id).select(db.auth_user.newfield) Em sexta-feira, 7 de outubro de 2016 10:00:51 UTC-3, Aydin escreveu: > > This is a simple question bu

[web2py] Re: manual for loop in views and json

2016-10-07 Thread Marlysson Silva
try json.load wrapper json.dumps with data. Em sexta-feira, 7 de outubro de 2016 10:34:38 UTC-3, 黄祥 escreveu: > > *anthony solution in stackoverflow that i adapt to my table is * > return json.dumps([[r.product.name, r.subscription_amount] for r in rows] > ) > > *reproduce* > "[[\"Dana Ekuitas\",

[web2py] Re: read a field of auth_user

2016-10-07 Thread Marlysson Silva
eld) > it game me auth_user.newfielddata, data is the string stored in the > newfield. > > > > On Friday, October 7, 2016 at 9:40:59 AM UTC-4, Marlysson Silva wrote: >> >> Try: >> >> information = auth.user.newfield >> >> The auth.user contains a copy of aut

[web2py] Re: SQLFORM list:string auto-fill on update

2016-10-07 Thread Marlysson Silva
Try this.. http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?#callbacks-on-record-insert-delete-and-update Generating by python and append field list and after commit the transaction. Em sexta-feira, 7 de outubro de 2016 10:39:04 UTC-3, Pierre escreveu: > > Hi, > > I n

[web2py] Re: Problem with migrate. Error with referenced field.

2016-10-10 Thread Marlysson Silva
If your data are tests ,you could delete databases folder or the migrations file , and restart server to forget some references to user table. Em segunda-feira, 10 de outubro de 2016 11:13:22 UTC-3, Fabio Ceccarani escreveu: > > Hi, > I have this problem: a table have a field that is a referenc

  1   2   3   >