Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-10-06 Thread Carlos Costa
Things make more sense now. I always got the message Cron disable because no file locking. I had to pass -N argument for it to stop anoying me. Is that documented? Thanks again. 2010/10/6 mdipierro : > If you run web2py from source under windows you need it. If you use > the web2py binary then it

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
>> ERROR:web2py.cache:corrupted file: C:\...\applications\welcome/cache/ >> cache.shelve >> everytime! >> >> On Oct 6, 6:54 pm, mdipierro wrote: >> >> > Yes it is somewhere in the manual. >> >> > On Oct 6, 3:41 pm, Carlos Costa wrote: >>

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
Well, I don´t know exactly. What´s this file exactly for? 2010/11/5 mdipierro : > perhaps when this occurs should delete the file automatically? Pros? > Cons? > > On Nov 5, 4:35 pm, Carlos Costa wrote: >> Looks like it fixed. >> So simple! >> Tha

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
data >> loss). The problem is that if the failure is caused by some other >> serious problem, deleting automatically, will hide a problem with >> cache.disk. >> >> On Nov 5, 9:52 pm, Carlos Costa wrote: >> >> > Well, I don´t know exactly. What´s this file ex

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-06 Thread Carlos Costa
I think It´s fine for now. At least it will be more clear to the developer until discover the cause. 2010/11/6 mdipierro : > yes but once and only once, when an upgrade corrupts a cache file. > > On Nov 5, 10:01 pm, Carlos Costa wrote: >> The ticket is good idea but it will

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
t;> > 1.86.2  or 1.88.3? >> >> > On Nov 8, 10:47 am,yamandu wrote: >> >> > > OMG! The problem returned. >> > > And said this too: >> > > ERROR:root:Syntax error in C:\..\applications\anima/languages/pt-br.py >> >

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
orrupted and web2py is re-writing > them. > > Massimo > > On Nov 8, 12:18 pm, Carlos Costa wrote: >> Yes. >> >> 2010/11/8 mdipierro : >> >> >> >> > Do you have the Mark Hammond wein32 extensions? >> >> > On No

Re: [web2py] Re: Webgrid so strange!

2010-02-02 Thread Carlos Costa
Well, now it´s working again. The tip you gave was very valuable! I went to confirm what encoding I have been working with because recently I have changed from editor and was not sure. It´s utf8 rightnow but I changed from ascii yesterday. As it works now, I think that was actually the problem, m

Re: [web2py] how to change a field type from string to decimal?

2012-04-12 Thread Carlos Costa
The database wont be recreated. And you could change the field name temporally. 2012/4/12 Carlos : > Hi, > > Is it possible (and how) to change a field type from string to decimal > without recreating the table?. > > There are no records in the table yet, but I would like to know if there's a > wa

Re: [web2py] Re: Workflow engine for web2py

2012-04-16 Thread Carlos Costa
I think it is. What are the advantages with this aproach? Em 16 de abril de 2012 07:44, António Ramos escreveu: > I suggest a workflow as a service. > I have a database where i define all workflows for all databases. > > I have something like this way in a Lotus Notes environment. > I get away wi

Re: [web2py] Re: Free e-book abhout Rest API

2012-04-25 Thread Carlos Costa
So helpful. Thanks. 2012/4/25 Ross Peoples : > Thanks for the link! I've been looking for good API design resources. -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן

Re: [web2py] Looking for a good beginner's guide

2012-04-26 Thread Carlos Costa
I think web2py.com/book can be a good start. 2012/4/26 newbiedev : > I am a new to programming in general and am looking for an excellent > beginner's guide to web2py. This is not just for learning the framework, but > also learning web programming priciples, in general.  In other words, I'm > not

Re: [web2py] Re: CMS question

2012-05-04 Thread Carlos Costa
Sorry, I had not read all the messages neither tested it but I am interested as I was think on a similar project. Maybe I am going off topic but my idea was to use the hackasaurus.org as an user interface editor. It looks fine. But I am not aware of license issues or integrability. Has anyone any i

Re: [web2py] An insult to web2py ?

2012-05-05 Thread Carlos Costa
I read it like a manifest of preferences, not like argumentations. Nothing to worry about. Em 3 de maio de 2012 08:40, António Ramos escreveu: > a person just wrote this about web2py in a portuguese forum > Anyone care to coment? > > > Viva, > > Eu conheci primeiro o web2py e só uns meses depois

Re: [web2py] Re: An insult to web2py ?

2012-05-05 Thread Carlos Costa
I take this as opportunity to compliment the DAL. I have never seen clever way to manipulate data in a relational database. I am actually addicted to the way it works. I wish could work with web2py as my primary job. 2012/5/5 Massimo Di Pierro : > On Saturday, 5 May 2012 10:23:34 UTC-5, Tiago Alme

Re: [web2py] Re: 75€ BOUNTY - Massively Complicated Query Required

2012-05-17 Thread Carlos Costa
I found a way quite simple but It does not include the Relevance columns. 2012/5/17 Andrew > If another user has a tag that UserA is looking for, then relevance is +2 > to UserA > If another user is looking for something UserA has, then relevance is +1 > to UserA > If another user lives in the s

Re: [web2py] Re: 75€ BOUNTY - Massively Complicated Query Required

2012-05-18 Thread Carlos Costa
The answer? 2012/5/18 Jason Brower > This bounty has, thankfully, been solved. Thank you to all those that > have participated! It has saved me so much time! > BR, > Jason Brower > > > On 05/17/2012 07:28 PM, Jason Brower wrote: > > I have the event management tool I have been working on for

Re: [web2py] A web2py BBS in c-hina has been launched, since in c-hina, this web2py group is forbidden.

2012-05-23 Thread Carlos Costa
好的。 Good. 2012/5/23 web2py_lover : > A web2py BBS in c-hina has been launched, since in c-hina, this web2py group > is forbidden. > > http://web2py.sinaapp.com/ > > -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן

Re: [web2py] Re: creating groups

2013-03-02 Thread Carlos Costa
You can create records and the the auth_group to create a group give a look at it in the database admin, it is simple. For example: form = crud.create(db.auth_group) with this line you can create a form where the user will insert a record, so creating a new group. To put someone in a group simpl

Re: [web2py] Doubt in the example provided on web2py manual page 98

2013-03-14 Thread Carlos Costa
Probably you are confused because of this code present in index.html: {{elif 'content' in globals():}} {{=content}} {{else:}} {{=BEAUTIFY(response._vars)}} {{pass}} If theres no content it renders the BEAUTIFY(response._vars) just like the generic view, so its not the generic view being rendered

Re: [web2py] REF: SQLFORM.grid: Determine when a new record is added

2013-03-14 Thread Carlos Costa
Check oncreate argument. 2013/3/14 Teddy Nyambe > I want to add logic when a user clicks on submit to add a new record using > the SQLFORM.grid, I would like to do something. I have checked the vars and > args there is nothing to indicate this only when a form is requested for > add, edit, view

Re: [web2py] refresh div in a html page (web2py)

2012-12-18 Thread Carlos Costa
What you get when you access the test2.html url in the browser? Maybe the url is wrong. Try to inspect using firebug in error console. 2012/12/18 yn yn > Hi I am starting using web2py. I have a page web Test.html in view with a > div: . On the other hand, I have a page web in the same folder: T

Re: [web2py] formatting time string during field update

2012-12-18 Thread Carlos Costa
In web2py_ajax.html there is the format that is used for jquery, try that. 2012/12/18 marino segnan > Hello, > > I am a beginner with web2py and I have this apparently simple problem. > I have a db table: > > db.define_table('tappe', >Field('ora','time',requires=IS_TIME('%H:%M')) > )

Re: [web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Carlos Costa
I think their purpose is for prototyping. 2012/2/2 Jim Steil : > You are good! > > Is this done because of a security concern?  Would 'best practice' dictate > that I not use the generic views. > >     -Jim > > > On 2/2/2012 12:14 PM, Anthony wrote: > > Do you have an actual /views/default/user.ht

Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Hard to guess withou the model, but looks like its related to the membership. 2012/2/2 pbreit > My code is erroring and it looks like the culprit is the logging of an > auth_event. It's happening on a lightly customized auth_user Profile update. > > > > Traceback (most recent call last): > Fil

Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Looking the code above, elif is hit when len(rows) = 0. So I am stuck here, how could it retrive any value if the lenght is zero? Must look this whole code to understand it. 2012/2/2 pbreit > I'm not really using memberships and I have auto group creation turned off: > > auth.settings.create_use

Re: [web2py] newbie : Accessing specific form elements' values from a controller.

2012-02-04 Thread Carlos Costa
I think you can do like this: if request.vars: use request.vars.varname to access values else: return . Since you point your form to the right actions the all the vars will be there when you submit. When you dont submit they will not be there. 2012/2/4 Salvation : > Hi! >    I have a ht

Re: [web2py] newbie question about relationships in model

2012-02-04 Thread Carlos Costa
Is t_winery being created after this line? 2012/2/4 air_cooled : > I've created a model in the GAE SQL tool - which was great, except it > didn't work in web2py.  I just got errors. > > So I created a model from the wizard to get going, but I've got some > strange behaviour around relationships. >

Re: [web2py] Re: lungo.js

2012-02-05 Thread Carlos Costa
+1 2012/2/5 Oli : > we should have a mobile solution for web2py "out of the box". Would this be > possible? -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן

Re: [web2py] how to display data

2012-02-08 Thread Carlos Costa
First select the data you want to display #select all records with all fields articles = db(db.articles).select() Second, pass it to the view return dict(articles=articles) Third, render it in the view inde.html {{=articles}} Note: this is the most basic data displaying with Web2py, you will ne

Re: [web2py] Re: I would like to learn Web2py but where do I start?

2012-02-24 Thread Carlos Costa
Massimo is a nice guy! 2012/2/24 newbie : > Thank you all so much for your responses and recommendations.  I will > give those a try.  Massimo, keep up the great work and thank you for > taking the time to help.  I look forward to the video tutorial. > > On Feb 23, 10:20 pm, pbreit wrote: >> W3sc

Re: [web2py] How to use XML data

2012-03-05 Thread Carlos Costa
You can do something like in http://web2py.com/books/default/chapter/29/5 : Parsing The TAG object is also an XML/HTML parser. It can read text and convert into a tree structure of helpers. This allows manipulation using the API above: >>> html = 'Titlethis is a test' >>> parsed_html = TAG(html) >

Re: [web2py] Weird behavior of decimal stored in session.

2012-03-05 Thread Carlos Costa
I dont know why but you can fix it explicitly using Decimal. http://docs.python.org/library/decimal.html#module-decimal 2012/3/5 Francisco : > Hi everyone. I just came across a weird behavior and I'm wondering if it's > some kind of bug or just my fault. > > I have a model for a product like this:

Re: [web2py] How to use XML data

2012-03-06 Thread Carlos Costa
As I can see, you got the XML and outputed it to the view. I dont see what you want more. Tell us. 2012/3/6 Praveen Bhat : > Hello, > > I have come to the point where the whole XML document is returned, as u can > see in the attached file. > > I have used the following code: > > Controller: > > de

Re: [web2py] view with 2 forms

2012-03-06 Thread Carlos Costa
You will need to pass the post ID in the url or var or something. And I think you want to show comments related to the post not another posts. comments = db(db.comment.id=request.args(0)).select() Pass this to the view. 2012/3/6 Ale : > Good morning everyone. I am making a simple application, bu

Re: [web2py] fit image to shape

2012-03-06 Thread Carlos Costa
You will need an extra library to accomplish this, like PIL http://www.pythonware.com/products/pil/ 2012/3/6 mwk : > I would like to have an uploaded image displayed inside a specific > shape.  For instance, I would like to have an uploaded image fill a > circle or fill an octagon shape, or other

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
Looks its a timeout. Maybe I am wrong but you can state an update too many records. GAE has time limitations, I dont know how much because I dont use it anymore. Search for the GAE docs on these limitations. 2012/3/6 Sushant Taneja : > Hi All, > > I am building a invite module. > In the controller

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
I dont know, but have you examined the GAE log? 2012/3/6 Sushant Taneja : > Hi, > > I thought the same but as you can see I have handled the Timeout exception > in the code. > If its the Timeout then why I am unable to catch the exception ? > > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamand

Re: [web2py] Dynamic IS_IN_DB

2013-05-02 Thread Carlos Costa
You may try something like this: for id in id_list: query = query | (db.asset_class.id == id) requires = IS_IN_DB(query,..) 2013/5/2 Domagoj Kovač > Hi, > > i want to have dynamic query in my IS_IN_DB validator: > requires = IS_IN_DB(db((db.asset_class.id == 10) | >

Re: [web2py] form.custom in modal window

2013-05-17 Thread Carlos Costa
Have you tested it without modal? Just hit the url for mailVcard.load and make shure it works. If if works you may have to debug the javascript using firebug for example. 2013/5/16 Annet > I have the following link to open a view in a modal window: > > > src="{{=URL('static','img/icons/vCard.p

Re: [web2py] How to run web2py on Linux Shared Hosting With No Shell, or SSH access

2013-05-17 Thread Carlos Costa
Have you asked your host for SSH access? I have used hostgator, I have to ask then to grant me SSH access, and even with this is a pain to make web2py run there. If they dont give it anyway, consider change the host, give a try at pythonanywhere.com, you should install web2py with one click. 2013

Re: [web2py] Avoiding extra quries when using DAL

2013-06-04 Thread Carlos Costa
Maybe something like that. You could do the query and save it as a dict and work on it. result = db(db.table2.id > 0).select().as_dict() retVal = [entity.name for entity in result] 2013/6/4 guruyaya > Lets examine this code for a sec: > db.define_table('table1',Field('name')) > db.define_table

Re: [web2py] Re: Avoiding extra quries when using DAL

2013-06-04 Thread Carlos Costa
Hum, I forgot the problem has two tables. Nice! 2013/6/4 Massimo Di Pierro > I would replace > > retVal = [] > for entity in db(db.table2.id > 0).select(): > retVal += entity.table1.name > > with > > table1_map = db(db.table2 ).select().as_dict() > retVal = [table1_map

Re: [web2py] Fun with Scheduler

2013-06-05 Thread Carlos Costa
Very good idea. I have not learned to use scheduler yet. This would be very useful, I think. 2013/6/5 Joe Barnhart > I think the web2py scheduler is the most amazing thing ever added to the > platform. It is truly a wonder in that it works so well and has such a > clean design. > > I was tryin

Re: [web2py] Re: How do you use web2py app work with phonegap?

2016-03-21 Thread Carlos Costa
I am using cordova and bootstrap for rapid prototyping. Next I will change it to static pages interacting via json webservices. 2016-03-21 7:23 GMT-03:00 eric cuver : > ok thank you i'll check > > > Le dimanche 20 mars 2016 21:24:05 UTC+1, pbreit a écrit : >> >> Ionic is free. But it does use Ang

Re: [web2py] Can I do INSERT INTO statement with DAL syntax ?

2018-10-16 Thread Carlos Costa
I think it is not possible yet. If you don't care about performance, in this case you can do it by code. But if you care, use db.executesql... Em sex, 12 de out de 2018 às 12:44, icodk escreveu: > something like : > > INSERT INTO Customers (CustomerName, City, Country) > SELECT SupplierName, Cit

[web2py] New International Telegram Support Group

2019-03-19 Thread Carlos Costa
We have had a good experience with the brazilian telegram group dedicated to to support web2py users. But the english speaking group is not used at. Here is the link to join it: https://t.me/web2py_en Also, here is the link to the Brazilian group (portuguese speaking and some portunhol allowed

[web2py] Re: New International Telegram Support Group

2019-03-19 Thread Carlos Costa
we noticied this group has no administrator, so we are moving to a new one, here is the link https://t.me/joinchat/DYZrfBT-bIsVhwLZc1hG8Q Em terça-feira, 19 de março de 2019 12:14:17 UTC-3, Carlos Costa escreveu: > > We have had a good experience with the brazilian telegram group ded

[web2py] Re: web3py again....

2019-04-02 Thread Carlos Costa
Will it have default url routes? beyond that, my thought about ui widgets: I think it would be nice: 1 - to have an easy integration via a model rest api 2- be agnostice to client side frameworks 3 - come with a default client side framework (preferably vue) 4 - have a ui lib by default 5 - have

Re: [web2py] Enjoying web2py

2019-04-18 Thread Carlos Costa
😀 Em qui, 18 de abr de 2019 às 08:25, Kevin Keller escreveu: > Just wanted to say that im working on app on an old Acer one 32 bit 2gb > machine with web2py, midori as Browser and Vim as code editor and I'm > enjoying it a lot! > > Thanks for creating such a great batteries included framework. >

Re: [web2py] bye bye T, welcome pluralize

2019-04-30 Thread Carlos Costa
Looks nice! What would be the best approach to translate phrases and longer texts? Em seg, 29 de abr de 2019 às 10:59, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> escreveu: > It looks good!! I can work to support categories if you think it worth it. > Allow something like T(

Re: [web2py] Re: Future of web2py

2019-05-02 Thread Carlos Costa
Massimo, could you create some issues related to these things to be done? I will be easier if anyone wants to contribute. I want to contribute but don't know exactly how. Em qui, 2 de mai de 2019 às 09:16, rāma escreveu: > ONE month!? Sounds super exciting. > > On Thursday, 2 May 2019 15:16:21

Re: [web2py] Re: Future of web2py

2019-05-10 Thread Carlos Costa
I am developing this on web2py apps and I plan to contribute with it on web3py. Em sex, 10 de mai de 2019 às 03:35, Martin Weissenboeck escreveu: > Is it planned that web3py will support the development of PWAs? > Martin > > Am Fr., 10. Mai 2019 um 03:58 Uhr schrieb Massimo Di Pierro < > massimo

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
Recently Google released official support to PWAs in Play Store. So, if a web2py or web3py scaffoles ships with PWA support, it will be easy to deploy it on web and Play Store We would be able make web and mobile apps easily. This technique is saving me hours and hours. Em sáb, 11 de mai de 2019

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
Untill this moment, for me, it means that in a second run, the app can open instantly, mostly because of cached assets. It does not mean that it will always partially work offline. It depends on the need. I think most apps made with web2py (and maybe web3py will be in the same case) are dependent o

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Carlos Costa
I don't think all PWA cases must work 100% offline. For 100% offline apps you just need a server to "install" your app, and so web2py would be handy, but no more after install in client. This is not case we should aim as web2py as focused on database driven apps. Sync database may be desirable in

[web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-15 Thread Carlos Costa
Aweome! I made a similar API for my apps, but is simpler. I like this one more as it is more complete. Mine is called Consult (because we call query as consulta in Portuguese) This is very useful to integrate ui components such as datatable, or anything. Maybe dal-api should be a good name. If

Re: [web2py] Need a developer. Seattle Wa

2014-04-04 Thread Carlos Costa
I guess it will be easier to find devs to work remotely for you. Here in the group or even in ODesk for example. Or if you prefer a local dev, you can hire a Django dev and ask him to learn web2py. He will find a very easy learning curve. 2014-04-04 2:59 GMT-03:00 Brando : > It's pretty easy to

Re: [web2py] Re: Brazilian web2py users, what system do you use to receive credit card payments?

2014-04-15 Thread Carlos Costa
Pagseguro, for sure is the most used here in Brazil. It belongs to UOL, it has a lot of advertising on TV. Its the best know and trusted. Another options are: -mercado pago -bcash -moip -braspag -f2b -paypal Brasil I tried to sort them in an order of popularity. 2014-04-11 23:54 GMT-03:00 samue

Re: [web2py] AYUDA como ajustar la resolucion de la pagina de web segun el navegador ?

2014-04-15 Thread Carlos Costa
Mayra, esto es lo grupo web2py en ingles. Por favor, reecriba tu question en ingles para que qualquier uno pueda compreenderla. Asi tenes mas chances de ser respondida. Mayra, this is the web2py group in english. Please, rewrite your question in english so anyone can understand it. So you more cha

Re: [web2py] too many values to unpack

2014-04-16 Thread Carlos Costa
To show some code should help us to help you. This type of error occurs when something like this is tried; d = dict(a='a',b='b') a, b, c = d 2014-04-16 6:36 GMT-03:00 Richard : > > I have a working app and added a list of form in the response variables > from the controller tot the view. Now t

Re: [web2py] 'Table' object has no attribute 'attr'

2014-04-16 Thread Carlos Costa
The book says in http://web2py.com/books/default/chapter/29/07/forms-and-validators "causes the hidden fields to be passed with the submission, no more, no less. form.accepts(...) is not intended to read the received hidden fields and move them into form.vars. The reason is security. Hidden fields

Re: [web2py] Re: first() as aggregation function

2014-04-28 Thread Carlos Costa
I think he is looking for the first record of each group, not the first record of the entire result. I think there is no such function in web2py yet. I have performed a similar task for reporting using this: https://docs.python.org/2/library/itertools.html#itertools.groupby It will require more c

Re: [web2py] URLising Links in Tables

2014-04-28 Thread Carlos Costa
Use represent and the tag A helper. db.table_name.link_field.represent = lambda value, row: A(value, _href=value) 2014-04-28 13:17 GMT-03:00 : > Hi > > I've created a run-of-the-mill table: > > def index(): > grid = SQLFORM.grid(db.table_name, user_signature=False) > return dict(grid=gr

Re: [web2py] Re: first() as aggregation function

2014-04-28 Thread Carlos Costa
usual > > myexpr = 'first_value(b_field) over (partition by a_field order by > b_field)' > rows = db2(db2.test_table.id > 0).select(myexpr, db2.test_table.a_field) > for row in rows: > print row.aa, row[myexpr] > > > > > On Monday, April 28, 2014 4:46:43 PM

Re: [web2py] OAuth - Can Users Authenticate without an Internet connection?

2014-04-30 Thread Carlos Costa
If each node must authenticate with OAuth with it will requires internet connection. Give a look here: https://developers.google.com/accounts/docs/OAuth2 2014-04-30 16:30 GMT-03:00 Brando : > I want to use OAuth + Google and want to know if things will work if a > node is offline. My app model

Re: [web2py] OAuth - Can Users Authenticate without an Internet connection?

2014-05-01 Thread Carlos Costa
If they share the same DB and they all are in the same network, the builtin authentication will work. If not, you may want to sync the authentication tables while you have connection. So each local application will have a copy. 2014-05-01 12:22 GMT-03:00 Brando : > What are my options if I wan

Re: [web2py] help with helper!

2014-05-14 Thread Carlos Costa
Like this A(I(_class="fa-home"),SPAN("Home",_class="menu-item-parent"),_href="index.html", _title="Home") 2014-05-14 18:59 GMT-03:00 greenpoise : > I need help with this helper! > > I have this > > "menu-item-parent">Home > > > and I made this: > > [A(I(SPAN(_class=('menu-item-parent','Home')

Re: [web2py] help with helper!

2014-05-14 Thread Carlos Costa
Are you using it in the MENU helper? 2014-05-14 20:14 GMT-03:00 greenpoise : > I tried this but didnt work. I am using it in the menu section > > > Thanks > > > > On Wednesday, May 14, 2014 3:59:19 PM UTC-7, yamandu wrote: > >> Like this >> >> A(I(_class="fa-home"),SPAN("Home",_class="menu-item-

Re: [web2py] Re: help with helper!

2014-05-15 Thread Carlos Costa
It is because you are using it the wrong way. MENU helper itself generates the html marckup, ul, li, a, etc Give a look at the documentation here http://web2py.com/books/default/chapter/29/05/the-views?search=menu#MENU Look that MENU has some optional arguments to setup the classes to custom one

Re: [web2py] Re: TAG helper can not parse html

2014-05-20 Thread Carlos Costa
Yeah, the error is thrown by HTMLParser, TAG is build on top of it. I will try some other tools like Beautifull Soup. Thanks. 2014-05-20 10:04 GMT-03:00 Anthony : > No, TAG is only a basic parser and not robust against errors in the HTML. > You should probably use a more sophisticated tool, suc

Re: [web2py] Can't login to Admin interface

2014-05-21 Thread Carlos Costa
How did you started web2py? 2014-05-21 2:36 GMT-03:00 shubham agarwal : > I'am trying to login to the web2py admin interface but my password is not > been accepted. I'm pretty sure that the password is correct. Can anyone > help me with this issue. > > Thanks > > -- > Resources: > - http://web2p

Re: [web2py] going crazy with pyfpdf

2014-05-21 Thread Carlos Costa
It uses pyfpdf to convert it. But there are some restrictions as I remember. You check it here https://code.google.com/p/pyfpdf/ 2014-05-21 12:13 GMT-03:00 Carlos Cesar Caballero Díaz < desarro...@spicm.cfg.sld.cu>: > Hi, I need some help, when I call a view with ".pdf" this: > > > >

Re: [web2py] How to select a column of numbers into a list so that I can manipulate the list

2014-05-26 Thread Carlos Costa
Try: nums3 = db(db.Measures).select( db.Measures.measure_value, orderby=db.Measures.measure_date_time).as_list() 2014-05-26 7:20 GMT-03:00 Syd Stewart : > Hi > > What is the simplest way please to select a column of figures (floats and > int) into a list, so I can manipulate the list e.g rando

Re: [web2py] DAL Referencing By Name Not By ID Possible?

2014-05-28 Thread Carlos Costa
Give a look here: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Legacy-databases-and-keyed-tables But I think it won't work in your case because name is a string. Our you can model it another way. db.define_table('tiers', Field('name', 'string'), Field('crea

Re: [web2py] DAL Referencing By Name Not By ID Possible?

2014-05-28 Thread Carlos Costa
You are welcome! :) 2014-05-28 11:08 GMT-03:00 'Michael Gheith' via web2py-users < web2py@googlegroups.com>: > Many thanks for this, I found it to be helpful :) > > > On Wednesday, May 28, 2014 6:30:31 AM UTC-5, yamandu wrote: > >> Give a look here: http://web2py.com/books/default/chapter/29/06/

Re: [web2py] requires IS_IN_DB set as a union of two queries

2014-05-28 Thread Carlos Costa
Have you tried something like: query1=((db.vehicle.id==db.owner.own_veh_fk)&(db.owner.own_end_date!=None)) query2=(~db.vehicle.id.belongs(db(db.owner.own_veh_fk==db.vehicle.id )._select(db.vehicle.id))) query = query1 & query2 db.owner.own_veh_fk.requires=IS_IN_DB(query,'vehicle.id', '%(manufac

Re: [web2py] Re: requires IS_IN_DB set as a union of two queries

2014-05-29 Thread Carlos Costa
Sorry, I should have written: db.owner.own_veh_fk.requires=IS_IN_DB(db(query),'vehicle.id', '%(manufacturer)s %(vin)s') If you need to pass a set so you need to call db(query) in order to execute the query. 2014-05-28 21:46 GMT-03:00 <98uj...@gmail.com>: > I did try: > query = query1 | guery

Re: [web2py] web2py CMS

2014-05-30 Thread Carlos Costa
We have some options as I know. Kpax from Massimo http://vimeo.com/1098656 https://github.com/mdipierro/web2py-appliances/tree/master/KPax2 Quoca and Movuca (more lika a social app) from Bruno Rocha http://quokkaproject.org/ https://github.com/rochacbruno/Movuca https://code.google.com/p/instan

Re: [web2py] Re: web2py CMS

2014-06-04 Thread Carlos Costa
I found Plone very hard to do almost anything. For simple sites I would not recomend although it is really the best in the Python world. 2014-06-04 6:02 GMT-03:00 Philip Kilner : > Hi, > > +1 for Plone from me, too. > > If you only need something lightweight, it may be OTT - but if you need > a

Re: [web2py] How do I view text on view.html

2014-06-16 Thread Carlos Costa
You should create and action for that view and pass it in dictionary to the view 2014-06-16 7:08 GMT-03:00 Maurice Waka : > My code: > > > > > class Person(): > name = 'Victor' > def say(self, what): > print(self.name, what) > > > getattr(person, attr_name) > > How do I displ

Re: [web2py] Trying to use the LOAD helper, if a button is clicked

2014-06-16 Thread Carlos Costa
It may work if this button is inside the component loaded. 2014-06-13 20:47 GMT-03:00 Omri Levy : > Hi , > > So I have a ticket system, and I want to allow user to edit the ticket > without leaving the page. > I don't want to LOAD the edit_page and hide it, but only load it once user > is clicki

Re: [web2py] Re: How do I view text on view.html

2014-06-16 Thread Carlos Costa
I guess you need to familiarize yourself more with not just with web2py but also with web development, right? Anthony is right, you should read web2py book at www.web2py.com/book, at least the first chapters to get a start. At first you need to understand MVC. For example you may have: in db.py

Re: [web2py] Web2py Rocks ... Again :)

2014-07-03 Thread Carlos Costa
+1 2014-07-03 8:38 GMT-03:00 lyn2py : > Finally, have ironed out all the kinks and sorted out all the errors. Most > of them come about because of user-problems (yes, me), because I don't > deploy to production often enough to keep up with the versions of all other > supporting platforms/softwar

Re: [web2py] The Zen of web2py

2014-07-09 Thread Carlos Costa
I like it. I wonder if we could do it in an organized in some way. Recently I lost to convince my boss to change everything to web2py because "there are few developers that know it". So it would be very good to have a massive community. As we will have more opportunities to work on the framework

Re: [web2py] The Zen of web2py

2014-07-09 Thread Carlos Costa
I agree with you Massimo, the best ones are those that built something. Videos like this http://vimeo.com/6782736 helped me to decide to stay with web2py. Not only that title is quite "marketish" but content is so true. 2014-07-09 12:28 GMT-03:00 Massimo Di Pierro : > I think this would help a l

Re: [web2py] web2py 2.9.7 is OUT

2014-09-05 Thread Carlos Costa
Cool! 2014-09-05 2:47 GMT-03:00 Massimo Di Pierro : > same as 2.9.6 except: > > - a few more bug fixes > - sessions are stores in sessions/XX/YY/ subfolder to avoid proliferation > of files under the same folder which causes slowdown > - cache.disk has been rewritten by Leonel and it much better

Re: [web2py] Accesing table from external database

2014-09-17 Thread Carlos Costa
I don't get it. You can make DAL connection to SQL Server, what is the problem you can not? 2014-09-17 16:39 GMT-03:00 José Eloy : > Hello! > > I need to populate a combobox in a FORM (or SQL FORM) with the content of > a field of a table which is in an external SQL Server database. I know that >

Re: [web2py] Re: We could have something like this

2014-10-22 Thread Carlos Costa
It does not the same thing but it does. It was intend to keep recipes, but one can post links to anything too. Thinking this way it is even better than meteorhelp. But the main difference I see is the dated layout, design and UX. It is a nice tool but already needs a refresh. 2014-10-21 11:23 GM

Re: [web2py] Re: We could have something like this

2014-10-22 Thread Carlos Costa
We have Web2py Slices. http://www.web2pyslices.com 2014-10-20 19:41 GMT-02:00 António Ramos : > it was not a question. > we know everything is possible. > > Its just that finding info about web2py are sometimes dificult > > A site like this could help and also rate the source of info. > > Regard

Re: [web2py] Translate Controller names and Function names

2015-01-27 Thread Carlos Costa
Very interesting question. It must have some effect on SEO. I have seen this post but it does not seem to solve exactly this https://groups.google.com/forum/#!searchin/web2py/translate$20url/web2py/3adXUSCGQQQ/TaKfRagHyvMJ Although if you have a different URL for different content it will be index

Re: [web2py] Re: Function being called twice from one button click

2015-02-26 Thread Carlos Costa
Use the browser console to investigate. Look at the Network tab if it performs two actions with that URL. Another thing that may sound stupid but it is not uncommon and I have already seen it. Some people double click buttons, icons in the web too. I saw a case that a delay between clicks was need.

Re: [web2py] Re: Search in web2py book case sensitive

2015-03-20 Thread Carlos Costa
+1 2015-03-19 14:07 GMT-03:00 Massimo Di Pierro : > done. Thanks. > > On Thursday, 19 March 2015 05:26:22 UTC-5, Kiran Subbaraman wrote: >> >> Yes, it is. >> This line of code probably needs to be changed: >> https://github.com/mdipierro/web2py-book/blob/master/ >> controllers/default.py#L152 to

Re: [web2py] several vars in page

2015-03-20 Thread Carlos Costa
Question 1: The parenthesis are wrong. The _href attribute is inside I and not A helper. In fact, a parenthesis was missing too. {{if page:}} {{request.vars.page = [page - 1] }} {{=SPAN(A(I(T('Previous')), _href = URL(vars = request.vars ) ) ) }} {{elif len(rows) > items_per_page:}} {{request.v

Re: [web2py] Re: Install in hostgator

2015-03-23 Thread Carlos Costa
Have you seen this? http://www.web2pyslices.com/slice/show/1567/running-web2py-on-hostgator-shared-host 2015-03-22 23:24 GMT-03:00 LoveWeb2py : > Did anyone ever find a complete solution to this? I'm using web2py on > hostgator and after following this tutorial I can only get my app to work > if

Re: [web2py] Re: WEB2PY Certificate ?

2015-03-28 Thread Carlos Costa
And what is the future of experts4solutions ? 2015-03-25 0:19 GMT-03:00 Massimo Di Pierro : > Looks like you did. :-O > > Anyway, the point of a university is that we do not usually teach courses > about specific technologies. We use specific technologies to serve more > abstract purposes. For ex

[web2py] websocket messaging VS scheduler

2015-03-31 Thread Carlos Costa
I would like to use scheduler with a task sends websocket messages but it looks like they conflict with each other. I am able to run only one of them. If I start scheduler first, websocket freezes web2py. If I start websocket first scheduler do not run any worker. I start we2py with web2py.py -K

[web2py] How to read latin encoded characters correctly from MSSQL?

2015-04-17 Thread Carlos Costa
Whe I use pyodbc only, I can read and convert characters correctly. But always replace accentuated characters with '?'. I already tried the db_codec='cp1252' and db_codec='latin1' attribute in DAL. In fact, MSSQL uses its own collation: sql_latin1_general_cp1_ci_as as collation. But both latin1

Re: [web2py] Re: web2pyslices

2017-03-22 Thread Carlos Costa
I'd like to help maintain it. And I vote for a web2py solution. Not using would let us in a "shoemaker's son always goes barefoot" situation. I think this is embarrassing. 2017-03-22 1:23 GMT-03:00 Kiran Subbaraman : > I agree that the managing web2pyslices as issues may be one way to go.A > coup

Re: [web2py] Re: web2pyslices

2017-03-22 Thread Carlos Costa
mple a la fiddle (web2py-fiddle). I know > it difficult and involve a lot of security, sandboxing, etc, but it would > be interresting to have demo of slice, that make sure we have the exact > code to make it works... > > Richard > > On Wed, Mar 22, 2017 at 7:42 AM, Carlos Costa

  1   2   >