Re: [web2py] Re: Error upload file on 2.6.4

2013-09-27 Thread Relsi Hur Maron
Cool! Thanks!!

2013/9/27 Niphlod 

> if your "now" is 2.6.4, then current trunk adds only bug fixes and no new
> (potentially untested) features.
>
>
> On Friday, September 27, 2013 4:31:15 PM UTC+2, Relsi Hur Maron wrote:
>>
>>
>> Thanks! Now is working.
>>
>> It is a production app, no problem to use the current trunk?
>>
>> Em sexta-feira, 27 de setembro de 2013 11h20min01s UTC-3, Niphlod
>> escreveu:
>>>
>>> try current trunk.
>>>
>>> Il giorno venerdì 27 settembre 2013 15:17:54 UTC+2, Relsi Hur Maron ha
>>> scritto:
>>>>
>>>>
>>>> Hi all, I have a upload javascript in my app that call a function in my
>>>> controller to upload files.
>>>>
>>>> It was working fine until now, so I update my web2py to latest version
>>>> and now I get te error:  "not indexable" in my upload function.
>>>>
>>>> Well, my functions is:
>>>>
>>>> def upload_callback():
>>>> if 'qqfile' in request.vars:
>>>> filename = request.vars.qqfile
>>>> newfilename = db.realty_photos.photo.store(r**equest.body,filename
>>>> )
>>>> db.realty_photos.insert(photo=**newfilename,realty_id=request.*
>>>> *args(0))
>>>> return response.json({'success': 'true'})
>>>>
>>>>
>>>> And I sed to it a url like it:
>>>>
>>>> /upload_callback/5?qqfile=1.**png
>>>>
>>>> It works fine in my old version 2.5.1, but not now.
>>>>
>>>> All help is welcome!
>>>>
>>>> Thanks for all.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>  --
> 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 message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Error upload file on 2.6.4

2013-09-27 Thread Relsi Hur Maron

Thanks! Now is working. 

It is a production app, no problem to use the current trunk?

Em sexta-feira, 27 de setembro de 2013 11h20min01s UTC-3, Niphlod escreveu:
>
> try current trunk.
>
> Il giorno venerdì 27 settembre 2013 15:17:54 UTC+2, Relsi Hur Maron ha 
> scritto:
>>
>>
>> Hi all, I have a upload javascript in my app that call a function in my 
>> controller to upload files. 
>>
>> It was working fine until now, so I update my web2py to latest version 
>> and now I get te error:  "not indexable" in my upload function.
>>
>> Well, my functions is:
>>
>> def upload_callback():
>> if 'qqfile' in request.vars:
>> filename = request.vars.qqfile
>> newfilename = db.realty_photos.photo.store(request.body, filename
>> )
>> db.realty_photos.insert(photo=newfilename,realty_id=request.args(
>> 0))
>> return response.json({'success': 'true'})
>>
>>
>> And I sed to it a url like it:
>>
>> /upload_callback/5?qqfile=1.png
>>
>> It works fine in my old version 2.5.1, but not now.
>>
>> All help is welcome!
>>
>> Thanks for all.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

-- 
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 message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Error upload file on 2.6.4

2013-09-27 Thread Relsi Hur Maron

Hi all, I have a upload javascript in my app tha call a function in my 
controller to upload files. 

It was working fine until now, so I update my web2py to latest version and 
now I get te error:  "not indexable" in my upload function.

Well, my functions is:

def upload_callback():
if 'qqfile' in request.vars:
filename = request.vars.qqfile
newfilename = db.realty_photos.photo.store(request.body, filename)
db.realty_photos.insert(photo=newfilename,realty_id=request.args(0))
return response.json({'success': 'true'})


And I sed to it a url like it:

/upload_callback/5?qqfile=1.png

It works fine in my old version 2.5.1, but not now.

All help is welcome!

Thanks for all.





















-- 
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 message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: Demistifying web2py

2013-08-06 Thread Relsi Hur Maron

Cool, all is better inside the context.

=)


Em terça-feira, 6 de agosto de 2013 09h47min06s UTC-3, Alan Etkin escreveu:
>
> > I think he is making a joke. Nobody says that but some dishonest people 
> form the 
> > competition. 
>
> Yeah, some of the statements I called criticism are very ridiculous 
> and I would like to mention them because they are funny. However I 
> think that users who do not know web2py except for what is said about 
> it can have a very wrong concept about the framework and it could lead 
> them to choose any other sound framewok without even trying web2py 
> first. The proposal aims to warn potential users about unjustified 
> statements but also to give some background on other more serious 
> comparisons. 
>
> Argentina has lots of django mongers, and maybe the most of the 
> criticism comes from them. I also think it is a mistake to use the zen 
> of Python to discard frameworks because of the "... obvious way of 
> doing things ..." wether we are choosing one or another. Tim Peters or 
> whoever created that was not talking about web development frameworks, 
> but about writing Python programs. 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: Demistifying web2py

2013-08-05 Thread Relsi Hur Maron

web2py is* just* for learning? why?


Em segunda-feira, 5 de agosto de 2013 16h58min05s UTC-3, Alan Etkin 
escreveu:
>
> I've proposed a talk At PyConAr (Argentina) about all the criticism web2py 
> has had from a technical standpoint. Particularly, I'll try to demonstrate 
> that it is not quite so that:
>
>   web2py *is not Python*
>   web2py *is less performant*
>   web2py *has too much magic*
>   web2py *is just for learning*
>
> The list was made according to my limited experience and maybe it could 
> modified to address more important or serious criticisms
>
> I belive there's a lot of material already available to take care of while 
> collecting references as for example this list's records and maybe 
> stackoverflow and other Pyhon programming resources; I wonder if anybody 
> could help providing other sources or points of view to add to enhance the 
> research.
>
> Please note that this is a simple talk proposal and so far has not been 
> accepted. However, it could be of help for others in case of further work 
> anyway.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Crowdsourcing platform in Web2Py?

2013-07-04 Thread Relsi Hur Maron
What features you need?

I'm developing a project of crowdsourcing here, is commercial but I'll
release a part of the application opensource, with the following features:

- add/listing of jobs
- add/listing workers and portfolios
- signup employee and company
- submission of Proposals
- internal messages

is a very alpha release, but if it fit for you, I can send the app to my
repository on github and you get it.



2013/7/4 D.P. 

> Hello,
>
> it is my first post in this group, and it is a pleasure to be in, as I
> really think that web2py is a great tool.
>
> I am trying to see if there is any opensource crowdsoucing platform made
> in web2py? Does any know any of any code example?
>
> Regards,
>
> D.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: What is the best (or correct) way to show a reference value

2013-06-07 Thread Relsi Hur Maron

Great! Thank you very much guys. =)



Em sexta-feira, 7 de junho de 2013 16h29min55s UTC-3, Anthony escreveu:
>
> {{for data in list:}}
>
> 
>> {{=data.user_name}}
>> {{=("%(name)s" %data.user_city)}}
>> {{=("%(name)s" %data.user_state)}}
>
>
> Above, '%(name)s' % data.user_city results in data.user_city.name being 
> filled into the string. data.user_city is a DAL Reference object -- it 
> stores the ID of the referenced record, but when you do 
> data.user_city.name, it does a recursive 
> selectand 
> retrieves the value in the "name" field of the referenced record. So, 
> the above code will result in two additional db selects for every record in 
> "list". If there are a lot of records, you might want to go with the join 
> method, which just does a single select.
>
> Anthony
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] What is the best (or correct) way to show a reference value

2013-06-07 Thread Relsi Hur Maron
Hi guys, 

I have a doubt here about he best way of show a *reference* value.

I'll use a simple example to illustrate, I have the following tables:


db.define_table('city',
Field('name', type='string')
)
db.define_table('state',
Field('name', type='string')
)
db.define_table('user',
Field('user_name', 'string'),
Field('user_city', 'reference city'),
Field('user_state', 'reference state')
)


When I list the *user* table data in the view, *user_city* and *user_state* 
show their *id's*. It's OK.

So, to display the value of another field, not the Id, I usually do so:

In the controller:


list = db(db.user.id>0).select(
db.user.ALL,
db.state.ALL,
db.state.ALL,
left = [
db.state.on(db.state.id == db.user.user_state),
db.city.on(db.city.id == db.user.user_city)
]
)
return dict(list=list)


And in the view:


{{for data in list:}}

{{=data.user.user_name}}
{{=data.city.name}}
{{=data.state.name}}

{{pass}}

And it works very well, but I discovered here that I can make it in a more 
simple way:

In controller:

list = db(db.user.id >0).select()
return dict(list=list)

In the view:

{{for data in list:}}

{{=data.user_name}}
{{=("%(name)s" %data.user_city)}}
{{=("%(name)s" %data.user_state)}}

{{pass}}

So my question is if I can use this second format, without mounting a join 
as I did in the first example. What is the best (efficient) format? and why?


Thanks to all!!
































-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: PAAS supporting web2py

2013-05-27 Thread Relsi Hur Maron

Pythonanywhere 
https://www.pythonanywhere.com/

Em segunda-feira, 27 de maio de 2013 13h14min39s UTC-3, Arvind Gupta 
escreveu:
>
> Hi
>  Is there any PAAS (like openshift/cloudfoundry) which support web2py?
>
> regards
> Arvind
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: [OFF] App for crowdfundig sites (like KickStarter)

2013-03-25 Thread Relsi Hur Maron
Hi Derek,

Thanks for the feedback, I will fix it in the website, the app is here:
http://chipincode.com/chipincode



2013/3/25 Derek 

> Pretty neat, one issue. Clicking the 'back' button on the scroller causes
> the 'try it' button to bounce off the right side then plop back in the
> proper place. Also, it does not reset the scrolling timer, so if you click
> 'back' before it's going to switch to the next one, it goes back then
> immediately goes to the next item.
>
> Also, the feature item 'Software Livre' isn't translated. Neither is
> 'Documentacao' (I assume that means 'documentation').
>
> On Monday, March 25, 2013 10:48:39 AM UTC-7, Relsi Hur Maron wrote:
>>
>>
>> Hi guys!
>>
>> In recent days we have developed an application to create crowdfunding 
>> platforms
>> (Like KickStarter, IndieGoGo, etc.) with web2py.
>>
>> Our inspiration was another open source application called Catarse,
>> developed in ruby, here in Brazil also.
>>
>> It already has the default functionalities of a system of crowdfunding,
>> integrate with Paypal and MoIP (Brazilian payment gateway), etc.
>>
>> If anyone wants to know, and see in operation:
>>
>> http://chipincode.com
>>
>> Code is here: 
>> https://github.com/**codeupstudio/chipincode<https://github.com/codeupstudio/chipincode>
>>
>> Some Documentation (Brazilian portuguese only. English soon [translators
>> plase!! =P] ):
>> https://github.com/**codeupstudio/chipincode/wiki<https://github.com/codeupstudio/chipincode/wiki>
>>
>> Suggestions, criticisms, contributions, swearing, all are welcome =)
>>
>> Relsi.
>>
>>
>>
>>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] [OFF] App for crowdfundig sites (like KickStarter)

2013-03-25 Thread Relsi Hur Maron

Hi guys!

In recent days we have developed an application to create crowdfunding 
platforms 
(Like KickStarter, IndieGoGo, etc.) with web2py.

Our inspiration was another open source application called Catarse, 
developed in ruby, here in Brazil also. 

It already has the default functionalities of a system of crowdfunding, 
integrate with Paypal and MoIP (Brazilian payment gateway), etc.

If anyone wants to know, and see in operation:

http://chipincode.com

Code is here: https://github.com/codeupstudio/chipincode

Some Documentation (Brazilian portuguese only. English soon [translators 
plase!! =P] ): 
https://github.com/codeupstudio/chipincode/wiki

Suggestions, criticisms, contributions, swearing, all are welcome =)

Relsi.



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Free host for blog with domain?

2013-03-24 Thread Relsi Hur Maron
- OpenShift
- Amazon Web Services (1 year free)


2013/3/24 Mika Sjöman 

> Hi
>
> I wonder if anyone knows where I can put my we2py based blog up where they
> I also can use myOwnDomain.com for free? Not too much traffic, maybe a 100
> a day
>
> And... I just build a community from scratch in two weeks from scratch
> with web2py, coming from django - I must say I LOVE web2py!
>
> Huge thanks!
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: No CMS for Web2Py?

2013-03-23 Thread Relsi Hur Maron

\o/

Cool!!! Forked!!



Em sábado, 23 de março de 2013 16h34min39s UTC-3, Loïc escreveu:
>
> Hi Marcel
>
> For my personal use I developed a basic CMS. The goal was to have 
> something very simple to use.
> Some features need to be improved, but I released the project recently.
> You can have a look at https://github.com/espern/tiny_website
>
> Regards
>
> Le mercredi 13 mars 2013 00:06:09 UTC+1, mjm a écrit :
>>
>> Hi Massimo 
>>
>> auth.wiki seems useful, but mostly for the site developer, not user 
>> friendly enough for site owner/user IMHO. Something like Plone is overkill 
>> for a website. I'd like to see something simple and polished somewhere in 
>> between.
>> I'd be hesitant to use projects like Instant Press and Movuca that seem 
>> (almost) abandoned. I'll have a look at w2cms.
>>
>> Marcel
>>
>>
>> On Tuesday, March 12, 2013 11:18:54 PM UTC+1, Massimo Di Pierro wrote:
>>>
>>> The builit-in wiki despite the misleading name, is kind of a CMS. You 
>>> have pages. Pages have attachements. Pages have 
>>> permissions. Attachments inherit permissions. If you think of a page as a 
>>> folder, this is a CMS lite. ;-)
>>>
>>> There is InstantPress, there is movu.ca and there is w2cms (
>>> https://github.com/mdipierro/w2cms experimental to be revived).
>>>
>>> On Tuesday, 12 March 2013 16:31:23 UTC-5, mjm wrote:

 I really like Web2Py to get things done without much fuss. But I am 
 somewhat surprised there seems to be no CMS for W2P. 

 Projects mentioned in this context on this list Instant Press and 
 Movuca are not very active: Instant Press has seen no releases since 2010. 
 Movuca almost no commits in the last year, the website is gone. A shame 
 really, it seemed quite promising. 
 Auth.wiki is a nice recent addition to W2P but seems geared to 
 developers, not end users. 

 Are there any projects I missed? 

>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] MySQL Error

2013-03-21 Thread Relsi Hur Maron
I have this action that verify is a group exist, if not, it create this 
group:

verify_install = db(db.auth_group.role == 'admin').select()
if not verify_install:
 auth.add_group('admin', 'Administrative Group')
 redirect 
(URL
 
('install',
 'index'))


 works well in sqlite, but in mysql I am getting this error:

IntegrityError: (1452, u'Cannot add or update a child row: a foreign key 
constraint fails (`chipincode`.`auth_event`, CONSTRAINT `auth_event_ibfk_1` 
FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ON DELETE CASCADE)')


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] [solved] Re: Facebook conect and ExtendedLoginForm()

2013-03-06 Thread Relsi Hur Maron
Hi,

I managed to solve it using the Diego Sorrilha sample 
[1<https://github.com/r4bugento/web2social>]. 
If more anyone to need, gets the reference. =)

[1] https://github.com/r4bugento/web2social



Em terça-feira, 5 de março de 2013 00h17min48s UTC-3, Relsi Hur Maron 
escreveu:
>
> Hi guys!!
>
> Does anyone have an example of connecting to Facebook using the class 
> ExtendedLoginForm?
>
> I try to do it but I receive this error:
>
>   form.components.append(self.alt_login_form.login_form())
>
> AttributeError: 'FaceBookAccount' object has no attribute 'login_form'
>
>
> So, for test, I put a function called login login_form inside the 
> FaceBookAccount, and now I cat this error:
>
> File "/home/relsi/web2py/applications/teste_fb/views/default/user.html", line 
> 85, in 
> AttributeError: 'DIV' object has no attribute 'add_button'
>
>
> if I not use multiple form it work very well, but with auth not!
>
> Anyone have an example working with multiple form?? Or what I need put in 
> login_form()?
>
> I'm using the example that comes *web2py Cookbook eBook*. 
>
> Here my complete model db.py: http://pastebin.com/KxvQVmNk
>
> Thanks for any help!
>
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Facebook conect and ExtendedLoginForm()

2013-03-05 Thread Relsi Hur Maron
Hi guys!!

Does anyone have an example of connecting to Facebook using the class 
ExtendedLoginForm?

I try to do it but I receive this error:

  form.components.append(self.alt_login_form.login_form())

AttributeError: 'FaceBookAccount' object has no attribute 'login_form'


So, for test, I put a function called login login_form inside the 
FaceBookAccount, and now I cat this error:

File "/home/relsi/web2py/applications/teste_fb/views/default/user.html", line 
85, in 
AttributeError: 'DIV' object has no attribute 'add_button'


if I not use multiple form it work very well, but with auth not!

Anyone have an example working with multiple form?? Or what I need put in 
login_form()?

I'm using the example that comes *web2py Cookbook eBook*. 

Here my complete model db.py: http://pastebin.com/KxvQVmNk

Thanks for any help!



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.