[web2py] GAE SQLFORM not inserting into datastore

2011-12-21 Thread Murray3
As per latest documentation: http://web2py.com/books/default/chapter/29/13#Deployment-recipes In model i have: db.define_table('test',     Field('test', 'string'),     Field('image', 'upload')) In controller I have: def test():     form = SQLFORM(db.test)     return dict(form=form) In view I have:

[web2py] Re: Upload in GAE, SQLFORM.factory, multiple tables

2011-12-21 Thread Murray3
On Dec 21, 1:44 pm, Murray3 wrote: > reply to post not showing in group? > anyway if any ideas to below problem, help appreciated. > > > > > wrote: > > As per latest > > documentation:http://web2py.com/books/default/chapter/29/13#Deployment-recipes > &g

[web2py] Re: Upload in GAE, SQLFORM.factory, multiple tables

2011-12-21 Thread Murray3
reply to post not showing in group? anyway if any ideas to below problem, help appreciated. > wrote: > As per latest > documentation:http://web2py.com/books/default/chapter/29/13#Deployment-recipes > In model i have: > db.define_table('test', >     Field('test', 'string'), >     Field('image', 'u

[web2py] Re: Upload in GAE, SQLFORM.factory, multiple tables

2011-12-21 Thread Murray3
As per latest documentation: http://web2py.com/books/default/chapter/29/13#Deployment-recipes In model i have: db.define_table('test', Field('test', 'string'), Field('image', 'upload')) In controller I have: def test(): form = SQLFORM(db.test) return dict(form=form) In view I have

[web2py] Re: Upload in GAE, SQLFORM.factory, multiple tables

2011-12-20 Thread Murray3
Did this get solved, as I am experiencing the same problem with SQLFORM.factory not saving images to datastore? using latest release of web2py. On Nov 19, 4:04 pm, Bruno Rocha wrote: > On Sat, Nov 19, 2011 at 2:02 PM, Bruno Rocha wrote: > > *if request.env.web2py_runtime_gae: * > > this was a t

[web2py] Re: Missing my posts - Anyone else losing posts

2011-11-04 Thread Murray3
seems to happen all the time on google groups, nevermind! On Nov 4, 5:39 am, BrendanC wrote: > Ignore my previous qn - they just showed up again - so it's probably some > sort of refresh issue with my broswer settings.

[web2py] Re: gae ReferenceProperty

2011-11-03 Thread Murray3
ine\google\appengine\ext \db\__init__.py", line 3635, in validate if value is not None and not value.has_key(): AttributeError: 'unicode' object has no attribute 'has_key' On Nov 3, 2:55 pm, Massimo Di Pierro wrote: > I think I just fixed this in trunk, please check. &

[web2py] gae ReferenceProperty

2011-11-03 Thread Murray3
I thought this would work with custom SQL Using latest version of web2py in gae interactive console I have for testing purposes: from gluon.contrib.gql import gae from gluon.dal import * db = DAL('gae') db.define_table('Contact', Field('name', 'string')) db.define_table('PhoneNumb

[web2py] Re: DAL level access to GAE entities by named key

2011-10-16 Thread Murray3
yeh..sorry, i worked that out after I sent post. thanks for this again. On Oct 16, 4:58 pm, howesc wrote: > is this the line that is failing: > >     #this fails, unknown key exception >     entity_keyid = db.funtest[key] > > i meant to comment it out in my example since it fails.

[web2py] Re: DAL level access to GAE entities by named key

2011-10-16 Thread Murray3
Christian, Itried this in the gae sdk development console and replaced args with a string as request not available and its just a quick test. I copied the dal.py from trunk and replaced into my copy of last stable release I get there traceback listed below #the code in dev console-- from g

[web2py] Re: DAL level access to GAE entities by named key

2011-10-15 Thread Murray3
It would be great if (when the code is fully tested) some full example code for getting this working was posted / made available. It would be a much welcome addition to the greatly improved (and ongoing :) documentation done on web2py over the last year. cjm On Oct 12, 6:03 pm, howesc wrote: > i

[web2py] Re: jquery mobile and returning DIV() with content format

2011-09-27 Thread Murray3
thanks guys, i will see if I can get my collapsible list generated from a controller function using Anthony's idea. On Sep 27, 8:39 pm, Anthony wrote: > On Tuesday, September 27, 2011 3:33:44 PM UTC-4, kasapo wrote: > > > Ok, Anthony's idea is like a million times better. > > I stole it from a pr

[web2py] jquery mobile and returning DIV() with content format

2011-09-27 Thread Murray3
how do we do this with DIV() Helper? for instance in interactive i want to return a div element for collapsible elements >>>print gluon.DIV( data-role="collapsible" data-theme="contention") thanks

[web2py:36695] handling returned html 401 unauthorised

2009-12-07 Thread murray3
When a user enter incorrect username / password for a twitter post you get a returned html 401 when using massim's twitter_update code. How can you handle this in the code and update the user etc chris -- You received this message because you are subscribed to the Google Groups "web2py-users" gr

[web2py:36683] Re: send a tweet

2009-12-07 Thread murray3
(second attempt: was not showing in the listing of posts!) Hi I got this all working - problem was due to way vars where defined in a SQLFORM.factory. I am developing my code further and added basic validation that the username and password inputs are not blank prior to submitting twiitter_update

[web2py:36669] Re: send a tweet

2009-12-06 Thread murray3
thorized any help appreciated On Nov 30, 11:43 pm, mdipierro wrote: > They are. If you should us the code we can help more. > > On Nov 30, 4:55 pm, murray3 wrote: > > > I am using this function > > def twitter_post(username,password,message): > >     import ur

[web2py:36232] Re: send a tweet

2009-11-30 Thread murray3
I am using this function def twitter_post(username,password,message): import urllib, urllib2, base64, gluon.contrib.simplejson args= urllib.urlencode([('status',message)]) headers={} headers['Authorization'] = 'Basic '+base64.b64encode(username +':'+password) request = urllib2.R

[web2py:36189] Re: send a tweet

2009-11-29 Thread murray3
Nov 29, 10:57 am, murray3 wrote: > see ammendments and it worked thanks > urllib2 and request > > On Nov 28, 10:47 pm, murray3 wrote: > > > def twitter_post(username,password,message): > >     import urllib, urllib2, base64, gluon.contrib.simplejson > >     args= ur

[web2py:36187] Re: RPX service from JanRain rpxAuth

2009-11-29 Thread murray3
actually discovered the answer by scanning the code in rpxAuth.py - if any one else has the same problem. To expose fields in the users profile use: =auth.userprofile.provider =auth.userprofile.pic_url etc etc. cheers On Nov 29, 11:36 am, murray3 wrote: > Hi I am using notabenes rpxAuth mod

[web2py:36161] RPX service from JanRain rpxAuth

2009-11-29 Thread murray3
Hi I am using notabenes rpxAuth module nd it allows me to login to my app via twitter and google no problems. The code automatically creates a profile database as well and in there are the values for my login provider and pic url etc, I am having problems exposing these values and need some help /f

[web2py:36160] Re: send a tweet

2009-11-29 Thread murray3
see ammendments and it worked thanks urllib2 and request On Nov 28, 10:47 pm, murray3 wrote: > def twitter_post(username,password,message): >     import urllib, urllib2, base64, gluon.contrib.simplejson >     args= urllib.urlencode([('status',message)]) >     he

[web2py:36128] send a tweet

2009-11-28 Thread murray3
def twitter_post(username,password,message): import urllib, urlib2, base64, gluon.contrib.simplejson args= urllib.urlencode([('status',message)]) headers={} headers['Authorization'] = 'Basic '+base64.b64encode(username +':'+password) request = urllib2.Request('http://twitter.com

[web2py:36127] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-28 Thread murray3
Nov 28, 1:50 pm, "mr.freeze" wrote: > If you need custom fields you have to create a custom auth table first > then create a mapping in the RPXAuth instance. I hope that makes > sense.  Feel free to email me your code and I will take a closer look. > > On Nov 28, 3:13 am, m

[web2py:36113] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-28 Thread murray3
I am having problems displaying profile data =db.profile.provider and =db.profile.pic_url I cannot get it to work and must be syntax problem, I have tried for instance auth.provider but gives value=none. Any ideas appreciated chrism On Nov 21, 1:33 pm, murray3 wrote: > scratch that!!! >

[web2py:35739] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-21 Thread murray3
scratch that!!! I had the full url to auth.settings.rpx_login_domain='http://localhost: 8000'/init/default/index', should have been just 'http://localhost: 8000' Thanks again guy's for this code:) On Nov 21, 12:41 pm, murray3 wrote: > I have tried the rpxAuth

[web2py:35738] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-21 Thread murray3
I have tried the rpxAuth module and it allowed me to login using a google account. Did not get auth.user when calling from web2py. I decided to try the original prxAuth module which does not allow for local login and I have the same problem. I have been looking at this for a few hours and not s

[web2py:35429] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-16 Thread murray3
Mr Freeze, thanks for this, I am trying to get it to work but seem to have a problem when the iframe choose provider popup displays it does not recognise the rpxnow.com url: Server not found Firefox can't find the server at rpxnow.com. in the controller I have pasted yoiur code as per "slice

[web2py:32791] crude XMPP client

2009-10-13 Thread murray3
Whilst I am awaiting info on ways to code a xmpp client in javascript (current offerings seem to require BOSH and do not seem to want to work with google talk) I thought of trying a crude version just using web2py and jquery. I need to know how a contrroller function (message) from another app (_

[web2py:32377] Re: GAE Tutorial to Web2py

2009-10-07 Thread murray3
technology. Chrism On Oct 7, 12:12 am, murray3 wrote: > This works really well now, thanks. > I want to take it further have you configured any of the javascript > xmpp client libraries to work with this onGAE? > any help > appreciated > chrism > > On Oct 5, 7:35 am, Robin B

[web2py:32332] Re: GAE Tutorial to Web2py

2009-10-06 Thread murray3
if > every request took as long as this cold request, you should make > changes to optimize your app for better performance, since its the > first/warm-up request there is not much you can do about the high CPU. > > Robin > > On Oct 4, 4:42 am, murray3 wrote: > > > Tha

[web2py:32183] Re: GAE Tutorial to Web2py

2009-10-04 Thread murray3
Thanks Robin, Here are some snapshots of the logs, as you can see requests are being made to /_ah/xmpp/message/chat/, I thought I would see the xml / jabber message somewhere? either returned to the view or in these logs? I have tried to write a simple bot / responder but not getting far, any hel

[web2py:32147] Re: GAE Tutorial to Web2py

2009-10-03 Thread murray3
http://testhogg.appspot.com/_ah/xmpp/message/chat page. I see no evidence of the message, am I looking in wrong place or have you any ideas. chrism On Oct 3, 12:26 am, murray3 wrote: > this is just a test of your code: > > http://testhogg.appspot.com/init/default/sendhttp://testhogg.a

[web2py:32124] Re: GAE Tutorial to Web2py

2009-10-02 Thread murray3
> To receive: > > > applications/_ah/controllers/xmpp.py: > > > > def message(): > > >     if request.args[0] == 'chat' and request.method == 'POST': > > >         import logging > > >         message =  request.vars > > >

[web2py:31744] Re: GAE Tutorial to Web2py

2009-09-27 Thread murray3
e =  request.vars > > >         logging.debug(str(message)) > > >         return message > > > > Add this to app.yaml: > > > > inbound_services: > > > - xmpp_message > > > > Check your logs to see incoming XMPP messages, only works on

[web2py:31727] Re: GAE Tutorial to Web2py

2009-09-26 Thread murray3
-Gadu > > > > > >   This is the gd:im element. In XML output, the address and protocol > > > > > are > > > > >   provided as the address and protocol attributes, respectively. See: > > > > >  http://code.google.com/apis/gdata/common-element

[web2py:31494] GAE Tutorial to Web2py

2009-09-22 Thread murray3
I am interested in the way we can convert GAE sample web apps to web2py, in particular the xmpp tutorial : http://code.google.com/appengine/articles/using_xmpp.html Seems straight forward to import the modules etc. How should the following be ported to web2py to handle the xmpp stuff? def main(

[web2py:29821] Re: google group search does not work well, use this instead

2009-09-01 Thread murray3
Thanks, this is very helpful. chrism On Sep 1, 2:23 pm, mdipierro wrote: > Google group search (for this group) does not seem to find old > messages properly. Use this instead: > > http://thread.gmane.org/gmane.comp.python.web2py/ --~--~-~--~~~---~--~~ You receive

[web2py:29496] Re: run python code from onclick event

2009-08-27 Thread murray3
any further help appreciated with this, as I am stuck?? just need to get the contoller action running from an onclick event in the view, at present nothing happens and I'm not sure if it is jpolite or just using the wrong code? regards chrism On Aug 26, 11:13 pm, murray3 wrote: > Ok

[web2py:29457] Re: run python code from onclick event

2009-08-26 Thread murray3
Ok I have a better understanding (i read a jquery ajax tutorial) of what you where trying to do in your first reply. I have amended "=" to "==" and added ":" in the "if not" statement which where missing and caused syntax errors. The problem is that in the view: onclick="{{=URL (r=request,f='check

[web2py:29368] Re: run python code from onclick event

2009-08-25 Thread murray3
)).delete() >                   return 'jQuery('#selector%i' % part_id).html('not > selected') >     else: >           db.prodj_refs.insert(prodj_id=request.args > (0),part_id=part_id) >           return 'jQuery('#selector%i' % part_id).html

[web2py:29329] Re: run python code from onclick event

2009-08-25 Thread murray3
> (0))&(db.prodj_refs.part_id==part.id)).count():}} > checked="checked"{{else:}}not > selected{{pass}} /> > > 7) When you change 6) you wil also need to change the jquery commands > returned by the check() action. > > On Aug 25, 7:17 am, murray3 wrote: > >

[web2py:29322] Re: run python code from onclick event

2009-08-25 Thread murray3
Guy's thanks for your help yesterday. Massimo, I am developing for app engine so the "&" selects do not work and I had to modify '=' to '==' in a couple of places to get the view to load without GAE errors. It is still not quite working, I nested 'if's' for GAE selects perhaps you will see what ne

[web2py:29229] run python code from onclick event

2009-08-24 Thread murray3
is there a way to run some python db.update code in a view by using the onclick event from the checkbox. At present the python code just runs, I put the "checker" in there to try and toggle it off until the onclick event obviously does not run the python code as is. help appreciated chrism

[web2py:28208] jpolite2

2009-08-08 Thread murray3
Has been released. The element structure / labels have been changed from v1. I am looking at it now but trying to understand massimo's jquery.myext.js script which adapts it for web2py. Are you intending to update this soon for jpolite2, or maybe a quick overview of what needs changing so others

[web2py:27147] Re: jPolite solved (almost) all our problems

2009-07-22 Thread murray3
I am very interested in this topic, having used jpolite/web2py as the framework for my app. Main prob I had sems to be the passing of args and vars within jpolite. I have used a workaround of placing my custom form in a non jpolite view and then embedding it within an iframe. Not such a good th

[web2py:26671] Re: custom form problem

2009-07-16 Thread murray3
Any help with this would be great as I am stuck and cannot get it to work :( I had FCKeditor working as wiki editor I was able to open and save fields to the db without any problems. I moved the app code to the jpolite framework and now when I edit a field it does not update the database. The for

[web2py:26372] Re: javascript function call from controller

2009-07-12 Thread murray3
still can't get this to work? any help most appreciated. chrism On Jul 12, 12:56 am, murray3 wrote: > in fact I was trying it with args as that is usal way choosing a db > select set but could not > get it to work - (I thought maybe it was because of the way the > jpolite

[web2py:26371] custom form problem

2009-07-12 Thread murray3
Hi All, Not sure why this does not work using jpolite framework, worked before in standard page? the db prodj.main_tab field is not getting updated. Any help most appreciated. chrism In controller: def m203(): try: thisprodj_id=db(db.prodj.id==request.args[0]).select()[0] except: redire

[web2py:26303] Re: javascript function call from controller

2009-07-11 Thread murray3
in fact I was trying it with args as that is usal way choosing a db select set but could not get it to work - (I thought maybe it was because of the way the jpolite js modules work?) so then I seen your code for passing vars to a controller using ajax and tried that aproach. Still on a long learn

[web2py:26274] Re: javascript function call from controller

2009-07-11 Thread murray3
you use > ':eval' ajax expects to recaive a string containing valid js code. > Your action is returning a serialized table. > > On Jul 11, 12:53 pm, murray3 wrote: > > > Massimo, > > I tried this on following: > > > view m201 (in jpolite framework) > &g

[web2py:26275] Re: javascript function call from controller

2009-07-11 Thread murray3
learning curve I'm afraid:) On Jul 11, 7:24 pm, murray3 wrote: > Thanks, I just want to pass the value "other" to the contoller 'm204' > which will then use > logic to decide the db selection set and then render view m204.html > chrism > > On Jul 11, 7:17 pm,

[web2py:26271] Re: javascript function call from controller

2009-07-11 Thread murray3
Massimo, I tried this on following: view m201 (in jpolite framework) Prodj Categories: in controller def m204(): value=request.vars.m204 prodj=db(db.prodj.genus==value).select (db.prodj.id,db.prodj.name,db.prodj.timestamp,orderby=db.prodj.timesta

[web2py:26078] Best way to store and retrieve geolocations on GAE using web2py

2009-07-09 Thread murray3
I looked at this a few months ago and Geohashing seemed the "recommended" way. I am trying to finish off an open source wiki which has a location based search facility, using google maps, the locations for the places are to be stored in Big table and retrieved and dispayed as markers using stand

[web2py:23411] JPoLite and request.args

2009-06-06 Thread murray3
Is there anything special that needs to be done to pass args from a view module to a controller. I ask as the standard code that works on a "typical" view and controller does not work when used in jpolite: In view module m201: {{for prodj in prodj

[web2py:23232] Re: Jpolite

2009-06-03 Thread murray3
f range any ideas? On Jun 3, 12:01 am, murray3 wrote: > yep, I got it :) > chris > > {{=LI(A(prodj.name,_href=URL(r=request,f='m202',args= > [prodj.id])),_id='m202')}} > > On Jun 2, 11:36 pm, murray3 wrote: > > > I have a table called Prodj. > &

[web2py:23154] Re: Jpolite

2009-06-02 Thread murray3
yep, I got it :) chris {{=LI(A(prodj.name,_href=URL(r=request,f='m202',args= [prodj.id])),_id='m202')}} On Jun 2, 11:36 pm, murray3 wrote: > I have a table called Prodj. > In JPolite if I have the following in a sidebar module (201), what is > the syntax to

[web2py:23152] Jpolite

2009-06-02 Thread murray3
I have a table called Prodj. In JPolite if I have the following in a sidebar module (201), what is the syntax to pass args=[prodj.id] to the appropriate controller (203), for the recieving module (203). side menu Create Prodj: Create A New Pr

[web2py:22742] Re: jPolite solved (almost) all our problems

2009-05-27 Thread murray3
Jpolite works with javascript code running in modules as I have FCKeditor running in one of the modules. I installed jquery jmaps and I have it referenced in the layout.html and the google script with key for localhost. I also tried this previously just using standard google maps insertion code.

[web2py:22577] Re: jPolite solved (almost) all our problems

2009-05-24 Thread murray3
rwise the google javascript just "breaks out of" the module and just goes into a inf' loop! regards chrism On May 24, 2:57 pm, mdipierro wrote: > The latest one should work, does it not? > > On May 24, 6:20 am, murray3 wrote: > > > Static RSS Module just "L

[web2py:22547] Re: jPolite solved (almost) all our problems

2009-05-24 Thread murray3
Static RSS Module just "Loading" is there a fix for this? chrism On May 21, 5:51 pm, murray3 wrote: > just some feedback, I work of a netbook with win xp and Iexplorer > 6.0.2 installed (although i always use firefox by default!). > In IExplorer the tabs tend to disappear and

[web2py:22518] jpolite + gmap

2009-05-23 Thread murray3
Hi, I am experimenting with jpolite and tried to show a google map in a module. Cannot get it to work. Maybe google Javascript code conflicts? Is it possible to get it to work with jpolite at this stage, or does it need further work. any ideas/help appreciated, Thanks Chrism --~--~-~--~-

[web2py:22315] menu

2009-05-21 Thread murray3
I am using: {{=MENU(response.menu,_class='web2py-menu web2py-menu-horizontal'}} with this in menu.db: response.menu = [ ['Index', False, URL(request.application,'default','index')], ['another', False, URL(request.application,'default','another')], ] The menu still

[web2py:22295] Re: jPolite solved (almost) all our problems

2009-05-21 Thread murray3
just some feedback, I work of a netbook with win xp and Iexplorer 6.0.2 installed (although i always use firefox by default!). In IExplorer the tabs tend to disappear and you need o refresh to get them back. Other than that this looks like it blows away several months of interface configuring/deve

[web2py:22209] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-20 Thread murray3
I am using: > {{menu=MENU(response.menu)}} > {{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}} > {{=menu}} with this in menu.db: response.menu = [ ['Index', False, URL(request.application,'default','index')], ['another', False, URL(request.application,'default','another

[web2py:21009] Re: html helpers

2009-05-02 Thread murray3
ode - href=URL(r=request,f='ii',args= [comment.id]),_onclick="iframerefresh(ii)" is incorrect but not sure what synatx should be?? thanks Chrism On May 2, 10:50 pm, mdipierro wrote: > I am guessing you want > > iframe> > > Massimo > > On May 1, 6:24 pm

[web2py:20971] html helpers

2009-05-01 Thread murray3
If I have a page with {{=A(comment.title.upper(),_href=URL (r=request,f='edit_comment',args=[comment.id]))}} http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---

[web2py:19776] Re: Threaded Based discussion examples

2009-04-14 Thread murray3
e the names some more to show what the intent > is more clearly, since "item" is really the requested prodj - Say what you > mean, and your debugging will shift from a mystery, to a check to see if you > are doing the right things :-) > > Hope this helps. > > Regards, > Yark

[web2py:19731] Re: Threaded Based discussion examples

2009-04-14 Thread murray3
Thanks Julio, I changed some things around but still have not got it working. Here is my code: now I have a problem with "id" model: db.define_table("prodj", SQLField("timestamp",'datetime',default=now), SQLField("uuid",length=128,writable=False,default=str(uuid.uuid4 ())), SQLField(

[web2py:19603] Re: Threaded Based discussion examples

2009-04-11 Thread murray3
LQuery(self, '=', value) File "c:\apps\web2py\gluon\contrib\gql.py", line 570, in __init__ right = obj_represent(right, left.type, left._db) File "c:\apps\web2py\gluon\contrib\gql.py", line 505, in obj_represent obj = long(obj) TypeError: long() argument must

[web2py:19588] Threaded Based discussion examples

2009-04-11 Thread murray3
Anyone created any threaded based discussion code similar to what we are using here now. I want to incorporate this into an Open source app I am developing and it needs to run on GAE. I know Reddish did simething similar but it was not updated to work with latest version of web2py, so I am not sur

[web2py:19247] Re: GAE problem "Unable to send email"

2009-04-06 Thread murray3
Vidul, I spent some time looking into this problem, here is my post and Massimo's solution. http://groups.google.com/group/web2py/browse_thread/thread/da75fe05704fef0b/ac7a97e952b39087?hl=en&lnk=gst&q=gae+email#ac7a97e952b39087 regards Chrism On Apr 6, 9:35 am, Vidul Petrov wrote: > The mail o

[web2py:18847] Re: select tables in GAE

2009-03-31 Thread murray3
still struggling to get a solution with this GAE issue. anyone with experience of similar? any help appreciated Chrism On Mar 29, 11:59 pm, murray3 wrote: > Here it is I have commented much whilst testing for mistake > thanks for any help > chrism > -- > model:

[web2py:18752] Re: select tables in GAE

2009-03-29 Thread murray3
27;flagged','boolean',default=False)) db.comment.body.requires=IS_NOT_EMPTY() db.define_table('document', SQLField('uuid',length=128,writable=False,default=str(uuid.uuid4())), SQLField('timestamp','datetime',default=now,writable=False),

[web2py:18726] Re: select tables in GAE

2009-03-29 Thread murray3
I posted this when I got up - must have been still asleep as problem is withcreat function as it is not working there probably is nothing in db table to select? Here is code for create controller and subsequent error output from GAE. Controller: def create(): "creates a new empty wiki page"

[web2py:18725] select tables in GAE

2009-03-29 Thread murray3
I have a wiki app which has problems when I try and run it in GAE SDK. Essentially it is a modifies version of the standard example wiki app from the web2py book. The GAE SDK throws an error when I try index view with the following model, controller, and error output from GAE model: db.define_ta

[web2py:18624] Re: Registration email on GAE

2009-03-25 Thread murray3
is that gmail smtp requires that the sendto > address is the gmail email account. > > Massimo > > On Mar 22, 2:49 pm, murray3 wrote: > > > Massimo, > > yes I am using gmail smtp and gmail account to send! > > Chrism > > > On Mar 22, 3:05 pm, mdipierro wr

[web2py:18461] Re: Registration email on GAE

2009-03-22 Thread murray3
Massimo, yes I am using gmail smtp and gmail account to send! Chrism On Mar 22, 3:05 pm, mdipierro wrote: > I use it and it works fine but Google is more picky about smtp. Are > you using gmail? > > On Mar 22, 7:21 am, murray3 wrote: > > > I have been working on an app w

[web2py:18446] Registration email on GAE

2009-03-22 Thread murray3
I have been working on an app which has auth working fine. I can register and recieve the reg email etc. I am transferring it to GAE SDK, site seems to work ok. The registration email process does not work?? Anyone have an idea, been through this problem before? any help appreciated. Regards Ch

[web2py:18413] Re: Google Authentication + web2py on GAE

2009-03-21 Thread murray3
Looking at all the GAE Users documentation - it seems quite straight forward to authenticate a user using GAE User class. Using the code: from google.appengine.api import users user = users.get_current_user() if user: #user.email() else: #redirect to login: users.create_login_url() If anyone has

[web2py:18191] Re: best auth example?

2009-03-17 Thread murray3
I need to create my own views/ forms for authentication. The examples listed produce conflict with my layout /styles as they auto generate the Auth form. Is there a listing of how you could produce a custom authentication form in a controller? so I could just include {{=cust_Auth_form}} ,for exam

[web2py:17647] RE: T2 Forum App

2009-03-08 Thread murray3
Has the various updates to web2py included for replicating the forum app without T2_plugin, or do I still follow your previous methods oulined in the posts last november? I.E. Whats the best way of implementing a discussion forum with 1.57 version? thanks chris Here is a forum in web2py. 1) It

[web2py:17512] Re: Textarea on SQLFORM

2009-03-04 Thread murray3
, 8:17 pm, murray3 wrote: > Thanks Massimo, > I did try using _value=XML(thipage.body,sanitize=True)  previouslyand > although it saves the value in correct format, when the input button > clicked /  activated thenicedittextarea clears? > > If you click it again the updated record d

[web2py:17478] Using Nicedit on a textarea

2009-03-04 Thread murray3
I have a problem with nicedit in a form textarea not displaying the db.name.field (i.e. db.page.body) data that has been previously updated in the form using nicedit and then submitting. The data displays after submit, and I can display it on another page using {{=XML(page.body,sanatize=true}} bu

[web2py:17359] Re: FORM db.update_record clears nicEdit panel

2009-03-02 Thread murray3
> you may want to repost your problem in case sombody else if faster > than me. > > On Mar 2, 3:08 pm, murray3 wrote: > > > Any ideas Massimo, > > Is there a problem that's is hard to fix? I am working on other > > parts of my app until I get a fix for this prob

[web2py:17345] Re: FORM db.update_record clears nicEdit panel

2009-03-02 Thread murray3
Any ideas Massimo, Is there a problem that's is hard to fix? I am working on other parts of my app until I get a fix for this problem. thanks Chrism On Mar 1, 9:48 am, murray3 wrote: > I have emailed the testwiki app and info to you. > thanks > chrism > > On Mar 1, 4:40 

[web2py:17199] Re: FORM db.update_record clears nicEdit panel

2009-03-01 Thread murray3
I have emailed the testwiki app and info to you. thanks chrism On Mar 1, 4:40 am, mdipierro wrote: > Please send me you app and instructions to reproduce the problem. > > On Feb 28, 6:17 pm, murray3 wrote: > > > Massimo, > > that fixes 50% of problem, I can now edit

[web2py:17171] Re: FORM db.update_record clears nicEdit panel

2009-02-28 Thread murray3
t the docs etc. Any help with this, appreciated. chrism On Feb 28, 2:07 pm, mdipierro wrote: > I think you need > > form.accepts(.,keepvalues=True) > > On Feb 28, 3:42 am, murray3 wrote: > > > I have a test Wiki Controller which now defines a form with the > > pro

[web2py:17138] FORM db.update_record clears nicEdit panel

2009-02-28 Thread murray3
I have a test Wiki Controller which now defines a form with the properties I can customise, I have a text area which is edited by nicEdit. On submit saves contents to my db. and can be dispalayed on another page with {{=XML(page.body,sanitize=True)}} while this is OK, when clicking submit, the cod

[web2py:17093] Re: Textarea on SQLFORM

2009-02-27 Thread murray3
> >                 elif form.errors: > >                         response.flash="form is invalid!" > > About your first problem: > > replace > > _value=thispage.body > > with > > _value=XML(thipage.body,sanitize=True) > > On Feb 27, 2:27 am, murray3 wrote: >

[web2py:17054] Re: Textarea on SQLFORM

2009-02-27 Thread murray3
works with the following in controller: def edit(): try: thispage=db(db.page.id==request.args[0]).select() [0] except: redirect(URL(r=request,f='index')) form=FORM(DIV(TEXTAREA(_style="width: 98%;", _name="wikibody1", _id="wikibody1",_value=thispage.

[web2py:17012] Re: Textarea on SQLFORM

2009-02-26 Thread murray3
een to offer my services to Document this little journey of discovery for others :) chrism On Feb 26, 12:09 am, mdipierro wrote: > thispage.update_record(form.vars.wikibody1) > > should be > > thispage.update_record(wikibody1=form.vars.wikibody1) > > On Feb

[web2py:16946] Re: Textarea on SQLFORM

2009-02-25 Thread murray3
ppreciated. Chris On Feb 24, 2:27 am, Yarko Tymciurak wrote: > If you make a view for your form this will help you control it. > If you use FORM(...) instead of SQLFORM()  this will not generate tables. > > Seehttp://mdp.cti.depaul.edu/examples/static/cookbook.pdf > > Then you will

[web2py:16820] Re: Textarea on SQLFORM

2009-02-23 Thread murray3
gets > > inserted in the >    if form.accepts(request.vars, session): > >        response.flash='form accepted' > >    elif form.errors: > >        response.flash='form has errors' > >    return dict(form=form) > > > Regards, > >

[web2py:16726] Textarea on SQLFORM

2009-02-22 Thread murray3
I have been enjoying the flexibiity of web2py, and my app idea is progressing well, it is something I have been contemplating for a long time and I will release it when I get it to a suitable stage as to take it further it needs to be open source. So with that in mind, I would like to solve my mo

[web2py:16668] Re: Custom forms with SQLFORM

2009-02-21 Thread murray3
thanks for the help on this, but I didn't get it to work and I have been preocupied with designing a railway(day job:). I am still using standard SQLFORM object as this allows for the nicEdit markup to be saved to db. When I try using custom form it does not submit. All I wanted todo was use a te

[web2py:16467] Re: Custom forms with SQLFORM

2009-02-17 Thread murray3
w but I am trying to learn this stuff (slowly), this is a hobby:) I just want to save my nicedit textarea data to the db and I wanted a larger text area than SQLFORM() default. thanks chris On Feb 17, 2:53 pm, DenesL wrote: > On Feb 17, 6:07 am, murray3 wrote: > > > using the fa

[web2py:16427] Re: Custom forms with SQLFORM

2009-02-17 Thread murray3
using the famous mywiki as my testbed i could do with a little more direction with implementing the new custom sqlforms: in model: db.define_table('page', SQLField('timestamp','datetime',default=now), SQLField('title'), SQLField('body','text')) in controller: def edit(): "edit fo

[web2py:16408] google and openid authentication

2009-02-16 Thread murray3
what would be the best way of integrating google or openid authentication into a web2py application? chrism --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send em

[web2py:16374] Re: using nicEdit on mywiki

2009-02-16 Thread murray3
; I do not know. That is used in applications/admin/views/default/ > htmledit.html and it works. > > On Feb 15, 6:52 pm, murray3 wrote: > > > yes and it failed also! > > > On Feb 16, 12:06 am, mdipierro wrote: > > > > did you replace 'body' with the

[web2py:16361] Re: using nicEdit on mywiki

2009-02-15 Thread murray3
yes and it failed also! On Feb 16, 12:06 am, mdipierro wrote: > did you replace 'body' with the id of the textarea? > > Massimo > > On Feb 15, 4:16 pm, murray3 wrote: > > > Massimo, > > does not work at all using this code, the icons where only missing o

  1   2   >