[web2py] Re: Execute Command On Remote Server Via SSH from Web2py

2013-10-09 Thread dhmorgan
is web2py running under user pi?

On Wednesday, October 9, 2013 9:57:00 AM UTC-5, Jason Gray wrote:

 Hi All,

 I'm not sure that this is exactly a web2py question, but it seems like 
 this is where the smart people hang out so I'll post here in hopes of some 
 help.

 I am trying to execute a command like this from within a web2py page:

 ssh pi@remotehost.local /etc/scripts/script.sh parameter1 parameter2  
 /etc/scripts/logs/script.txt

 I have ssh keys installed so the user pi can log in to remotehost.local 
 password free and it works from the terminal

 However, I have web2py installed in apache using this script:


 http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh

 So I think it is a user/permissions/account issue that I am not sure how 
 to troubleshoot.

 Any ideas or suggestions?

 Jason


-- 
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: Modifying routes.example.py to routes.py

2013-10-07 Thread dhmorgan
the old routes.example.py that was in the root web2py directory is now in 
web2py/examples and is named routes.pattern.example.py

On Monday, October 7, 2013 5:20:24 AM UTC-5, Bedour Alshaigy wrote:

 Good morning everyone,

 I am a new web2py user. I am trying to modify  routes.example.py to 
 routes.py (to make one of my apps the default apps), however the only file 
 I can find with that name is in the welcome folder (attached), and when I 
 open it it looks like this (attached). Is this the right file, and should I 
 make a copy and call it routes.py and post it inside the applications 
 folder or in the web2py folder? Many thanks.


-- 
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: Is it mandatory to add new html page for every new function ?

2013-09-06 Thread dhmorgan
for any function, you can specify the template to be used to render the 
data you return; a couple of helpful bits from the book can be found at:
http://www.web2py.com/books/default/search/29?search=response.view%2C+vars%29http://www.web2py.com/books/default/search/29?search=response.render%28view%2C+vars%29

essentially, in your function, you can set the template using 
response.view = 'controller_name/template_name.ext'; alternately, you can 
combine the template and data in one with return 
response.render('template_path',dictionary_name)

On Friday, September 6, 2013 10:16:46 AM UTC-5, kranthi aeronaut wrote:

 hii all , i am new to web2py , it seems that in web2py for every function 
 we declare in default.py page , we should also create a new html page with 
 same name of function , is this mandatory or is there any other way to 
 implement the logic ??


-- 

--- 
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] Document for Fedora Deployment

2013-08-30 Thread dhmorgan
please also post on web2pyslices.com

-- 

--- 
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: tuple and list problem.

2013-08-22 Thread dhmorgan
if you want to end up with a tuple (as VCARDID_NAVLIST is), you can convert 
the list:reference string with:

navlist=VCARDID_NAVLIST + tuple(form.vars.navID[1:-1].split('|'))




On Thursday, August 22, 2013 5:58:51 AM UTC-5, Annet wrote:

 I have these constants:

 INTERFACENAVID=19
 CRUDINTERFACENAVID=20
 SWITCHBOARDNAVID=21
 INTERFACESETTINGSNAVID=22
 FUNCTIONSETTINGSNAVID=23
 LAYOUTNAVID=24
 STYLENAVID=25
 YOURSTYLENAVID=26
 SMARTLINKSNAVID=27
 DOWNLOADVCARDNAVID=28
 GOOGLEMAPSNAVID=29
 QRCODENAVID=30
 TEXTNAVID=31
 WORDMARKNAVID=32
 HEADLINENAVID=33
 VALUEPROPOSITIONNAVID=34
 HOMEPAGENAVID=35
 PROMONAVID=36


 FREEVCARDID_NAVLIST=STYLENAVID,SMARTLINKSNAVID,HEADLINENAVID

 VCARDID_NAVLIST=LAYOUTNAVID,STYLENAVID,SMARTLINKSNAVID,DOWNLOADVCARDNAVID,QRCODENAVID,HEADLINENAVID,VALUEPROPOSITIONNAVID


 In a function I have the following code:

 if categoryID==FREEVCARDID:
 navlist=FREEVCARDID_NAVLIST
 elif categoryID==VCARDID:
 navlist=VCARDID_NAVLIST + form.vars.navID # this is a list:reference
 navs=db(db.nav.id.belongs(navlist)).select(orderby=db.nav.id)

 This  works for categoryID=FREEVCARDID but returns the following error for 
 categoryID=VCARDID:

 TypeError: can only concatenate tuple (not list) to tuple


  I thought I'd change my code to:

  tmpnavlist=[VCARDID_NAVLIST] + form.vars.navID 
  navlist=tuple(tmpnavlist)

 but that returns the following error:

 File /Users/annet/web2py/applications/mock/controllers/cmsinterface.py 
 http://127.0.0.1:8000/admin/default/edit/mock/controllers/cmsinterface.py, 
 line 135, in crudInterface
 navs=db(db.nav.id.belongs(navlist)).select(orderby=db.nav.id)

 

 ValueError: invalid literal for int() with base 10: 
 '|24|25|27|28|30|33|34|38|39|48|'


 Is there a way to solve this problem?


 Kind regards,

 Annet




-- 

--- 
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: Nice change to admin interface for editing files, what about static files?

2013-08-05 Thread dhmorgan
me too (the first time I actually want to click on the silly little link, 
and it's not there (I guess because the original post was marked as 
'complete'))

On Monday, August 5, 2013 5:48:45 PM UTC-5, LightDot wrote:

 I think missing static files on the left menu will be perceived like an 
 UI/UX oversight.

 Just to note, I overcome this by:
 - using a separate browser tab for css and keeping it open all the time
 - or, opening the css file first and then opening other editor tabs next 
 to it (the only way to get it into an internal editor tab).

 Also, Ctrl-S doesn't work for me when editing css (2.6.0-dev, works for 
 views, etc.), but I didn't have time to look into it. This is more 
 annoying, as it results in scrolling to save and therefore losing the 
 position within the css file.

 Anyway, isn't having that much static files to render the admin inoperable 
 a border case? Assuming these would be media files, could the static/css 
 directory be included for the left menu anyway?

 IMHO, when using web2py to code web pages, css gets edited as often as any 
 other controller, module or view, if not more. Come to think of it, if not 
 more, than certainly more often. Css tends to get build up as the coding 
 progresses, hence a coder returns to it often.

 Regards,
 Ales


 On Monday, August 5, 2013 9:00:20 PM UTC+2, Niphlod wrote:

 Because potentially you can have zillions of files in static. Seems that 
 someone plays heavy with the contents of the static folder, and it would be 
 counter-productive to have the full list on the left-bar. Also, generally 
 you edit static files 1% of the times you edit instead models, controllers 
 and views. 



-- 

--- 
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: Deploying on Open Shift Error

2013-08-04 Thread dhmorgan
so are you now running web2py from source, using Python 2.6 or 2.7 ? 



On Sunday, August 4, 2013 1:36:24 AM UTC-5, ndave wrote:

 Hi,

 I tried doing what was said but it didn't work out for me.  I am trying to 
 install in windows 8 and it just didn't work and I keep getting the same 
 error again.

 Thanks


 On Sat, Aug 3, 2013 at 1:17 AM, Massimo Di Pierro 
 massimo@gmail.comjavascript:
  wrote:

 You should use web2py form source and install distutils (
 http://stackoverflow.com/questions/3810521/how-to-install-python-distutils) 
 and gitpython (https://pypi.python.org/pypi/GitPython/).

 On Saturday, 3 August 2013 02:51:27 UTC-5, ndave wrote:

 Hi,

 Could anyone tell me how to deploy the app we created on Open shift? I 
 tried the option but I keep getting the error distutils not installed

 I need steps on how to deploy and what needs to be exactly done. I am 
 stuck here and unable to proceed.

 Thanks,

  -- 
  
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/web2py/4Nw0DcXfCsw/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 web2py+un...@googlegroups.com javascript:.
 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: Fail to recognize json payload in a content-type: application/json POST request

2013-08-01 Thread dhmorgan
local server will automatically use generic views if a corresponding view 
is not found, which is the case with those examples; this is disabled by 
default for production environments but can be overwritten

In chapter 4 (the Core), there is this from the book:


   - If a view is not found, web2py tries to use a generic view. By 
   default, generic views are disabled, although the 'welcome' app includes a 
   line in /models/db.py to enable them on localhost only. They can be enabled 
   per extension type and per action (usingresponse.generic_patterns). In 
   general, generic views are a development tool and typically should not be 
   used in production. If you want some actions to use a generic view, list 
   those actions in response.generic_patterns (discussed in more detail in 
   the chapter on Services).



check 

On Thursday, August 1, 2013 1:53:09 AM UTC-5, Ray (a.k.a. Iceberg) wrote:

 To whom it may concern:

 I tried posting vars in json format, with content-type: application/json 
 header, to my web2py application.

 When the above test is run on my laptop, i.e. requests are sent directly 
 to web2py's rocket web server, recent web2py (the 2.5.1-stable) can 
 successfully decode the payload into request.vars, as expected as mentioned 
 in https://groups.google.com/d/msg/web2py/9YdxVpuJlA8/ek0zJae5U9YJ

 But when I deploy my application to my production server, the same web2py 
 2.5.1-stable can not recognize the payload and the request.vars are always 
 empty. How come?

 My production server is running a web2py (was 2.4.6, and then manually 
 overwritten by those files in 2.5.1's web2py_src.zip), behind apache's 
 mod_wsgi, (which itself is behind a global nginx, but that architecture is 
 a webfaction convention which I think is not relevent).

 Below is the request full content:

 *POST /examples/simple_examples/status/foo/bar.json HTTP/1.1*content-type: 
 application/jsonHost: example.comContent-Length:14user-agent: fake
 Connection:Keep-Alive


 {foo: bar}


 And below is part of the web2py response, showing the request content. You 
 can see web2py got the correct content type header, but still fail to decode 
 the json payload in request.

 env:






 content_length:
 14
 content_type:
 application/json
 http_connection:
 close
 http_forwarded_request_uri:
 /examples/simple_examples/status/foo/bar.json
 http_host:
 sandbox..com
 http_http_x_forwarded_proto:
 http
 http_https:
 off
 http_user_agent:
 fake
 http_x_forwarded_for:
 107.23.xxx.xxx
 http_x_forwarded_host:
 sandbox..com
 http_x_forwarded_proto:
 http
 http_x_forwarded_server:
 sandbox..com
 http_x_forwarded_ssl:
 off


 post_vars:

 vars:

 wsgi:
 environ:
 CONTENT_LENGTH:
 14
 CONTENT_TYPE:
 application/json







-- 

--- 
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] admin password

2013-07-29 Thread dhmorgan
python web2py.py

-- 

--- 
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: Fresh Wizard install and plugin wiki not working...

2013-07-27 Thread dhmorgan
I don't know the answer to your problem, but you'll presumably be better 
off using or experimenting with auth.wiki rather than plugin_wiki, as 
plugin_wiki is probably not getting developed further and the auth.wiki has 
most of the functionality and performs better, according to various posts 
here over the past year.



On Saturday, July 27, 2013 6:10:05 AM UTC-5, Dansant vzw wrote:

 I have the same problem with the latest version I downloaded only 
 yesterday.
 I followed the tutorial step by step but called the app wikexperiment 
 and had the following problem:

 If I try to access 
 http://127.0.0.1:8000/wikexperiment/default/http://127.0.0.1:8000/wikexperiment/default/user/loginindex.html
  
 I'am redirected to http://127.0.0.1:8000/wikexperiment/default/user/login and 
 the browser is showing the following error message:

 invalid function (default/user)

 Next I tryed what you suggested and created a user via appadmin, created 
 the group wiki-editor and made myself member of that group.

 When after that I try to reach login page to test login, I'am again 
 redirected 


 http://127.0.0.1:8000/wikexperiment/default/user/login?_next=/wikexperiment/appadmin/index

 and the same message shows up in the browser.

 For the moment I'am more or less stuck with plug_in wiki I guess. Is there 
 anyway I can fix this myself?

 Kind regards and thanx in advance for any help.

 Cor

 Op woensdag 26 januari 2011 08:15:48 UTC+1 schreef encompass het volgende:

 I installed the plugin wiki and when I try to access application_name/ 
 plugin_wiki/ and login it tells me access denied.  Did I do something 
 wrong?



-- 

--- 
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: Need Apache help for uploads directory

2013-07-24 Thread dhmorgan
usually this setup makes www-data the owner of /var/www/ and everything 
beneath it, so you'll have to (a) do file operations as 
root/sudo/administrator, (b) add yourself to www-data group and give write 
permission to group, or (c) temporarily give yourself ownership and then 
change it back

in order to have uploaded files deleted when removed from the database, set 
autodelete=True in table definition Field('image', 'upload', 
autodelete=True)



On Wednesday, July 24, 2013 4:51:05 AM UTC-5, Joe Barnhart wrote:

 So a central part of my website is a repository of files/objects that are 
 added and removed.  I've chosen to use the uploads folder in my 
 application directory, with additional feature of scattering the files into 
 subdirectories (because I expect a LOT of them).

 I'm trying the stock apache2 setup from the book but I find it has no 
 provision for permissions on the uipload directory.  I copied the setup for 
 the static directory and was able to put files in the directory, but I 
 can't delete files from the directory within my site.

 Has anyone worked out the changes needed to the stock Apache2 setup that 
 accommodates the upload directory?  Seems like it would be a nice 
 addition/update to the book setup.

 Joe B.


-- 

--- 
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: need help testing app

2013-07-20 Thread dhmorgan
After installing BeautifulSoup, it ran fine. Results matched those provided 
by wunderground. 

https://lh5.googleusercontent.com/-Q9oTeGGJHug/UesEfjZbvnI/ByY/maI-KdGE7UA/s1600/greaneym-weather.png


On Saturday, July 20, 2013 4:18:10 PM UTC-5, greaneym wrote:

 Hello,

 I would like to share an app with the web2py community, and also am asking 
 for help testing it.

 https://github.com/greaneym/weather

 It needs more work but please feel free to try it.  It gave me some 
 practice using BeautifulSoup. It uses the National Weather Service's web 
 service to provide weather near you (US only).

 Thanks!
 Margaret


-- 

--- 
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: ast module

2013-07-19 Thread dhmorgan
the message cannot import ... often implies cannot locate rather than 
there's something wrong with the file or the importer's capabilities

what you are describing suggests that the ast module is in the python path 
associated with your script (the one at /usr/bin/python, which is the one 
used if you invoked the script with ./my_test_script.py) and not in the 
path of the python you are running web2py with; 

try which python at command line to identify the one being used if you 
are starting web2py with python web2py.py ... start python at command 
line and try importing ast and see what results; 



On Friday, July 19, 2013 8:09:40 AM UTC-5, Auden RovelleQuartz wrote:

 on regular python - for example on a www.compilr.com account, I am able 
 to create and successfully execute this trivial program (in the {} brackets:

 {

 #!/usr/bin/python  

 import ast
 l = ast.literal_eval('[a,31,c]')
 l = [i.strip() for i in l]
 print l[1]

 }


 but when I try to use the ast module within the web2py framework as in 
 this controller function:

 {

 def index():
 import ast
 rec = db(db.audentest.id  0).select()
 item = rec[0]
 l = ast.literal_eval(item)
 l = [i.strip() for i in l]
 quantity1 = l
 link = A(Test View, _href=URL(r=request,f=testview))
 return dict(link = link, quantity1 = quantity1)
 }

 I get the following error trace:

 {

 Traceback

 1.
 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.

 Traceback (most recent call last):
   File /home/www-data/web2py/gluon/restricted.py, line 212, in restricted
 exec ccode in environment
   File /home/www-data/web2py/applications/omniavx/controllers/developer.py 
 https://omniavx.com/admin/edit/omniavx/controllers/developer.py, line 26, 
 in module
   File /home/www-data/web2py/gluon/globals.py, line 194, in lambda
 self._caller = lambda f: f()
   File /home/www-data/web2py/applications/omniavx/controllers/developer.py 
 https://omniavx.com/admin/edit/omniavx/controllers/developer.py, line 2, in 
 index
 import ast
   File /home/www-data/web2py/gluon/custom_import.py, line 81, in 
 custom_importer
 raise ImportError, 'Cannot import module %s' % str(e)


 }


 Does anyone know how to import the ast module so that it works in the 
 web2py framework?

 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.




[web2py] Re: how to use auth.wiki extra and env

2013-07-17 Thread dhmorgan
Thank you both for helping me out here.

Changing the lambda, as indicated in the pending book correction, works.


in controller:

def index(): 
return auth.wiki(env=dict(join=lambda a:-.join(a.split(,


in wiki page body:

@{join:'this',that','the other'}

@{join:how,you,doin'} 

result:

'this'-'that'-'the other'

how-you-doin'


Danny



On Wednesday, July 17, 2013 7:16:03 AM UTC-5, Alan Etkin wrote:

 I have a possible correction here

 https://github.com/mdipierro/web2py-book/pull/86


-- 

--- 
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: How to make app setup / is it possible to have modelless app?

2013-07-17 Thread dhmorgan
you may want to look at how tiny_website (
https://github.com/espern/tiny_website) handles its setup at first run of 
application

On Tuesday, July 16, 2013 5:34:55 PM UTC-5, Dragan Matic wrote:

 What would be the best way to create an app setup? After 
 uploading/installing an app to a server I would like a user to be able to 
 start a setup page where he would choose a database/user/password and a few 
 other configuration parameters. Problem is that for every called page model 
 is executed and it wants to create a db object and create tables. Is it 
 possible to execute a controller without a model and execute a model only 
 after setting up database parameters?


-- 

--- 
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: Relative links inside builtin wiki pages

2013-07-17 Thread dhmorgan
you can, in your controller, call auth.wiki() with your needed variables:

return auth.wiki(env=dict(host=lambda h:request.env.http_host,islocal= 
lambda l:request.is_local)

and in the wiki page body, use @{host:} to construct your link:

[[ @{host:/someapp/some/path} ]]

this works for me, though I'd like to be able to do the same with 
wiki-menu; even though the above example renders correctly in wiki-menu's 
page view, it gets mangled in the drop-down menu itself.


On Wednesday, July 17, 2013 6:40:29 AM UTC-5, peibol wrote:

 Hi there, simple question... I'd like to embed links inside the wiki pages 
 to some views of my application. Is it possible to use some kind of helper, 
 or to embed python expressions in {{}} in order to avoid writing absolute 
 urls (which are different in localhost development and maybe dependent of 
 deployment)
 Thanks
 Pablo


-- 

--- 
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: Fresh instal of web2py on raspberry

2013-07-16 Thread dhmorgan
if there is something else that needs to run on 8000, use an alternative 
port with:

$ sudo python.py web2py.py -a 'password' -p 8001

to find out which process is running on 8000, try:

$ sudo netstat -lpn | grep 8000

if it is only an unwanted web2py instance, at the end of this line 
should be a /python where  is the  process number you can kill with

$ kill -SIGTERM 

Danny

On Tuesday, July 16, 2013 2:54:13 AM UTC-5, ajitam wrote:

 Hi,

 Until now I install web2py with script setup-web2py-ubuntu.sh but now I 
 need to run web2py manualy because I need to run it as sudo (to use GPIO). 
 So I decided to do a fresh install of Rasberry and then clone web2py from 
 github.

 When I run python web2py.py i got prompt for password and then

 ERROR:Rocket.Errors.Port8000:Socket 127.0.0.1:8000 in use by other 
 process and it won't share.
 WARNING:Rocket.Errors.Port8000:Listener started when not ready.

 BTW (maybe I have some facts mixed up) does web2py need apache (as far as 
 I know - it doesn't)

 thx


-- 

--- 
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] how to use auth.wiki extra and env

2013-07-16 Thread dhmorgan
I'm experimenting with auth.wiki() using the book's instructions; using 
web2py 2.60; created new simple app (authwiki) via the admin wizard


I'm attempting to utilize @(join:a,b,c) in the body of my wiki page, 
having first set the controller to return auth.wiki(env=dict(join=lambda 
a,b,c:%s-%s-%s % (a,b,c)))

@(join:a,b,c) goes unrendered, as does @join:a,b,c

@{join:a,b,c} and @{join:(a,b,c)} both produce an error indicating:

ERROR: lambda() takes exactly 3 arguments (1 given)


In controllers/default.py: 

def index():
return auth.wiki(env=dict(join=lambda a,b,c:%s-%s-%s % (a,b,c)))


I also tried the same using extra instead of env in the auth.wiki() 
call and got the same or similar results.


This is the actual body text (the first lines with space after @ are for 
displaying:

- brackets and colon

@{join:'how','you','doin'} 

- brackets, colon and parenths

@{join:('how','you','doin')}

- parentheses and colon

@(join:'how','you','doin')

- colon only

@join:'how','you','doin'

-- 

--- 
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: web2py roadmap

2013-07-14 Thread dhmorgan
Love it!

On Sunday, July 14, 2013 3:30:05 PM UTC-5, Niphlod wrote:

 web2py's developers work often behind the curtain and users are not able 
 to see what they're working on. Historically we tracked down 
 feature-requests and todo-lists on google code, but it's a nightmare to 
 track them and work with it efficiently.

 On a nice tip received by a power web2py user, we (developers) decided to 
 create something more readable to give us (developers AND users) a nice 
 representation on what's going on.

 Please welcome the official trello board for web2py's roadmap : 
 https://trello.com/b/d3aqBbBl


-- 

--- 
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: test_has_right_title does not pass in the exercise given in :http://killer-web-development.com/

2013-06-25 Thread dhmorgan
you're welcome; I'd been wanting to run through the tutorial, 

yes,within test_static_pages.py (though I guess you've probably tried it by 
now) it will work that way; I don't know selenium well enough to say 
whether his example should work or whether browser.title is the preferred 
way; I'd comment to him on the site but it's taken over by spammers

On Tuesday, June 25, 2013 4:08:25 AM UTC-5, shai...@signumsol.com wrote:

 Thank you so much for responding Danny.
 Do you mean to say that I need to change the statement :title = 
 self.browser.find_element_by_tag_name('title')  to...
title = self.browser.title ...??

 On Monday, June 24, 2013 12:12:20 PM UTC+5:30, shai...@signumsol.comwrote:


 In the tukker application example given in the killer-web-development.comthe 
 test_has_right_title fails in-spite of having the exact code and 
 steps followed according to the instructions on the website. 
 The message I get after running the application is :

 FAIL: test_has_right_title (test_static_pages.TestPrivacyPage)
 --
 Traceback (most recent call last):
   File 
 /home/shailajack/Desktop/python_prog/web2py/applications/tukker/fts/test_static_pages.py,
  
 line 18, in test_has_right_title
 self.assertEqual('Tukker.Me Privacy Policy', title.text)
 AssertionError: 'Tukker.Me Privacy Policy' != u''


 Can anyone please help me to figure out where I'm going wrong??

 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.




[web2py] Re: test_has_right_title does not pass in the exercise given in :http://killer-web-development.com/

2013-06-24 Thread dhmorgan
That is strange behavior. I tried it also, and it gave the error you 
experienced. Here are some observations from my experiments.

It's saying your title string is empty; yet if you look in the DOM via 
Firebug, title is being set correctly, just as shows up in the title bare 
of the browser.

You can properly obtain the pages title straightforwardly via 
self.browser.title 

It doesn't matter whether title is hard-coded or generated by 
{{=response.title}}

Selenium will correctly find and return other tags when using the 
self.browser.get_element_by_name method.

The same error occurs using Selenium 2.15 (as in the example) or 2.33, as 
would be installed via easy_install.

It doesn't seem to be a Web2Py related issue.

Hope this helps.

Danny

On Monday, June 24, 2013 1:42:20 AM UTC-5, shai...@signumsol.com wrote:


 In the tukker application example given in the killer-web-development.comthe 
 test_has_right_title fails in-spite of having the exact code and 
 steps followed according to the instructions onsn't the website. 
 The message I get after running the application is :

 FAIL: test_has_right_title (test_static_pages.TestPrivacyPage)
 --
 Traceback (most recent call last):
   File 
 /home/shailajack/Desktop/python_prog/web2py/applications/tukker/fts/test_static_pages.py,
  
 line 18, in test_has_right_title
 self.assertEqual('Tukker.Me Privacy Policy', title.text)
 AssertionError: 'Tukker.Me Privacy Policy' != u''


 Can anyone please help me to figure out where I'm going wrong??

 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.




[web2py] Re: CMS functionality

2013-05-13 Thread dhmorgan
by static, it's not necessary that it be a treated as a typical static 
file--served up directly and without regard for access permissions; the 
xhtml content can be file- or db-based, with access being permission-based 
regardless

to the poster's original question, I'd like to see such an implementation 
as well; I haven't (yet) seen a similar example, but Web2Py should 
certainly be able to provide much of what you'll need, along with methods 
for constructing that which remains

On Monday, May 13, 2013 12:15:48 PM UTC-5, Derek wrote:

 I don't see a question here. If you are asking if it would be possible, 
 then yes. You wouldn't want to put your content in 'static' unless you want 
 to bypass the web2py authentication and access control for it.


 On Monday, May 13, 2013 2:40:34 AM UTC-7, leon wrote:

 Hello,
 I use DITA Open Toolkit for generating xhtml content (short HOWTO 
 documents). 
 I wonder if it would be possible to use web2py to create CMS which main 
 functionality would be to* list and browse through* the xhtml content 
 (static content).
 Furthermore, it would be desirable to perform search over the existing 
 metadata contained in xhtml.
 I am a seasoned pro in python but have not worked with web frameworks.
 Grateful for advice.
 regards
 Leon



-- 

--- 
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] login form registration problem with encoding

2013-05-11 Thread dhmorgan
This sounds like an interesting problem. One I have no experience with, 
however; yet it deserves an answer.

Searching this group using the query, postgreSQL 'ascii' codec can't 
decode resulted in only one post other than yours. It's nearly three years 
old, but the poster did get to a workaround (It is kind of cheating but i 
works..  is how he describes it.) Perhaps that will be instructive, or 
perhaps you have seen it already and have either ruled it out or don't know 
how it applies to your situation.

I scaled back the search query to UnicodeDecodeError and there were a 
bunch more. Most of them are dated, however, which makes me wonder if this 
is an issue relating to an older version of Web2Py.

Have you solved this problem yet? If so, how? If not, which versions of 
Web2py, PostgreSQL, and adapter, as well as some (or all) information about 
the model, controller, and view involved?

I apologize for not being able to answer your question directly, but 
perhaps if you still need one, this will be picked up by one who knows. For 
sure, you should address the above paragraph in order to facilitate that 
happening.

Danny

On Thursday, May 9, 2013 1:41:30 AM UTC-5, Yebach wrote:

 The problem occurs when after filling the register form user clicks 
 register button.

 this is the basic problem of error

 (dp1
 S'output'
 p2
 Stype 'exceptions.UnicodeDecodeError' 'ascii' codec can't decode byte 
 0xc5 in position 2: ordinal not in range(128)
 p3
 sS'layer'
 p4
 S'/usr/local/web2py/applications/iurnik/controllers/user.py'
 p5
 sS'code'
 p6
 S'def user():\nform = auth()\n#auth.settings.controller=user\n   
  return dict(form=form)\n\n\nresponse._vars=response._caller(user)\n'
 p7
 sS'snapshot'
 p8
 (dp9
 S'exception'
 p10
 (dp11
 S'__getslice__'
 p12
 Smethod-wrapper '__getslice__' of exceptions.UnicodeDecodeError object


 Thank you



 On Wednesday, May 8, 2013 1:11:26 PM UTC+2, Ricardo Pedroso wrote:

 On Wed, May 8, 2013 at 7:24 AM, Yebach vid@gmail.com wrote: 
  Hello 
  
  So I am using web2py server on Linux. I also have a postgreSQL server 
 on 
  linux and when a user tries to login via login form and uses letters in 
 name 
  and surname such as š ž č ć  the following error appears 'ascii' codec 
 can't 
  decode byte 0xc5 in position 0: ordinal not in range(128) 
  
  Now the same web2py code is running on windows 7 (on my computer, 
 including 
  postgres database) and I do NOT receive that kind of error. 
  

 Can you make a minimal application that replicate the issue? 
 Can you show us the traceback? 
 When exactly the error happen? In the login POST request, or after it, 
 in the redirect 



-- 

--- 
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: Installing a plugin with GAE

2013-02-12 Thread dhmorgan
You can run it 1st not as a GAE application.

-- 

--- 
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] admin shell AttributeError: 'DAL' object has no attribute '_lazy_tables'

2013-01-26 Thread dhmorgan

While working through the DAL section of the book, I am getting lazy_tables 
errors. Have I missed something? Is it a bug?

Here is the output from the shell, entered via welcome app controllers in 
the admin interface:


web2py Shell (2, 4, 1, 'alpha.2', datetime.datetime(2013, 1, 24, 10, 51, 1))

In [1] : db=DAL('sqlite://test.db')

In [2] : print db
DAL db_uid=59cc7a14d8c00f65ad9fcfbb2abd12f4

In [3] : print db._dbname
Traceback (most recent call last):
  File /home/dhmorgan/servers/241/gluon/contrib/shell.py, line 234, in run
exec compiled in statement_module.__dict__
  File string, line 1, in module
  File /home/dhmorgan/servers/241/gluon/dal.py, line 7563, in __getattr__
if ogetattr(self,'_lazy_tables') and \
AttributeError: 'DAL' object has no attribute '_lazy_tables'

In [4] : print db._uri
Traceback (most recent call last):
  File /home/dhmorgan/servers/241/gluon/contrib/shell.py, line 234, in run
exec compiled in statement_module.__dict__
  File string, line 1, in module
  File /home/dhmorgan/servers/241/gluon/dal.py, line 7563, in __getattr__
if ogetattr(self,'_lazy_tables') and \
AttributeError: 'DAL' object has no attribute '_lazy_tables'

-- 





[web2py] looking for volunteers to help proof-read book 5th ed.

2013-01-21 Thread dhmorgan
Signed, I hope! 

I just downloaded diff and am looking forward to the task. 

-- 





[web2py] Re: Administrator Password Field not shown

2012-11-25 Thread dhmorgan
which method are you using to run web2py? what url are you using access 
admin

if you do a fresh install of web2py  and start development server with  
python web2py.py  -a 'admin'  and then go to  
http://localhost:8000/welcome/admin , does the admin form look okay there?

if you are running apache2, do you have parameters_443.py in web2py 
directory?




On Saturday, November 24, 2012 12:04:45 AM UTC-6, pumplerod wrote:

 I am wrestling with trying to get into the admin site for web2py.

 After following several examples on line to no avail I finally decided to 
 just disable the security so I could at least see what it looks like.  I 
 was able to get to the admin login page, however, there is no form field 
 showing a place for me to enter a Administrator Password, nor is there a 
 login button below where this password field should be.

 What's going on?  


-- 





[web2py] Re: posts being deleted again?

2012-11-21 Thread dhmorgan
seems last week someone commented it happened to him; not for me since 
Sep.29

On Tuesday, November 20, 2012 9:07:02 PM UTC-6, Dave wrote:

 I posted three replies to this thread:

 https://groups.google.com/forum/?fromgroups=#!topic/web2py/Z7ZoN6Bn6pU

 And all three have shown up as deleted.  I know Anthony and Massimo have 
 said in the past they don't delete posts.  Have other people seen this 
 phantom post stealing ghost in Google Groups come back recently?


-- 





[web2py] Re: web2py appliance not working

2012-11-13 Thread dhmorgan
Like many of the older example appliances, this does not function properly 
as it is.

I personally was not able to get manage.py to work, but the database can 
accessed via admin console *IF* you replace controllers/appadmin.py with 
the one from the welcome app. (You could alternately search and replace 
form.accepts(request, with form.accepts(request.vars, within original 
appadmin.py.

Also, to run store setup, replace response.view='manage/setup.html' with 
response.view='default/setup.html' in controller.

On Friday, November 9, 2012 11:41:14 AM UTC-6, elyase wrote:

 Can some one tell if the eStore example appliance is working for you? 

 https://github.com/mdipierro/web2py-appliances/tree/master/EStoreExample

 In web2py 2.1.1 the products don't get listed, I get an invalid SQL 
 error.


-- 





[web2py] Git Push ignores .gitignore

2012-11-13 Thread dhmorgan
I don't know if this is a bug or not:

I added an application to my site using the admin console's 'upload from 
git repository' function. The repository I added was one I had previously 
created and pushed to Github. Its .gitignore file prevents the usual 
files and directories from being uploaded (*.pyc, sessions/*, cron/*, etc).

After making changes to the application, I pushed it back to the Github 
repository from within admin, but it added all of the items that should be 
ignored. This also happens when using git directly from the command line in 
the web2py-installed application. It does not happen, however, when I push 
from my original local repository to Github, even though the .gitignore 
files and permissions are exactly the same.

I should add that I experienced the problem earlier and started to post 
this comment, but in trying to replicate it (upload from repository; a 
quick edit; push to repository), it initially worked. I don't know what 
might have happened in the meantime -- I haven't done anything git-related, 
just editing controllers and views.

I'm using 2.2.1

-- 





[web2py] Re: Git Push ignores .gitignore

2012-11-13 Thread dhmorgan
on a related note, I am now noticing that if I re-install using the same 
name and checking the 'overwrite existing app' option, the flash message is 
that the url is invalid; uninstalling the first app (or using a different 
app name) and using the same url successfully installs the app

On Tuesday, November 13, 2012 4:24:17 PM UTC-6, dhmorgan wrote:

 I don't know if this is a bug or not:

 I added an application to my site using the admin console's 'upload from 
 git repository' function. The repository I added was one I had previously 
 created and pushed to Github. Its .gitignore file prevents the usual 
 files and directories from being uploaded (*.pyc, sessions/*, cron/*, etc).

 After making changes to the application, I pushed it back to the Github 
 repository from within admin, but it added all of the items that should be 
 ignored. This also happens when using git directly from the command line in 
 the web2py-installed application. It does not happen, however, when I push 
 from my original local repository to Github, even though the .gitignore 
 files and permissions are exactly the same.

 I should add that I experienced the problem earlier and started to post 
 this comment, but in trying to replicate it (upload from repository; a 
 quick edit; push to repository), it initially worked. I don't know what 
 might have happened in the meantime -- I haven't done anything git-related, 
 just editing controllers and views.

 I'm using 2.2.1



-- 





[web2py] Re: calendar display

2012-11-10 Thread dhmorgan
I think you may find an answer here, but the original question is difficult 
to understand.

Are you saying you want the calendar to be built into the form and always 
visible? Or do you want it to be a pop-up and already activated upon page 
load, as though the user had clicked in the date field?

Are you saying you want the calendar that typically pops up when entering 
dates in a form? It is calendar.js and is located in (welcome)/static/js. 
It also uses calendar.css. Both are usually loaded automatically as part 
of views/web2py_ajax.html. 

In your new layout.html file, you will need to have something like:

{{
response.files.insert(0,URL('static','js/jquery.js'))
response.files.insert(1,URL('static','css/calendar.css'))
response.files.insert(2,URL('static','js/calendar.js'))
response.files.insert(3,URL('static','js/web2py.js'))
}}






On Friday, November 9, 2012 9:01:04 PM UTC-6, dantuluri jaganadha raju 
wrote:




 Please reply to this as soon as possible.Thank you in advance





 On Sunday, November 4, 2012 8:03:20 AM UTC+5:30, dantuluri jaganadha raju 
 wrote:

 Hi,
   I want to display the calendar that will display when we click on some 
 field(appropriate) of a form .One thing is that I will not click on 
 field.,what I mean is that ,it should appear as soon as I entered that page 
 and should have same functions(dynamic) that is in normal calendar that 
 displays in web2py.Moreover I am NOT USING EXTENDED LAYOUT.HTML and using 
 new layout. please reply as soon as possible what changes I have to make.

Thank you in advance ...
 Raju.



-- 





[web2py] Re: gitpython module error

2012-11-10 Thread dhmorgan
Is the failure to find gitpython module happening with development server 
or Apache/other? If you start Python interpreter and can you import git, 
perhaps web server is using a different Python.



On Friday, November 9, 2012 1:19:23 AM UTC-6, Luc Chase wrote:

 When trying to install a package from github I get an error saying that I 
 need to have the gitpython module. But when I execute the following it 
 seems it is already there...
  sudo pip install gitpython
 Password:
 Requirement already satisfied (use --upgrade to upgrade): gitpython in 
 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg
 Requirement already satisfied (use --upgrade to upgrade): gitdb=0.5.1 in 
 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-macosx-10.5-intel.egg
  
 (from gitpython)
 Requirement already satisfied (use --upgrade to upgrade): async=0.6.1 in 
 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/async-0.6.1-py2.7-macosx-10.5-intel.egg
  
 (from gitdb=0.5.1-gitpython)
 Requirement already satisfied (use --upgrade to upgrade): smmap=0.8.0 in 
 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/smmap-0.8.2-py2.7.egg
  
 (from gitdb=0.5.1-gitpython)
 Cleaning up...


 So what do I need to do to ensure it is available to Web2py ? 

 By the way... gitpython is a requirement of web2py so how come it isn't 
 included?
 It also can't be used as a tag in this group?



-- 





[web2py] web2py-appliance updates and support

2012-10-07 Thread dhmorgan
I volunteer to help with updating and supporting web2py-appliances. 

Perhaps this thread can be used to share thoughts and observations about 
doing so.

-- 





[web2py] Re: How do I incorporate git into my web2py workflow?

2012-10-04 Thread dhmorgan
the pypi package is 'gitpython' --  http://pypi.python.org/pypi/GitPython -- in 
Debian/Ubuntu, use sudo pip install gitpython; Ubuntu's package, 
python-git, is actually the gitpython program, but is not up-to-date; 

that program is necessary for installing a git-repositoried application via 
web2py's admin, which probably doesn't have much to do with the original 
question; nonetheless, I'd be curious to know if there's a way to import an 
app from a local git repository


On Tuesday, October 2, 2012 1:15:36 PM UTC-5, Shivakumar GN wrote:

 On Saturday, 8 September 2012 04:16:13 UTC+5:30, Massimo Di Pierro wrote:

 One of the new features is that in admin you can use a git url to install 
 a web2py directly from github. You can also push 
 an app to github. All of this requires python-git.



 Isn't that supposed to be gitpython?



-- 





[web2py] Re: Error in web2py

2012-09-30 Thread dhmorgan
Tomek,

I couldn't clone the latest to my Windows machine, so I used the 
development zip file from GitHub (v2.0.9). I could not replicate your 
problem, however.

Just to be sure, have you installed the Python for Windows extensions from 
Mark Hammond (
http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/) 
mentioned in the book (http://web2py.com/books/default/chapter/29/03)?

And if you run python from the command line, is it the 2.7.3 version you 
are expecting?

If yes to both, perhaps try the zipped file and see if it works.

Daniel H. Morgan

On Saturday, September 29, 2012 3:30:08 AM UTC-5, sok...@tlen.pl wrote:

 Hello 

 Web2py cloned from github on 29.09.2012. 

 Windows 7, Python 2.7.3 

 c:\Users\sokoltom\Documents\GITHUBcd web2py 

 c:\Users\sokoltom\Documents\GITHUB\web2pyweb2py.py 
 Traceback (most recent call last): 
File C:\Users\sokoltom\Documents\GITHUB\web2py\web2py.py, line 18, 
 in module 
  import gluon.widget 
File C:\Users\sokoltom\Documents\GITHUB\web2py\gluon\__init__.py, 
 line 15, in module 
  from globals import current 
 ImportError: No module named globals 

 c:\Users\sokoltom\Documents\GITHUB\web2py 

 Best regards, 

 Tomek 



-- 





[web2py] difficulty in replying on this group

2012-09-29 Thread dhmorgan
I just posted a reply on another thread (twice now), and they are being 
deleted almost immediately. (
https://groups.google.com/forum/?fromgroups=#!topic/web2py/1A2bbeQg2Ok)

???


Daniel H.

-- 





[web2py] Re: difficulty in replying on this group

2012-09-29 Thread dhmorgan
3 times now; this reply is to test whether this happens with additional 
threads

On Saturday, September 29, 2012 1:55:00 PM UTC-5, dhmorgan wrote:

 I just posted a reply on another thread (twice now), and they are being 
 deleted almost immediately. (
 https://groups.google.com/forum/?fromgroups=#!topic/web2py/1A2bbeQg2Ok)

 ???


 Daniel H.


-- 





[web2py] Re: difficulty in replying on this group

2012-09-29 Thread dhmorgan
well it works on this thread; perhaps my reply on the other thread was 
suspicious? Here is the content:


I couldn't clone to this Windows machine, so I downloaded today's zipped 
development version from GitHub. I couldn't replicate your problem, however.

Have you installed the Python extensions for Windows 
(http://sourceforge.net/projects/pywin32/)? It is referenced in web2py book 
-- http://web2py.com/books/default/chapter/29/03.

And if you run the command, python, does it start Python 2.7.3?

Perhaps try the zipped version to see if it does the same thing as your 
cloned version.

Danny


On Saturday, September 29, 2012 1:58:26 PM UTC-5, dhmorgan wrote:

 3 times now; this reply is to test whether this happens with additional 
 threads

 On Saturday, September 29, 2012 1:55:00 PM UTC-5, dhmorgan wrote:

 I just posted a reply on another thread (twice now), and they are being 
 deleted almost immediately. (
 https://groups.google.com/forum/?fromgroups=#!topic/web2py/1A2bbeQg2Ok)

 ???


 Daniel H.



-- 





[web2py] Odd bootstrap.js behavior while updating AppointmentManager appliance

2012-09-18 Thread dhmorgan
I'm interested in using the Appointment Manager appliance (
https://github.com/mdipierro/web2py-appliances/tree/master/AppointmentManager) 
in conjunction with the latest layout/css/js. 

I replaced the appliance's /views/layout.html and static/css with that 
from the welcome application in Web2Py 2.09, adding back in the 
fullcalendar.css from the original. I also added the three share images 
to the appliance's /static/images folder.

Everything looked okay and seemed to function normally. I hadn't added in 
the bootstrap.min.js yet, however.

After doing so, the month-selection widget and calendar in 
mysite/AppointmentManager/mycal both appear twice. It's not in the html 
as such, but is apparently rendered twice via javascript.

I've fiddled with this for a bit and cannot seem to straighten it out.

I've uploaded an image of its current appearance. Without bootstrap.min.js 
included, it's just one calendar and month selector.

Any thoughts?


-- 



attachment: calendar-js-weirdness-2.png.png

[web2py] Re: Odd bootstrap.js behavior while updating AppointmentManager appliance

2012-09-18 Thread dhmorgan
Sorry, I forgot to include that I also had edited 
/views/default/appointment_read.html,  commenting out the {{for t,f in 
db.t_appointment._referenced_by:}} loop, thus permitting the appliance to 
function. (it creates a too many values to unpack error)

On Tuesday, September 18, 2012 7:11:55 PM UTC-5, dhmorgan wrote:

 I'm interested in using the Appointment Manager appliance (
 https://github.com/mdipierro/web2py-appliances/tree/master/AppointmentManager)
  
 in conjunction with the latest layout/css/js. 

 I replaced the appliance's /views/layout.html and static/css with that 
 from the welcome application in Web2Py 2.09, adding back in the 
 fullcalendar.css from the original. I also added the three share images 
 to the appliance's /static/images folder.

 Everything looked okay and seemed to function normally. I hadn't added in 
 the bootstrap.min.js yet, however.

 After doing so, the month-selection widget and calendar in 
 mysite/AppointmentManager/mycal both appear twice. It's not in the html 
 as such, but is apparently rendered twice via javascript.

 I've fiddled with this for a bit and cannot seem to straighten it out.

 I've uploaded an image of its current appearance. Without bootstrap.min.js 
 included, it's just one calendar and month selector.

 Any thoughts?




-- 





[web2py] Re: HTTPS Admin Page Remote Connection

2012-09-13 Thread dhmorgan
The method depends on which web server are you using. Which one are using?

General guidance can be found in book, chapter 13  
http://web2py.com/book/default/chapter/13 



On Thursday, September 13, 2012 8:38:45 AM UTC-5, Francisco Barretto wrote:

 Hi There!
  
 Deploying web2py on a server gives me some headache about accessing the 
 admin page (on server) from a remote machine. First it throwed the message 
 'Admin is disabled because insecure channel'. So I found some posts 
 talking about comment the following code
  

 if request.env.http_x_forwarded_for or request.is_https: 
  
  session.secure()  
 elif not request.is_local and not DEMO_MODE:  
  raise HTTP(200, T('Admin is disabled because insecure channel'))

 Unfortunatelly, commenting, this part of the access.py file is not the 
 right way to do it and I know. Besides, it still shows-me this message 
 ATTENTION: Login requires a secure (HTTPS) connection or running on 
 localhost. So, it´s not apropriate and doesn´t even solve the problem.
  
 Since I´m using linux as my server OS and it doesn´t have a graphic 
 interface I can´t access the admin page through a local browser. My point 
 is, how to correctly enable the admin page remote access? Already tryed to 
 start with the server IP and 0.0.0.0 using ports 8000, 80 and 443 and still 
 nothing. Also tryied to specify the protocol HTTPS on browser but I get 
 this error:
  
  SSL received a record that exceeded the maximum permissible length. 
  
   
 (Error code: ssl_error_rx_record_too_long) 

 So, can anybody point me the right way?
  
 Thanks!


-- 





[web2py] Re: Upload from git repro - GitCommandError

2012-09-12 Thread dhmorgan
the pypi package is 'gitpython' --  http://pypi.python.org/pypi/GitPython

sudo pip install gitpython worked for me

note: there is a 'gitpython' on github but that is different and useless in 
this case


I originally tried sudo  apt-get install python-git and this did not work 
for my Ubuntu 12.04 machine; despite the debian package name, it is 
'gitpython' -- unfortunately it's not the current version and so fails 
because it doesn't have 'clone_from' attribute


On Wednesday, September 12, 2012 8:52:16 AM UTC-5, Nico Zanferrari wrote:

 Well, I think that you mean *gitpython *and not python-git, isn't it? Can 
 you kindly correct the warning message?

 Thank you,
 Nico


-- 





[web2py] Re: Using ssl certificate

2012-08-22 Thread dhmorgan
Answers are likely to be available, but the scope of the question is kind 
of large and the detail provided is kind of small. Perhaps you can indicate 
where you are in your particular process, what sort of operating system 
you're using, what you are using for your web server, and anything else you 
think might be helpful. 

I've written up instructions for use with Apache on Ubuntu 12.04 in 
addition to what's available in the online book (
http://web2py.com/book/default/chapter/13). It can be done without a great 
deal of effort, and the readers of this list are quite helpful.

Have a Best Day,
Danny Morgan

On Wednesday, August 22, 2012 9:16:18 AM UTC-5, Hassan Alnatour wrote:

 Dear ALL,

 how to use an SSL certificate  with web2py ?

 Best Regards,
 Hassan Alnatour


-- 





[web2py] Re: http/https with Configuration of Apache in web2py Application Development Cookbook

2012-08-22 Thread dhmorgan
I'm wondering what your apache config file looks like for these servers and 
whether they've both been enabled. The result you reported at the end 
indicates that your apache server is running fine on port 80, but it's not 
firing your web2py applications. Perhaps you have not made an entry like 
'ServerName www.example.com' that will tell Apache to pick up all traffic 
looking for said domain. 



On Wednesday, August 22, 2012 2:24:15 PM UTC-5, mweissen wrote:

 Ok, I will try to make my question more clear:
 I have installing web2py according to the chapter Setting up a production 
 deployment in Ubuntu
 and I want to redirect http to myapp1 and https to myapp2.

 Of course I have tried the file routes.py. It contains:

 routers = dict (
 BASE = dict(
 default_application = 'welcome',
 domains = {
 'my-ip:80' : 'myapp1/mycontroller',
 'my-ip:443' : 'myapp2/mycontroller',
 }
 },
 }

 I think, Apache converts everything to https, but I don't know why.






 2012/8/22 Martin Weissenboeck mwei...@gmail.com javascript:

 A very nice book!
 I have executed all steps from the chapter Setting up a production 
 deployment in Ubuntu (page 12)
 The server works very good, but every request is redirected to https.

 https://www.mydomain.com   - request.is_https==True,  OK?
 *http*://www.mydomain.com becomes https://www.mydomain.com  - 
 *request.is_https
 *==True


 And some other tries:

 https://www.mydomain.com:443  or
 http://www.mydomain.com:443  or
  
 pYour browser sent a request that this server could not understand.br /
 Reason: You're speaking plain HTTP to an SSL-enabled server port.br /
 Instead use the HTTPS scheme to access this URL, please.br /


 http://www.mydomain.com:80

 The requested URL /secure/default/index was not found on this server.

 Every hint is welcome!
 Regards, Martin




-- 





[web2py] Re: cloning fluxflex repository

2012-05-25 Thread dhmorgan
I think FluxFlex in the throes of death. And should it live, the issue 
you're experiencing isn't the only one they'll have to correct. I 
experimented with the service and recommend not trying to do anything on 
that site.

On Thursday, May 24, 2012 9:54:05 AM UTC-5, curiouslearn wrote:

 Hello All, 

 I am trying to load my web2py app on fluxflex. As indicated in the 
 instructions at 

 (i) https://github.com/nus/web2py-for-fluxflex/blob/master/README.md 
 and 
 (ii) http://www.fluxflex.com/projects/pricinggame/instruction/git 

 I am trying to clone the fluxflex repository associated with my 
 project (so that I can add my application folder to it) using the 
 command 

 git clone ssh://g...@git.fluxflex.com:443/pricinggame 

 The first time I tried it, the cloning was successfult. I added my 
 application folder appname to the public_html/applications as 
 suggested in the first link. However, I had some trouble with 
 commiting it. Even though I issued git add and commit commands, the 
 folder kept showing up as modified. So I deleted the local repository 
 using 

 rm -r pricinggame 

 Now, whenever I try to clone using the command git clone 
 ssh://g...@git.fluxflex.com:443/pricinggame 

 I get an error saying 

 ssh: connect to host flx.fm port 443: Operation timed out 
 fatal: The remote end hung up unexpectedly 

 Has anyone experienced this before. Do you know how I could clone the 
 repository? 

 Thank you 



[web2py] Re: Can seem to get JanRain to work...

2011-08-16 Thread dhmorgan
it looks like Janrain expected to interact with 'https:...' and your
browser was pointed to 'http:...'

On Aug 15, 2:06 pm, Jason Brower encomp...@gmail.com wrote:
 Is there any restriction of using the system on localhost?
 I feel I have entered all the data in correctly.  But it still seems to
 give me issues.  I get this when I come to the login screen.
 Any ideas on what I may be doing wrong?

  Screenshot.png
 130KViewDownload


[web2py] Re: How to Choose the Best Web Hosting Service

2011-06-06 Thread dhmorgan
the 'advice' in article is next to useless; definitely spam (it was
posted to 34 diff groups); hope the poster chokes on the can from
which he spooned it


[web2py] Re: problem with gae deployment

2011-06-01 Thread dhmorgan
check to see whether the command you indicated:

$ /home/ramkrishan/Downloads/Python-2.5.5/./python

is running 2.6 or 2.5.5

not sure what the effect of the /./ would be on your installation;
the error is indicative of Python 2.6, which may be what is getting
run;

with Ubuntu 10.x, you may wish to get the 'Dead Snakes' branch of
Python 2.5.5 from Launchpad; once installed, you can run it from
anywhere with 'python2.5'


On Jun 1, 7:14 am, ramkrishan bhatt ramkrishan.bh...@gmail.com
wrote:
 $ cd workspace/Running\ Project/
 ramkrishan@ramkrishan-Aspire-5740:~/workspace/Running Project$
 /home/ramkrishan/Downloads/Python-2.5.5/./python
 google_appengine/dev_appserver.py coporategift/web2py/
 Traceback (most recent call last):
   File google_appengine/dev_appserver.py, line 76, in module
     run_file(__file__, globals())
   File google_appengine/dev_appserver.py, line 72, in run_file
     execfile(script_path, globals_)
   File /home/ramkrishan/workspace/Running
 Project/google_appengine/google/appengine/tools/dev_appserver_main.py, line
 146, in module
     from google.appengine.tools import appcfg
   File /home/ramkrishan/workspace/Running
 Project/google_appengine/google/appengine/tools/appcfg.py, line 69, in
 module
     from google.appengine.tools import appengine_rpc
   File /home/ramkrishan/workspace/Running
 Project/google_appengine/google/appengine/tools/appengine_rpc.py, line 27,
 in module
     import fancy_urllib
   File /home/ramkrishan/workspace/Running
 Project/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, line
 341, in module
     class FancyHTTPSHandler(urllib2.HTTPSHandler):
 AttributeError: 'module' object has no attribute 'HTTPSHandler'

 please tell me the solution ... i am using ubuntu 10.10


[web2py] Re: Google app engine

2011-05-31 Thread dhmorgan
You probably *will* want to to get Python 2.5.x

also, your app name cannot be web2py because there is already an app
by that name at web2py.appspot.com;

rename your app to a name you've registered at appspot and edit your
app.yaml file accordingly, then try again

Danny



On May 27, 11:22 pm, Resa taratbr...@gmail.com wrote:
  Can someone assist me in deploying google app engine.. I am getting
 this error:

 File /usr/lib/python2.6/urllib2.py, line 1169, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
   File /home/tara/Downloads/google_appengine/lib/fancy_urllib/
 fancy_urllib/__init__.py, line 367, in do_open
     raise url_error
 urllib2.URLError: urlopen error [Errno -2] Name or service not known

 This is what i did:

      1locate dev_appser
   2  /home/tara/Downloads/google_appengine/dev_appserver.py
   3  /home/tara/Downloads/google_appengine/appcfg.py update ~/
 Documents/web2py

 I also specified the application in the routes file


[web2py] Re: web2pyslices registration is not working

2011-04-28 Thread dhmorgan

 etc.  I don't have an OpenId I noticed that comment.  

Your gmail account (I'm assuming that's still a requirement for google
groups), is an OpenId;

you should be able to login with that (not in the login box, but via
the OpenId window)



[web2py] Re: Programmatically uploading images

2011-04-28 Thread dhmorgan
Thanks for the leads; I just watched the restful api's video and have
been reading up on doing this with xmlrpc.

In the meantime, based on your first comment, here is a controller
that does work, at least through the browswer:

--
def add_photo():
form = SQLFORM(db.photolog)
if request.post_vars:
pic_id = db.photolog.insert(title='Not again, once again',
 
photo=db.photolog.photo.store(request.vars.photo,'pic.jpg'),
photo_data=request.vars.photo.file.read())
return locals
return dict(form=form)

--


On Apr 27, 4:38 pm, pbreit pbreitenb...@gmail.com wrote:
 I don't think you can suppress the formkey check so all I can think of is
 skipping the if form.accepts and processing everything yourself.

 You also might want to have a look at XMLRPC which is sort of designed for
 this kind of thing:http://web2py.com/book/default/chapter/09#XMLRPC

 The new REST capabilities might work as well but I couldn't find detail on
 POSTing into 
 them:https://groups.google.com/d/topic/web2py/gcqEcXIo7RI/discussion


[web2py] Re: Programmatically uploading images

2011-04-28 Thread dhmorgan
Thanks for the leads; I just watched the restful api's video and have
been reading up on doing this with xmlrpc.

In the meantime, based on your first comment, here is a controller
that does work, at least through the browswer:


def add_photo():
form = SQLFORM(db.photolog)
if request.post_vars:
db.photolog.insert(title=request.vars.title,
photo=db.photolog.photo.store(request.vars.photo,
 
request.vars.photo.filename),
photo_data=request.vars.photo.file.read())
return dict(form=form)



On Apr 27, 4:38 pm, pbreit pbreitenb...@gmail.com wrote:
 I don't think you can suppress the formkey check so all I can think of is
 skipping the if form.accepts and processing everything yourself.

 You also might want to have a look at XMLRPC which is sort of designed for
 this kind of thing:http://web2py.com/book/default/chapter/09#XMLRPC

 The new REST capabilities might work as well but I couldn't find detail on
 POSTing into 
 them:https://groups.google.com/d/topic/web2py/gcqEcXIo7RI/discussion


[web2py] Re: Programmatically uploading images

2011-04-28 Thread dhmorgan
Halfway there! Using the above controller, I am now able to upload
files. On the client side the thing that saved me was the 'poster'
urrlib2-based utility available at http://pypi.python.org/pypi/poster
(with a couple of small modifications).

Thank you, pbreit.


On Apr 28, 11:17 am, dhmorgan dharrimanmor...@gmail.com wrote:
 Thanks for the leads; I just watched the restful api's video and have
 been reading up on doing this with xmlrpc.

 In the meantime, based on your first comment, here is a controller
 that does work, at least through the browswer:

 
 def add_photo():
     form = SQLFORM(db.photolog)
     if request.post_vars:
         db.photolog.insert(title=request.vars.title,
             photo=db.photolog.photo.store(request.vars.photo,

 request.vars.photo.filename),
             photo_data=request.vars.photo.file.read())
     return dict(form=form)
 

 On Apr 27, 4:38 pm, pbreit pbreitenb...@gmail.com wrote:

  I don't think you can suppress the formkey check so all I can think of is
  skipping the if form.accepts and processing everything yourself.

  You also might want to have a look at XMLRPC which is sort of designed for
  this kind of thing:http://web2py.com/book/default/chapter/09#XMLRPC

  The new REST capabilities might work as well but I couldn't find detail on
  POSTing into 
  them:https://groups.google.com/d/topic/web2py/gcqEcXIo7RI/discussion




[web2py] Programmatically uploading images

2011-04-27 Thread dhmorgan
My goal is to create an Android app that will take a photo and upload
it to  Web2Py photolog apps running on GAE and my local server.

I am scripting Android with Python and had expected to use something
like urllib2 to post the image and data to an upload_photo crud.create
form.

When trying to post directly to a Web2Py-created form, nothing gets
written -- apparently because I'm not sending the _formkey. When using
my own form, the best I've been able to accomplish is adding
everything but the data.

Is there a more sensible route to getting images into a database
programmatically? If it must be through a form, will I need to somehow
capture and return the _formkey along with the upload?

Any comments, leads, or questions will be appreciated.


Model:

db.define_table('photolog',
Field('photo','upload',label='Photo',
   uploadfield='photo_data'),
Field('title',default=''),
Field('photo_data','blob'),
auth.signature)

db.photolog.title.requires = [IS_NOT_IN_DB(db,
 db.photolog.title),]



This contoller and view work as expected:

def add_photo():
return dict(form=crud.create(db.photolog))
-
div id=photolog_form
{{=form}}
/div




From web2py shell, I can insert records to the database
programmatically with:

filename = 'pic.jpg'
stream=open(filename,'rb')
db.photolog.insert(title='Not again!', \
  photo=db.photolog.photo.store(stream,filename), \
  photo_data=stream.read())
db.commit()



A controller that doesn't work (even through the browser):


def add_photo():
form = SQLFORM(db.photolog)
if form.accepts(request.vars, session, dbio=False):
title = request.vars.title
photo = request.vars.photo.file
data = photo.read()
form.vars.id = db.photolog.insert(title=title,
photo=db.photolog.photo.store(photo,photo.name),
photo_data=data)
db.commit()
return dict(form=form)




Client-side Python script:

I've tried variations on the this, along with trying to use Doug
Hellmann's urllib2 multi-part form helper (http://www.doughellmann.com/
PyMOTW/urllib2/):


filename = 'pic.jpg'
stream=open(filename,'rb')
data = {'title': 'Super Photo',
'photo': (stream, filename),
'photo_data': stream.read()
}

urllib2.urlopen('http://example.com/init/photolog/add_photo',
data)




[web2py] Re: web2pyslices.com - broken registration

2011-04-16 Thread dhmorgan
I don't know who owns it, but you will be registered by logging in
using an OpenID (provided you aren't using the same version of Firefox
that I am, because for some reason, for this site only, the images in
the Janrain OpenID provider choice window are invisible even if the
links still work; not an issue with my Chrome)

For what it's worth to the site's manager:

on registration form, verify button has 'Input error: k: Format of
site key was invalid'

the same on contact form, making it give me a 'Negative, Ghost
Rider' upon submission

and bug reporting seems to be turned off




On Apr 16, 5:09 am, vpiotr vpi...@poczta.onet.pl wrote:
 Hi!

 Anybody knows how to contact owner of the website web2pyslices.com?
 It looks like it is very important part of web2py framework, but
 registration is broken (verification image), so I cannot join it.


[web2py] Re: web2pyslices.com - broken registration

2011-04-16 Thread dhmorgan
weirdness occurs with Firefox-3.6.16, Ubuntu-10.4, Gnome desktop

proper display with Chrome-10.0; an important note here is that,
having run into previous issues with it, I start it with '/opt/google/
chrome/google-chrome --disable-webgl %U'

On Apr 16, 10:13 am, Stifan Kristi steve.van.chris...@gmail.com
wrote:
 what browser that you used?

 best regards,

 steve van christie


[web2py] Re: bak files and size using space

2011-04-14 Thread dhmorgan
.bak files are used for reverting to the previous state of the file
(accomplished via the 'Revert' button at bottom of edit form); they
are created and checked for in the 'edit' function of admin/
controllers/default.py

your guess about the spaces is probably correct (no tabs, only spaces
are used in the edit form); you may wish to set your usual editor to
replace tabs with spaces (4) for Python programming



On Apr 14, 8:03 pm, 黄祥 steve.van.chris...@gmail.com wrote:
 hi,

 why when i edited my code web2py framework in broswer it will produce
 *.bak file? what is it use for? is it for undo function?
 and 1 more things when i use tab (i mean in editor) it take more
 little file space rather than when i save it on browser (using 4 blank
 space for replace the tab)?
 did anyone know about it?

 thanks and best regards,

 steve van christie


[web2py] Re: Google Chrome 9 crashes

2011-03-06 Thread dhmorgan
** THANKS! **

I was going crazy trying to track this down.

On Feb 8, 5:44 pm, Bernd Rothert roth...@googlemail.com wrote:
 Thank you, Paul! That's good news - the new builder tool surely is a
 good option to speed up page loading.

 Meanwhile I'm using google-chrome--disable-webgl to turn off WebGL
 until it has been fixed.

 Cheers
 Bernd

 On 8 Feb., 08:16, Paul Irish paul.ir...@gmail.com wrote:

  Sorry for the error, Bernd, but good work sleuthing it out!

  I've updatedhttp://www.modernizr.com/news/soit does not reproduce
  the bug.

  Had you been able to actually *read* that news page.. :) .. you'd find
  out we recently put out a builder tool, so you can customize which
  tests you'd like to include, making for a smaller, faster script.
  It also includes an updated version of the WebGL test which does not
  suffer from thisChromebug (fixed inChrome10 btw).

  Cheers and sorry for the inconveniences.

  _
  Paul Irish
  Modernizr team




[web2py:16791] Re: New Appliance Submission: QrOne CSS Designer

2009-02-23 Thread dhmorgan

fantastic!

On Feb 19, 2:51 pm, blackthorne francisco@gmail.com wrote:
 hi

 I've been planning to work on this little application for a while but
 only now I made it happen.
 It's a  port from a very simple CSS Designer that generates code for
 you and allows you to keep visually updated on how it's going to look
 on the fly.

 http://mdp.cti.depaul.edu/appliances/default/show/47

 feedback is welcome!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:16275] Re: Unit-testing not working in Safari and Chrome on Windows

2009-02-13 Thread dhmorgan

yes on both counts; chrome has some really nice features but there are
enough instances such as this that I've gone back to Firefox as my
default browser; sorry I don't know why tests behavior occurs or what
can be done to correct it

On Feb 13, 3:44 am, Markus Gritsch m.grit...@gmail.com wrote:
 Hi,

 when running the [ test ] link in appadmin for an arbitrary
 controller, the following page is displayed, and no progress is made:

 Testing application welcome

 Testing controller default.py... please wait!

 I observe this behavior only in Safari and Chrome.  It works fine in
 Firefox and IE.  I am running Windows.

 Does anyone else observe the same behavior?

 Kind regards,
 Markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:16073] Re: SQL Designer Import

2009-02-09 Thread dhmorgan

just emailed update but it started a new topic, sorry.

see http://groups.google.com/group/web2py/browse_thread/thread/0687f038e53a0e5c#
for update

Danny



On Feb 2, 3:37 pm, dhmorgan dharrimanmor...@gmail.com wrote:
 I'm currently trying to implement this. Have followed above
 instructions and it functions nearly completely. I cannot yet get save/
 load to server's database.

 Anyone have a handle on this?

 Danny

 On Dec 16 2008, 10:42 am, Yarko Tymciurak yark...@gmail.com wrote:

  Sorry...
  I may have spoken too soon  I thought this was working, but still some
  things to work out (not saving xml to database at the moment)

  2008/12/16 yarko yark...@gmail.com

   I wanted to post an update:

   I took Boris's adaptation of sqldesigner for web2py, and modified it
   (very slightly) to work as a named app in web2py.

   The good news:

   - it seems to work just fine (no routes at all used);
   - to accommodatename it to whatever you want I changed ONE line of
   code;
   - I dropped in the latest sqldesigner (to check if this would work as
   needed, w/o any other changes - and yes, it does);
   - I tested saving and restoring work in the app database (Boris is
   saving the xml from sessions, so the save/restore is fine);
   - it (continues to) work with latest web2py;

   The bad news (well, this isn't really bad - but does suggest
   something we may need to do w/ web2py):
   - from the static directory, sqldesigner (itself) has a link to it's
   subdirectory for docs code; it fails (you have to manually add
   index.html to the generated URL);   for STATIC references, web2py
   should probably handle doing what normally happens (or is this a
   server backend function? anyway, cherrypy doesn't...)
   - the generated DAL is pretty much one-way (at this point):  copy /
   paste, and use it once you're done.  (This is not really bad news I
   don't think; it's probably not worth the effort to go further);

   I can post, or you can do what I did:

   - take Boris's zip, rename applications/init to (for example)
   applications/sqldesigner; zip this up, or copy to your current web2py
   (routes.py not needed);
   - get the latest sqldesigner fromhttp://code.google.com/p/wwwsqldesigner/
   and drop it in your new app as static/designer

   Unfortunately, sqldesigner still has not included the changes needed,
   so you need to also update  static/designer/js/config.js with Boris's
   change (http://designer.bojanka.net/js/config.js);

   Alternatively, simply add web2py-db to AVAILABLE_BACKENDS and make
   it the DEFAULT_BACKEND string.

   - in controllers/default.py make the following change:

old
   def index():
      redirect('designer.html')

new
   def index():
      redirect(URL(r=request,c='static',f='designer/index.html'))

   That's it!

   Let me know if you find a way to let sqldesigner's   documentation
   link work.

   Yarko

   On Dec 1, 3:25 pm, Boris Manojlovic boris.manojlo...@gmail.com
   wrote:
Hi,
  as i said it was just a prof of concept :) and i tried to make it
   forward
compatible as much as possible.
What that means is I did not changed www sql developer code (except
configuration) on purpose so that files from 
*applications/init/static/**
designer*
can be replaced with new version without problems - until Ondřej Žára
   change
API code which I hope will not be done hehe :)
(Just tried to put newest version of sql developer into my code and it
worked on first look)

Boris

P.S. on designer.bojanka.net is still old version of sql developer watch
   out
:)

(look here for confighttp://designer.bojanka.net/js/config.js)

On Mon, Dec 1, 2008 at 10:04 PM, mdipierro mdipie...@cs.depaul.edu
   wrote:

 perhaps you and jwm can join forces. You have the same interests.

 I am not planning to host this myself since you are doing it, but it
 could be used and distributed with T3.

 Massimo

 On Dec 1, 2:57 pm, Boris Manojlovic boris.manojlo...@gmail.com
 wrote:
  it was created as proof of concept, i planed to add more
   functionality
 (as
  you can see from database schema)

 http://www.bojanka.net/w2p-massimo.tar.gz

  it is opensource as all package is opensource, why to close back end
   :)

  On Mon, Dec 1, 2008 at 9:53 PM, mdipierro mdipie...@cs.depaul.edu
 wrote:

   Boris,

   is it functional? Can I uninstall the old one and link yours? If 
   it
   is
   open source, is the source posted somewhere?

   perhaps the two of you should join forces.

   Massimo

   On Dec 1, 2:43 pm, jwm team1...@gmail.com wrote:
Boris,
Looks like you had the thought before I did, Good Job!

J

On Dec 1, 2:39 pm, Boris Manojlovic 
   boris.manojlo...@gmail.com
wrote:

http://designer.bojanka.net/
 and yes it is already on GAE...

 On Mon, Dec 1, 2008 at 9:30 PM, jwm team1

[web2py:16076] Re: SQL Designer Import

2009-02-09 Thread dhmorgan

Note: this thread continues from thread of same name:

http://groups.google.com/group/web2py/browse_thread/thread/30eb9ee195b358cb/20f3cf32cfbc876e#20f3cf32cfbc876e

Additionally, I have now posted a how-to on webfaction for setting it
up there:
http://forum.webfaction.com/viewtopic.php?pid=8718#p8718

On Feb 9, 8:57 am, D Harriman Morgan dharrimanmor...@gmail.com
wrote:
 Update:

 The short of it is that I can only get sqldesigner to save/load server-side
 when I set it up using Boris Manojlovic's (attached) script file for
 installing web2py with sqldesigner included as application 'init'. The  file
 (web2py-designer-patches.zip) includes three files: 'README', which is
 actually a script file that downloads and installs both web2py and
 wwwsqldesigner; '01-routes.patch' which creates a routes.py file, and
 '02-init.patch', which modifies three files within the new 'init'
 application.

 Installation using the script file requires that you be ready to browse to
 the new application during the process, as the script must wait for you to
 create an 'init' application via the web2py admin view. In this example, I
 have subdomain sqldesigner.example.com for http and https.

 [ in first terminal]
     copy the README, 01-routes.patch, and 02-init.patch files to directory
 from which you'll serve this web2py instance, mine is
 '~/webapps/sqldesigner'

     make README executable and run it
         chmod 764 README
         ./README

     script will prompt you to open another terminal to create an 'init' app.

 [ in second terminal}
     cd ~/webapps/sqldesigner/web2py
     #  = port number
     python web2py.py -p 
         password of your choice

 [open browser to admin for this site]

     create new application, 'init'

     at this point the README installation script resumes, which you'll see
 in the first terminal

 [ in first terminal]

     script should end by telling you it patched four files and that it
 should just work

     while you're there, kill the web2py you started in the second
 terminal, according to the instructions provided at startup, 'kill -SIGTERM
 # ' for example

     it may just work; in my case, however (installed as webfaction custom
 app) I had to move the contents of sqldesigner/web2py down one level

         try this if it doesn't just work:
             mv ~/webapps/sqldesigner/web2py/* ~/webapps/sqldesigner/ rmdir
 ~/webapps/sqldesigner/web2py

     restart web2py
         screen python web2py.py -p  -password='recycle'

 [ in second terminal}
     screen -d

 And you're there. Point your browser tohttp://sqldesigner.example.comand
 you have your own facility for visually modeling data in a format that's
 readily exportable to web2py. As you would hope, the sqldesigner data can be
 administered via admin over https.

 My immediate impression with using SQL-Designer is quite positive. Having a
 visual representation and being able to save/retrieve/edit the models is
 allowing me to work far more productively. It has room for improvement (see
 below), which makes me wonder about doing it all fresh in Pyjamas

 Rooms for improvement: ordering of output by depedency (order is currently
 chronological(?) which causes errors in web2py model compilation), cannot do
 things like copy/paste tables or fields, cannot select multiple tables for
 repositioning/deleting, documentation button opens wwwsqldesigner twice,
 etc.

 Danny

  web2py-designer-patches.zip
 5KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15965] Re: Pyjamas and web2py

2009-02-06 Thread dhmorgan

Fantastic idea! I've just been getting into the Pyjamas and would love
to help.

Tomorrow. ;-)


Danny

On Feb 6, 1:57 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 This is a draft and I have not tried it yet. Perhaps you can help me
 debug it.

 http://mdp.cti.depaul.edu/AlterEgo/default/show/203
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15864] Re: wsgi webfaction how-to

2009-02-04 Thread dhmorgan

Martin: confirm that  is consistent across parameters__.py, -p
flag, and httpd.conf; confirm that password is not 'None' in
parameters file; no risk in removing the parameters_.py file and
repeating the 'Create admin password' step in instructions; let me
know how it goes

Baron: you're welcome; thank you for the thanking me

Massimo: absolutely


Danny



On Feb 3, 5:22 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 Can you please post an AlterEgo Entry about this? let me know when
 done and I will approve it.

 Massimo

 On Feb 3, 4:38 pm, Baron richar...@gmail.com wrote:

  I followed these instructions to get my site working on Webfaction,
  including the admin login.
  Thanks Danny!

  On Feb 4, 6:58 am, rfx_labs l...@reproflex.de wrote:

yes, and it appears to be working fine; you are welcome to click on
the following link, though it is currently just the standard welcome/

   hello dhmorgan,

   I've followed your instructions and welcome works fine. But if I
   access admin:
   admin disabled because unable to access password file

   The parameter_.py file is still there.

   Do you have any ideas?

   Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15786] Re: SQL Designer Import

2009-02-02 Thread dhmorgan

I'm currently trying to implement this. Have followed above
instructions and it functions nearly completely. I cannot yet get save/
load to server's database.

Anyone have a handle on this?

Danny

On Dec 16 2008, 10:42 am, Yarko Tymciurak yark...@gmail.com wrote:
 Sorry...
 I may have spoken too soon  I thought this was working, but still some
 things to work out (not saving xml to database at the moment)

 2008/12/16 yarko yark...@gmail.com



  I wanted to post an update:

  I took Boris's adaptation of sqldesigner for web2py, and modified it
  (very slightly) to work as a named app in web2py.

  The good news:

  - it seems to work just fine (no routes at all used);
  - to accommodatename it to whatever you want I changed ONE line of
  code;
  - I dropped in the latest sqldesigner (to check if this would work as
  needed, w/o any other changes - and yes, it does);
  - I tested saving and restoring work in the app database (Boris is
  saving the xml from sessions, so the save/restore is fine);
  - it (continues to) work with latest web2py;

  The bad news (well, this isn't really bad - but does suggest
  something we may need to do w/ web2py):
  - from the static directory, sqldesigner (itself) has a link to it's
  subdirectory for docs code; it fails (you have to manually add
  index.html to the generated URL);   for STATIC references, web2py
  should probably handle doing what normally happens (or is this a
  server backend function? anyway, cherrypy doesn't...)
  - the generated DAL is pretty much one-way (at this point):  copy /
  paste, and use it once you're done.  (This is not really bad news I
  don't think; it's probably not worth the effort to go further);

  I can post, or you can do what I did:

  - take Boris's zip, rename applications/init to (for example)
  applications/sqldesigner; zip this up, or copy to your current web2py
  (routes.py not needed);
  - get the latest sqldesigner fromhttp://code.google.com/p/wwwsqldesigner/
  and drop it in your new app as static/designer

  Unfortunately, sqldesigner still has not included the changes needed,
  so you need to also update  static/designer/js/config.js with Boris's
  change (http://designer.bojanka.net/js/config.js);

  Alternatively, simply add web2py-db to AVAILABLE_BACKENDS and make
  it the DEFAULT_BACKEND string.

  - in controllers/default.py make the following change:

   old
  def index():
     redirect('designer.html')

   new
  def index():
     redirect(URL(r=request,c='static',f='designer/index.html'))

  That's it!

  Let me know if you find a way to let sqldesigner's   documentation
  link work.

  Yarko

  On Dec 1, 3:25 pm, Boris Manojlovic boris.manojlo...@gmail.com
  wrote:
   Hi,
     as i said it was just a prof of concept :) and i tried to make it
  forward
   compatible as much as possible.
   What that means is I did not changed www sql developer code (except
   configuration) on purpose so that files from *applications/init/static/**
   designer*
   can be replaced with new version without problems - until Ondřej Žára
  change
   API code which I hope will not be done hehe :)
   (Just tried to put newest version of sql developer into my code and it
   worked on first look)

   Boris

   P.S. on designer.bojanka.net is still old version of sql developer watch
  out
   :)

   (look here for confighttp://designer.bojanka.net/js/config.js)

   On Mon, Dec 1, 2008 at 10:04 PM, mdipierro mdipie...@cs.depaul.edu
  wrote:

perhaps you and jwm can join forces. You have the same interests.

I am not planning to host this myself since you are doing it, but it
could be used and distributed with T3.

Massimo

On Dec 1, 2:57 pm, Boris Manojlovic boris.manojlo...@gmail.com
wrote:
 it was created as proof of concept, i planed to add more
  functionality
(as
 you can see from database schema)

http://www.bojanka.net/w2p-massimo.tar.gz

 it is opensource as all package is opensource, why to close back end
  :)

 On Mon, Dec 1, 2008 at 9:53 PM, mdipierro mdipie...@cs.depaul.edu
wrote:

  Boris,

  is it functional? Can I uninstall the old one and link yours? If it
  is
  open source, is the source posted somewhere?

  perhaps the two of you should join forces.

  Massimo

  On Dec 1, 2:43 pm, jwm team1...@gmail.com wrote:
   Boris,
   Looks like you had the thought before I did, Good Job!

   J

   On Dec 1, 2:39 pm, Boris Manojlovic 
  boris.manojlo...@gmail.com
   wrote:

   http://designer.bojanka.net/
and yes it is already on GAE...

On Mon, Dec 1, 2008 at 9:30 PM, jwm team1...@gmail.com
  wrote:

 On a related note I Am in the process of porting SQL Designer
  to
a
 web2py app on google appengine.

http://gaesql.appspot.com

 Right now I have streamlined the export process and am using
  it
as a
 tool to learn web2py better, I have a basic save backend in
  

[web2py:15637] Re: Hackfest for Web2Py/Sahana on Feb 14th 15:30 UTC

2009-01-31 Thread dhmorgan

Thanks for the heads up on this. Sahana looks like a very important
project, especially from the vantage point of the U.S.'s Gulf Coast. I
look forward to participating.

Danny

On Jan 31, 7:59 am, Fran francisb...@googlemail.com wrote:
 We are holding a Hackfest for Sahana on Feb 14th 15:30 
 UTChttps://trac.sahanapy.org/wiki/FOSSkriti

 There will be a physical group of people who're attending a conference
 at IIT Kanpur (India)  several people joining in remotely via IRC.

 Sahana is being built using Web2Py's new tools.py Auth/Crud which is a
 great way of pushing that development forward.
 Massimo will be joining us to help out with people knowing how to use/
 extend/fix Web2Py in support of this project.

 Anyone who wishes to join us is welcome on #Sahana /or #Web2Py.

 Looking forward to seeing some of you there :)

 Fran.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15348] Re: wsgi webfaction how-to

2009-01-23 Thread dhmorgan

 -  do you have a test web2py on webfaction using this now?  how's it
 working?  do you have a link to share?

yes, and it appears to be working fine; you are welcome to click on
the following link, though it is currently just the standard welcome/
examples; (right now I'm trying to get cgit ('fast' public server for
git) for the site set up so haven't gone further than to determine
that I could create new apps, etc.)

The Field of Streams --:  http://thefieldofstreams.net ;
administration: http://admin.thefieldofstreams.net

 -  can you say more about issue w/ static file handling (I don't see
 the issue just looking at the setup, so wondering what it is)

You're right. I even started to mention that in my post. Webfaction
practice is to serve static files via one of their servers, for which
you create an 'application' via webfaction's control panel. I've set
it up before in conjunction with Django-based sites but haven't yet
done so yet with web2py. My plan is to do so within the next couple of
days, and I'll be happy to document the process.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15349] Re: wsgi webfaction how-to

2009-01-23 Thread dhmorgan

 -  do you have a test web2py on webfaction using this now?  how's it
 working?  do you have a link to share?

yes, and it appears to be working fine; you are welcome to click on
the following link, though it is currently just the standard welcome/
examples; (right now I'm trying to get cgit ('fast' public server for
git) for the site set up so haven't gone further than to determine
that I could create new apps, etc.)
The Field of Streams -- http://thefieldofstreams.net 
https://admin.thefieldofstreams.net

 -  can you say more about issue w/ static file handling (I don't see
 the issue just looking at the setup, so wondering what it is)

You're right. I even started to mention that in my post. Webfaction
practice is to serve static files via one of their servers, for which
you create an 'application' via webfaction's control panel. I've set
it up before in conjunction with Django-based sites but haven't yet
done so yet with web2py. My plan is to do so within the next couple of
days, and I'll be happy to document the process.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15226] wsgi webfaction how-to

2009-01-21 Thread dhmorgan

Settting up Web2py as WSGI on Webfaction

Make available two subdomain names, one for adminstration, the other
for public display:
'admin.example.com'
'www.example.com'

Create a webfaction application of type mod_wsgi 2.0/Python 2.5:
'apachewsgi'

Create two webfaction sites that :
'mysite_admin' -- https enabled; subdomain 'admin.example.com';
application 'apachewsgi' served at '/'

'mysite' -- *not* https enabled; subdomain 'www.example.com';
application 'apachewsgi' served at '/'

Get the latest web2py and copy it into ~/webapps/apachewsgi/:
cd ~/repos/svn #for example
svn checkout http://web2py.googlecode.com/svn/trunk/ web2py-read-
only
svn export web2py-read-only ~/webapps/apachewsgi/web2py

Edit ~/webapps/apachewsgi/apache2/conf/httpd.conf:
see listing below

in the httpd.conf file, the port number for the app is in line:
Listen 

Create admin password:
in ~/webapps/apachewsgi/web2py:
python2.5 web2py -p   # where  is port number, no
quotes

web2py will ask you for a password, which it will then store in a
file, 'parameters_.py'

from another terminal, kill web2py process according to web2py's
output instructions

Start your app:
~/webapps/apachewsgi/apach2/bin/start

Have fun ?



=  START httpd.conf listing  ==

ServerRoot /home/[YOUR ACCOUNT]/webapps/apachewsgi/apache2

LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule wsgi_module modules/mod_wsgi.so

# above 6 are added by webfaction; I added mod_alias and mod_access
LoadModule alias_module modules/mod_alias.so
LoadModule access_module modules/mod_access.so

KeepAlive Off
Listen 

WSGIScriptAlias / /home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py/
wsgihandler.py
WSGIDaemonProcess web2py user=[YOUR ACCOUNT] group=[YOUR ACCOUNT] \
 home=/home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py \
 processes=1 maximum-requests=1000

NameVirtualHost 127.0.0.1:
VirtualHost 127.0.0.1:
ServerName www.example.com
DocumentRoot /home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py/
applications
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /home/[YOUR ACCOUNT]/webapps/apachewsgi/
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
/Directory
/VirtualHost

VirtualHost 127.0.0.1:
ServerName admin.example.com
DocumentRoot /home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py/
applications/admin
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /home/[YOUR ACCOUNT]/webapps/apachewsgi/
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
/Directory
/VirtualHost

LogFormat %{X-Forwarded-For}i %l %u %t \%r\ %s %b \%{Referer}i\
\
 \%{User-Agent}i\ combined
CustomLog logs/access_log combined
ServerLimit 2

=  END httpd.conf listing  ==


particular thanks to 'johanm' for post to web2py discussion group,
mod_wsgi deployment question --
http://groups.google.com/group/web2py/b … 12fcb8c94b

Danny

p.s. If you're looking for help setting up a development web2py
server, that's also doable; write me and I'll post a how-to


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15229] Re: wsgi webfaction how-to

2009-01-21 Thread dhmorgan

I have now put the above content in the wiki under web2py/Setup/

https://mdp.cti.depaul.edu/web2py_wiki/default/wiki/webfactionWSGI

It misses some things I'll change soon -- static file handling in
particular; but this is a reasonably good start.

On Jan 21, 4:11 pm, Timothy Farrell tfarr...@swgen.com wrote:
 It would be really great if you could put in this in thewww.web2pywiki.com



 dhmorgan wrote:
  Settting up Web2py as WSGI on Webfaction

  Make available two subdomain names, one for adminstration, the other
  for public display:
      'admin.example.com'
      'www.example.com'

  Create a webfaction application of type mod_wsgi 2.0/Python 2.5:
      'apachewsgi'

  Create two webfaction sites that :
      'mysite_admin' -- https enabled; subdomain 'admin.example.com';
  application 'apachewsgi' served at '/'

      'mysite' -- *not* https enabled; subdomain 'www.example.com';
  application 'apachewsgi' served at '/'

  Get the latest web2py and copy it into ~/webapps/apachewsgi/:
      cd ~/repos/svn #for example
      svn checkouthttp://web2py.googlecode.com/svn/trunk/web2py-read-
  only
      svn export web2py-read-only ~/webapps/apachewsgi/web2py

  Edit ~/webapps/apachewsgi/apache2/conf/httpd.conf:
      see listing below

      in the httpd.conf file, the port number for the app is in line:
          Listen 

  Create admin password:
      in ~/webapps/apachewsgi/web2py:
          python2.5 web2py -p       # where  is port number, no
  quotes

      web2py will ask you for a password, which it will then store in a
  file, 'parameters_.py'

      from another terminal, kill web2py process according to web2py's
  output instructions

  Start your app:
      ~/webapps/apachewsgi/apach2/bin/start

  Have fun ?

  =  START httpd.conf listing  ==

  ServerRoot /home/[YOUR ACCOUNT]/webapps/apachewsgi/apache2

  LoadModule dir_module modules/mod_dir.so
  LoadModule env_module modules/mod_env.so
  LoadModule log_config_module modules/mod_log_config.so
  LoadModule mime_module modules/mod_mime.so
  LoadModule rewrite_module modules/mod_rewrite.so
  LoadModule wsgi_module modules/mod_wsgi.so

  # above 6 are added by webfaction; I added mod_alias and mod_access
  LoadModule alias_module modules/mod_alias.so
  LoadModule access_module modules/mod_access.so

  KeepAlive Off
  Listen 

  WSGIScriptAlias / /home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py/
  wsgihandler.py
  WSGIDaemonProcess web2py user=[YOUR ACCOUNT] group=[YOUR ACCOUNT] \
       home=/home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py \
       processes=1 maximum-requests=1000

  NameVirtualHost 127.0.0.1:
  VirtualHost 127.0.0.1:
      ServerNamewww.example.com
      DocumentRoot /home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py/
  applications
      Directory /
              Options FollowSymLinks
              AllowOverride None
      /Directory
      Directory /home/[YOUR ACCOUNT]/webapps/apachewsgi/
              Options Indexes FollowSymLinks MultiViews
              AllowOverride None
              Order allow,deny
              allow from all
      /Directory
  /VirtualHost

  VirtualHost 127.0.0.1:
      ServerName admin.example.com
      DocumentRoot /home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py/
  applications/admin
      Directory /
              Options FollowSymLinks
              AllowOverride None
      /Directory
      Directory /home/[YOUR ACCOUNT]/webapps/apachewsgi/
              Options Indexes FollowSymLinks MultiViews
              AllowOverride None
              Order allow,deny
              allow from all
      /Directory
  /VirtualHost

  LogFormat %{X-Forwarded-For}i %l %u %t \%r\ %s %b \%{Referer}i\
  \
       \%{User-Agent}i\ combined
  CustomLog logs/access_log combined
  ServerLimit 2

  =  END httpd.conf listing  ==

  particular thanks to 'johanm' for post to web2py discussion group,
  mod_wsgi deployment question --
 http://groups.google.com/group/web2py/b… 12fcb8c94b

  Danny

  p.s. If you're looking for help setting up a development web2py
  server, that's also doable; write me and I'll post a how-to

 --
 Timothy Farrell tfarr...@swgen.com
 Computer Guy
 Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:15054] Re: Editing in Chrome, Opera and IE8 Beta

2009-01-16 Thread dhmorgan

Principally an issue of popup blocking. I tested the page in Chrome,
FireFox, Safari, and IE-6; only Chrome kills it; it even kills the
little 'toggle' switch at the bottom. It is a criticized feature of
Chrome insofar as it there's no method to override the blocking for
trusted sites without disabling blocking altogether; I haven't put
Opera on this machine.

As to the line numbers only going up to '2', you may have already
determined this for yourself, but the numbers just go up to the number
of lines entered in the text.

Danny

On Jan 15, 1:16 pm, mikech mp.ch...@gmail.com wrote:
 When editing inChromeand Opera, no line numbers show.  In IE8 beta
 only 2 lines of the editor show, always numbered 1  2.  When I enter
 on line 2 the text scrolls up but the numbers don't change

 Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14519] t3 admin, static files automatically downloading

2009-01-04 Thread dhmorgan

using T3 (r616), when I go to '/default/static' the files that have
been uploaded are automatically played/downloaded

(this happens when using Safari and Chrome, but not Firefox)



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14533] Re: t3 admin, static files automatically downloading

2009-01-04 Thread dhmorgan

OK. That's r616 of web2py, with T3 (first tried from tarball, then
from trunk) installed as 'myt3':

From the menubar's Manage menu, Static Files page, I uploaded an
image. As soon as the image is uploaded and the page reloads/
refreshes, the file is downloaded. Similarly when I return to this
page-- 'https://example.com/default/static'--in either Chrome or
Safari, the images starts downloading automatically. (wav files
start playing automatically)

I don't think this should matter, but for what it's worth, I have
default view set to this app. using routes.py and init application,
per instructions provided in other discussion posts.


On Jan 4, 10:04 am, mdipierro mdipie...@cs.depaul.edu wrote:
 You could you please give me more details? which page, url?

 On Jan 4, 9:24 am, dhmorgan dharrimanmor...@gmail.com wrote:

  using T3 (r616), when I go to '/default/static' the files that have
  been uploaded are automatically played/downloaded

  (this happens when using Safari and Chrome, but not Firefox)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14537] Re: t3 admin, static files automatically downloading

2009-01-04 Thread dhmorgan


 I will run some tests and try fix it asap.
 Massimo

thanks; no big hurry here

Danny



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14309] Re: open source organization again

2008-12-30 Thread dhmorgan

from Charter, goals section:
 2. Certify the knowledge and ethical standards of its members

I'm wondering what that might look like.

- Daniel


On Dec 27, 1:18 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 Some of you may remember previous threads on creating an organization
 to support web2py adoption and provide business support to the many
 skilled people in this list. This does not exist yet, it will not be a
 replacement for this group but more like a complement for those who
 choose to be part of it.

 So far I came up with this:

 http://docs.google.com/Doc?id=ddjcrc9c_1c3nmn4dn

 comments? suggestions? If you want edit access, just ask.

 Can you share some of your previous contracts (anonymized)?

 Can you help with a logo?

 Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14130] Re: reportlab in web2py?

2008-12-26 Thread dhmorgan

I like ReportLab and think of PDF generation as a necessary component.
I also know it took some time to get a handle on using it. I wouldn't
worry about how much size it adds as much as the overhead of making
and keeping it easy to use. Seems that it should be an appliance
rather than something built into web2py.



On Dec 24, 11:23 am, pmate pmateh...@gmail.com wrote:
 Pisa is really nice, but i'm totally pro reportlab.
 It's true that it is a little heavy but it's a great solution for
 printing in web2py

 Paolo

 On Dec 24, 3:36 pm, Timothy Farrell tfarr...@swgen.com wrote:

  Just like you would normally run a long-running process in web2py, os.spawn 
  is my favorite (python offers numerous methods).
  But...do we really want a framework that installs software on demand 
  (without prompting an admin)?  I say, let's just leave it to the humans.  
  It's one thing to make someone's life easier, it's another to allow them to 
  get away from a process that they should know about and control (like 
  messing with IP tables programmatically).
  Further driving the point, easy_install installs the latest version of a 
  package.  When I did this, it broke form-encode for me.
  -tim
  mdipierro wrote:is it possible to call easy_install programmatically? Can 
  anybody point me to an example? Massimo On Dec 23, 4:21 pm, Timothy 
  Farrelltfarr...@swgen.comwrote:easy_install reportlab dang, that's easy! 
  ;-) mr.freeze wrote:It would be nice to have a feature system that allows 
  either manual uploading (similar to the application upload) or on-demand 
  downloading of components like ReportLab so that each person could 
  customize their installation as they see fit. Just daydreaming out loud. It 
  would probably be difficult to implement and maintain. Components like 
  these are very useful but probably shouldn't be included in the framework 
  by default in my opinion. Nathan On Dec 23, 
  12:41 pm,mdipierromdipie...@cs.depaul.eduwrote:Should we include 
  reportlab in web2py? pros: web2py lacks printing capability and pdf output 
  may be a solution the license allows it cons: it doubles the size of web2py 
  there are alternative such as the openoffice APIs it requires creating a 
  site-package folder and add it the path Comments? Massimo-- Timothy 
  Farrelltfarr...@swgen.comComputer Guy Statewide General Insurance Agency 
  (www.swgen.com)-- Timothy Farrelltfarr...@swgen.comComputer Guy Statewide 
  General Insurance Agency (www.swgen.com)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14141] Re: web2py - unfair behavior

2008-12-26 Thread dhmorgan

above page generates possible PHISHING LINK; I'd recommend not
following it

On Dec 26, 11:08 am, Massimo Di Pierro mdipie...@cs.depaul.edu
wrote:
 Every days I see more and more of these:

 http://members.lycos.nl/ntgmkmam/snakes-tb9/web2py.html

 Clearly web2py is threatening somebody and they are trying their best  
 to confuse search engines so that web2py is cataloged as spam.

 Ideas?

 Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14142] Re: web2py - unfair behavior

2008-12-26 Thread dhmorgan

oh, wait; I guess that was the point ?

On Dec 26, 12:44 pm, dhmorgan dharrimanmor...@gmail.com wrote:
 above page generates possible PHISHING LINK; I'd recommend not
 following it

 On Dec 26, 11:08 am, Massimo Di Pierro mdipie...@cs.depaul.edu
 wrote:

  Every days I see more and more of these:

 http://members.lycos.nl/ntgmkmam/snakes-tb9/web2py.html

  Clearly web2py is threatening somebody and they are trying their best  
  to confuse search engines so that web2py is cataloged as spam.

  Ideas?

  Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---