[web2py] Auth only shows a few feilds on the profile page...

2010-05-04 Thread Jason Brower
I am not using any special view for the profile page...
This is the relevent stuff in my model...
db.define_table('users',
SQLField('nickname', 'string', length=20),
SQLField('first_name', 'string', length=15),
SQLField('last_name', 'string', length=15),
SQLField('phone_number', 'string', length=15),
SQLField('email', 'string'),
SQLField('password', 'password'),
SQLField('university_affiliation', 'string', length=25),
SQLField('created', 'datetime', default=now, readable=False,
writable=False),
SQLField('registration_key', length=128, writable=False,
readable=False, default=''),
SQLField('avatar', 'upload'),
SQLField('short_description','text'),
SQLField('sex','text'),)

###
# Authentication System
###
from gluon.tools import Mail, Auth

mail = Mail()
mail.settings.server='smtp.gmail.com:587'
mail.settings.sender= 'interes...@gmail.com'
mail.settings.login='interes...@gmail.com:browerandrei'

class MyAuth(Auth):
def __init__(self, environment, T, db = None):
"Initialise parent class & make any necessary modifications"
Auth.__init__(self,environment,db)
self.messages.logged_in = T("Logged in")
self.messages.email_sent = T("Email sent")
self.messages.email_verified = T("Email verified")
self.messages.logged_out = T("Logged out")
self.messages.registration_successful = T("Registration
successful")
self.messages.invalid_email = T("Invalid email")
self.messages.invalid_login = T("Invalid login")
self.messages.verify_email_subject = T("Password verify")
self.messages.username_sent = T("Your username was emailed to
you.")
self.messages.new_password_sent = T("A new password was emailed
to you.")
self.messages.password_changed = T("Password changed")
self.messages.retrieve_username=str(T("Your username is:"))+":
%(username)s"
self.messages.retrieve_username_subject="Username retrieve"
self.messages.retrieve_password=str(T("Your password is:"))+":
%(password)s"
self.messages.retrieve_password_subject = T("Password retrieve")
self.messages.profile_updated = T("Profile updated")
self.settings.table_user = db.users

auth = MyAuth(globals(), T, db)
auth.settings.mailer = mail
auth.define_tables()

And when I view the profile pate I get the proper view, but...
--
First name:[__]
Last name: [__]
E-mail:[__]
[Submit]

BR,
Jason




Re: [web2py] confirmation dialog on delete

2010-05-05 Thread Jason Brower
It would recommend doing your own jquery code for that.  Then based on
the id of the button you can have it do anything you like.
The jquery webpage is good to look at for this information.
Best Regards,
Jason

On Wed, 2010-05-05 at 02:50 -0700, annet wrote: 
> The jQuery code for confirmation on delete connects the onclick event
> of the checkbox with a confirmation dialog. I would like this
> confirmation dialog to be triggered by the submit button.
> 
> Is it possible to re-write the code in web2py_ajax.html:
> 
> jQuery("input[type='checkbox'].delete").click(function() { if
> (this.checked) if(!confirm("{{=T('Sure you want to delete this
> object?')}}")) this.checked=false; });
> 
> ... so that the code connects to the onclick event of the submit and
> not the onclick event of the checkbox?
> 
> 
> Kind regards,
> 
> Annet.




Re: [web2py] error in import pyserial

2010-05-05 Thread Jason Brower
Sounds like something called wintypes is missing. See if you can install that.
Jason

- Original message -
> hi all,
> I want to import pyserial  package. however, got an import error.  I
> tried a really simple module and it imports just fine. I am not sure
> which problem is it.
>
> thanks for help!
>
>
> Controller
> ===
>
> def start():
>        import sys
>        path = "C:\\Documents and Settings\\frank.zhu\\My Documents\
> \Downloads\\web2py\\site-packages\\"
>        if path not in sys.path:
>                sys.path.append(path)
>        # kick off the serial driver
>        import serial
>        # update bus state in the database
>        return dict(session.bus)
>
> Error
> 
>
> Traceback (most recent call last):
>    File "gluon/restricted.py", line 178, in restricted
>    File "C:/Documents and Settings/frank.zhu/My Documents/Downloads/
> web2py/applications/dms/controllers/default.py", line 82, in 
>    File "gluon/globals.py", line 96, in 
>    File "C:/Documents and Settings/frank.zhu/My Documents/Downloads/
> web2py/applications/dms/controllers/default.py", line 30, in start
>    File "C:\Documents and Settings\frank.zhu\My Documents\Downloads
> \web2py\site-packages\pyserial-2.5-rc2\serial\__init__.py", line 19,
> in 
>    File "C:\Documents and Settings\frank.zhu\My Documents\Downloads
> \web2py\site-packages\pyserial-2.5-rc2\serial\serialwin32.py", line
> 12, in 
>    File "C:\Documents and Settings\frank.zhu\My Documents\Downloads
> \web2py\site-packages\pyserial-2.5-rc2\serial\win32.py", line 2, in
> 
> ImportError: No module named wintypes



Re: [web2py] Re: error in import pyserial

2010-05-07 Thread Jason Brower
I have never had to deal wtih python for windows.  You may want to ask
the python guys themselves, or the pyserial guys.  If you have access to
irc you can talk to them and they answer very quickly. Sorry I can't
help you more there.
BR,
Jason

On Thu, 2010-05-06 at 06:06 -0700, frankz wrote: 
> Paraneeth
> How does pyserial work for you? can you provide details? which
> platform?
> 
> I tested on linux machine and confirmed pyserial works. Just curious
> how can it be done on windows.
> 
> thanks,
> 
> On May 6, 8:56 am, frankz  wrote:
> > How can i fix this? for wintypes, i put the ctypes folder under site-
> > packages, it doesn't make any change. Same thing after I put wintypes
> > directly under site-packages. I also restart the web2py.
> > Is there any generic way to import packages? like pyserial, it has a
> > package name - pyserial-2.5-rc2, should i copy the whole folder to
> > site-packages and then add path to pyserial2.5-rc2?
> >
> > thanks,
> >
> > On May 5, 11:20 pm, Jason Brower  wrote:
> >
> > > Sounds like something called wintypes is missing. See if you can install 
> > > that.
> > > Jason
> >
> > > - Original message -
> > > > hi all,
> > > > I want to import pyserial  package. however, got an import error.  I
> > > > tried a really simple module and it imports just fine. I am not sure
> > > > which problem is it.
> >
> > > > thanks for help!
> >
> > > > Controller
> > > > ===
> >
> > > > def start():
> > > >import sys
> > > >path = "C:\\Documents and Settings\\frank.zhu\\My Documents\
> > > > \Downloads\\web2py\\site-packages\\"
> > > >if path not in sys.path:
> > > >sys.path.append(path)
> > > ># kick off the serial driver
> > > >import serial
> > > ># update bus state in the database
> > > >return dict(session.bus)
> >
> > > > Error
> > > > 
> >
> > > > Traceback (most recent call last):
> > > >File "gluon/restricted.py", line 178, in restricted
> > > >File "C:/Documents and Settings/frank.zhu/My Documents/Downloads/
> > > > web2py/applications/dms/controllers/default.py", line 82, in 
> > > >File "gluon/globals.py", line 96, in 
> > > >File "C:/Documents and Settings/frank.zhu/My Documents/Downloads/
> > > > web2py/applications/dms/controllers/default.py", line 30, in start
> > > >File "C:\Documents and Settings\frank.zhu\My Documents\Downloads
> > > > \web2py\site-packages\pyserial-2.5-rc2\serial\__init__.py", line 19,
> > > > in 
> > > >File "C:\Documents and Settings\frank.zhu\My Documents\Downloads
> > > > \web2py\site-packages\pyserial-2.5-rc2\serial\serialwin32.py", line
> > > > 12, in 
> > > >File "C:\Documents and Settings\frank.zhu\My Documents\Downloads
> > > > \web2py\site-packages\pyserial-2.5-rc2\serial\win32.py", line 2, in
> > > > 
> > > > ImportError: No module named wintypes




Re: [web2py] New to web app development -- is web2py a good choice

2010-05-08 Thread Jason Brower
Yup... the software I create with web2py is stricty internal anyway.
They honestly would fire me if it looked too good.  I would be wasting
there money. :P
Best Regards,
Jason

On Sat, 2010-05-08 at 11:30 -0500, Thadeus Burgess wrote: 
> One thing I have noticed is django and RoR is for the most part, a
> designer oriented community. IE: Lots of designers, few real
> programmers/engineers, this is why you see design-oriented keywords
> floating around in those frameworks. Most of us here in the web2py
> community are programmers/engineers/physicists, etc... we don't have
> the best design skills, even if we are brilliant =)
> 
> --
> Thadeus
> 
> 
> 
> 
> 
> On Sat, May 8, 2010 at 9:07 AM, Alexei Vinidiktov
>  wrote:
> > On Thu, May 6, 2010 at 12:37 PM, Anthony  wrote:
> > [...]
> >
> >> From what I've read, web2py sounds like a great framework --
> >> comprehensive, well-integrated, easy to set up, learn, and deploy,
> >> etc. However, although it sounds good on paper, I haven't yet found a
> >> single site built with web2py that looks all that impressive (at least
> >> superficially). It's easy to find quite a number of sophisticated and
> >> impressive looking sites/apps built with Ruby on Rails and Django, but
> >> I haven't seen anything remotely comparable based on web2py. I'm
> >> wondering why the disparity.
> >
> > What you've seen on those sites is the façade. It's the work of
> > graphic designers and not a merit of the underlying frameworks. That's
> > what you see.
> >
> > I'm sure the same effect can be achieved with any web2py based
> > website. You just need to hire a great graphic designer and usability
> > expert.
> >
> > --
> > Alexei Vinidiktov
> >




[web2py] Feature Request: Text Based Log Viewer

2010-05-10 Thread Jason Brower
When I get errors in my logs I have to scour through the error folder
for the issues.  It would be so totally awsome if I were able to see the
errors parse and looking snazzy in a texted based (console) error log
viewer.  That way I can easily see the errors and what line they are on.
Unless there is a better way. :)
Best Regards,
Jason Brower




Re: [web2py] Do you use web2py in your company?

2010-05-10 Thread Jason Brower
I have used my software in both my web-dev company, my thesis, my
schoolwork, and in the 2 jobs I got after school. (I am in m y second
job.)  I know they won't let me take screenshots, but I can ask if we
can use the company names.  One is a pretty big one and quite the name
to have under your web2py belt.
---
Best Regards,
Jason Brower

On Mon, 2010-05-10 at 14:09 -0700, mdipierro wrote: 
> Anthony made some good points:
> http://groups.google.com/group/web2py/msg/a40b27807edc8603
> 
> For now let's concentrate on one of them for now. If you have
> developed software in web2py that you use internally in your company
> but you cannot release it open source, would you let us know? Can you
> tell us what is the software for? Could you provide a screenshot? Can
> we quote the name of the company?
> 
> Massimo




Re: [web2py] Re: Feature Request: Text Based Log Viewer

2010-05-11 Thread Jason Brower
I would like to not have them available online at all.  I want to be
able to see the logs from web2py's error folder in a nice way.  Right
now I get this...(attatched).  They look like pickles to me. I want to
be able to read them with a text based system. (Like when I ssh into my
server to see the issues in the application.
---
Best Regards,
Jason Brower
On Mon, 2010-05-10 at 21:56 -0700, mdipierro wrote: 
> are you talking about apache error log, httpserver.log, tickets of
> console logs?
> In the first case we have two apps for that:
> 
> http://web2py.com/appliances/default/show/14
> http://web2py.com/appliances/default/show/27
> 
> I think the second is better.
> 
> On May 10, 11:06 pm, Jason Brower  wrote:
> > When I get errors in my logs I have to scour through the error folder
> > for the issues.  It would be so totally awsome if I were able to see the
> > errors parse and looking snazzy in a texted based (console) error log
> > viewer.  That way I can easily see the errors and what line they are on.
> > Unless there is a better way. :)
> > Best Regards,
> > Jason Brower

(dp1
S'output'
p2
S''
sS'layer'
p3
S'/home/encompass/Programming/Web 
Pages/web2py/applications/2hand/views/default/table_test.html'
p4
sS'code'
p5
S'response.write(\'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>\\nhttp://www.w3.org/1999/xhtml"\\n  
xml:lang="\',escape=False)\nresponse.write(T.accepted_language or 
\'en\')\nresponse.write(\'">\\n  \\n
\',escape=False)\nresponse.write(response.title or 
\'response.title\')\nresponse.write(\'\\n  \\n  \\n  \\n  \\n  \\n  
\',escape=False)\nresponse.files.insert(0,URL(r=request,c=\'static\',f=\'jquery.js\'))\nresponse.files.insert(1,URL(r=request,c=\'static\',f=\'calendar.css\'))\nresponse.files.insert(2,URL(r=request,c=\'static\',f=\'calendar.js\'))\nresponse.files.insert(3,URL(r=request,c=\'static\',f=\'ui.jquery.js\'))\nfor
 _item in response.meta or []:\nresponse.write(\'\\n \',escape=False)\npass\nfor _k,_file in 
enumerate(response.files or []):\nif _file in response.files[:_k]:\n
continue\nelif _file[-4:].lower()==\'.css\':\nresponse.write(\'\\n  
   \',escape=False)\nelif _file[-3:].lower()==\'.js\':\n
response.write(\'\\n \',escape=False)\npass\n
pass\nresponse.write(\'\\n<!--\\nfunction 
popup(url) {\\n  
newwindow=window.open(url,\\\'name\\\',\\\'height=400,width=600\\\');\\n  if 
(window.focus) newwindow.focus();\\n  return false;\\n}\\nfunction collapse(id) 
{ jQuery(\\\'#\\\'+id).slideToggle(); }\\nfunction fade(id,value) { if(value>0) 
jQuery(\\\'#\\\'+id).hide().fadeIn(\\\'slow\\\'); else 
jQuery(\\\'#\\\'+id).show().fadeOut(\\\'slow\\\'); }\\nfunction ajax(u,s,t) 
{\\n  var query="";\\n  for(i=0; i<s.length; i++) { \\n if(i>0) 
query=query+"&";\\n 
query=query+encodeURIComponent(s[i])+"="+encodeURIComponent(document.getElementById(s[i]).value);\\n
  }\\n  jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) 
{ if(t==\\\':eval\\\') eval(msg); else 
document.getElementById(t).innerHTML=msg; } });  
\\n}\\nString.prototype.reverse = function () { return 
this.split(\\\'\\\').reverse().join(\\\'\\\');};\\nfunction web2py_ajax_init() 
{\\n  jQuery(\\\'.hidden\\\').hide();\\n  
jQuery(\\\'.error\\\').hide().show(\\\'highlight\\\', 5000);\\n  
jQuery(\\\'.flash\\\').click(function() { jQuery(this).hide(\\\'blind\\\', 
2000); return false; });\\n  
jQuery(\\\'input.integer\\\').keyup(function(){this.value=this.value.reverse().replace(/[^0-9-]|-(?=.)/g,\\\'\\\').reverse();});\\n
  
jQuery(\\\'input.double\\\').keyup(function(){this.value=this.value.reverse().replace(/[^0-9-.]|[-](?=.)|[.](?=[0-9]*[.])/g,\\\'\\\').reverse();});\\n
  jQuery("input[type=\\\'checkbox\\\'].delete").click(function() { 
if(this.checked) if(!confirm("\',escape=False)\nresponse.write(T(\'Sure you 
want to delete this object?\'))\nresponse.write(\'")) this.checked=false; }); 
\\n  try {jQuery("input.date").focus( function() {Calendar.setup({\\n 
inputField:this.id, 
ifFormat:"\',escape=False)\nresponse.write(T(\'%Y-%m-%d\'))\nresponse.write(\'",
 showsTime:false\\n  }); }); } catch(e) {};\\n  try { 
jQuery("input.datetime").focus( function() {Calendar.setup({\\

[web2py] Letting one user access a particular page at a time (queuing)...

2010-05-11 Thread Jason Brower
Peter and I are trying to implement a queuing feature in a webpage.
Basically if the user is logged in, he can wait in line for getting to
run a robot from a particular page.  I gave it my best shot and couldn't
figure it out.
We need it to be able to have one person access a page at a time and
they can be in and out of that page for 5 minutes before someone else
comes in.
I think we could have a page that has a counter, it refreshes every 30
seconds and redirects the page if their time is up.
Please help as it's a real chance for web2py to shine in this school.
After working with Peter I have come up with the following solution
which I think is pretty close.

import time
@auth.requires_login()
def run_robot():
id = auth.user.id
user_in_queue = db(db.queue.users_id == id).select()
if len(user_in_queue):
if session.in_now:
users_in_queue = db().select(db.queue.ALL, orderby =
db.queue.end_time)
last_time = 0
for person in users_in_queue:
last_time = person.end_time
return dict(user_in_queue = user_in_queue)
if user_in_queue[0].end_time < time.time():
response.flash = "you can still be here."
return dict() #redirect(URL(r=request,c='default',f='index'))
else:
#redirect(URL(r=request,c='default',f='index'))
else:
users_in_queue = db().select(db.queue.ALL, orderby =
db.queue.end_time)
last_time = 0
for person in users_in_queue:
last_time = users_in_queue.end_time
response.flash = last_time
session.time_to_wait = int(time.time())+(60*len(users_in_queue))
current_time = time.time()
time_to_wait = (60*len(users_in_queue))
start_time = int(time.time())
end_time = int(session.time_to_wait + 60)
db.queue.insert(users_id = id, end_time = end_time,
start_time=start_time) # we add that active user to the queue and add
time to the current time to get the end time.
return dict(start_time = start_time, end_time = end_time, last_time
= last_time)




Re: [web2py] Re: Idea: Appliance remote management

2010-05-13 Thread Jason Brower
I say we move forward with this one as it doesn't need so much work as
with the plugins.  At least at first thought.  It's just additional
metadata in the application.  I think some simple xml/html would do the
trick.  Just what data if for someone else to think about. :D
But I think it's awesome.
Best Regards,
Jason Brower

On Thu, 2010-05-13 at 09:13 -0700, mdipierro wrote: 
> This is a good idea.
> 
> On May 13, 11:09 am, blackthorne  wrote:
> > ok, this one may be interesting...
> >
> > Currently, we can install web2py apps in one of 3 ways. uploading it,
> > providing its url or putting the files in the applications folder
> > manually. Nothing wrong with this but seems to me that with little
> > effort we could take this beyond.
> > Think about an integrated (web) interface that  allowed you to search
> > or browser appliances and show its details when requested. This could
> > happen inside the web2py framework and you could even install it by
> > pressing a button (actually it just needs to use the already existing
> > "download/provide url" option inside).
> > I think this could improve user/developer experience but that's not
> > all...
> > Applications could have versions, and a changelog that could make part
> > of the details of the application and an "update" option, so that
> > users could keep all their apps on the edge.
> >
> > Who's with me?
> >
> > Thank you, best regards




Re: [web2py] Re: Idea: Appliance remote management

2010-05-13 Thread Jason Brower
Do we need any hosting? I can provide that if needed. I am using dreamhost and 
have a virtual server there.
BR,
Jason

- Original message -
> I agree.
>
> On May 13, 9:02 pm, Thadeus Burgess  wrote:
> > Massimo, we can take the ideas for plugin metadata and use it for
> > applications as well?
> >
> > Change the name from plugincentral to web2pycentral. We can start an
> > open source version of the web2pycentral and decide who can work on
> > it.
> >
> > --
> > Thadeus
> >
> > On Thu, May 13, 2010 at 2:07 PM, Jason Brower  wrote:
> > > I say we move forward with this one as it doesn't need so much work as
> > > with the plugins.  At least at first thought.  It's just additional
> > > metadata in the application.  I think some simple xml/html would do the
> > > trick.  Just what data if for someone else to think about. :D
> > > But I think it's awesome.
> > > Best Regards,
> > > Jason Brower
> >
> > > On Thu, 2010-05-13 at 09:13 -0700, mdipierro wrote:
> > > > This is a good idea.
> >
> > > > On May 13, 11:09 am, blackthorne  wrote:
> > > > > ok, this one may be interesting...
> >
> > > > > Currently, we can install web2py apps in one of 3 ways. uploading it,
> > > > > providing its url or putting the files in the applications folder
> > > > > manually. Nothing wrong with this but seems to me that with little
> > > > > effort we could take this beyond.
> > > > > Think about an integrated (web) interface that  allowed you to search
> > > > > or browser appliances and show its details when requested. This could
> > > > > happen inside the web2py framework and you could even install it by
> > > > > pressing a button (actually it just needs to use the already existing
> > > > > "download/provide url" option inside).
> > > > > I think this could improve user/developer experience but that's not
> > > > > all...
> > > > > Applications could have versions, and a changelog that could make part
> > > > > of the details of the application and an "update" option, so that
> > > > > users could keep all their apps on the edge.
> >
> > > > > Who's with me?
> >
> > > > > Thank you, best regards



Re: [web2py] Re: Auth not showing all my custome feilds...

2010-05-14 Thread Jason Brower
It didn't seem to make any difference unfortunately.  To be thorough I
will include the entire db.py to make sure I didn't miss something. This
site goes live in a few weeks and it would be nice to have this feature.
Best Regards,
Jason Brower

On Wed, 2010-05-12 at 21:05 -0700, mdipierro wrote: 
> Not sure this should have ever worked. It needs
> 
> This:
> self.settings.table_user = db.users
> should be:
> self.settings.table_user_name = 'users'
> 
> Honestly I have not tested much what happens if you rename the
> auth_user table. Please let us know if you encouter ther problems.
> 
> 
> On May 12, 10:19 pm, Jason Brower  wrote:
> > It used to work back in the day.  But it doesn't seem to be working now.
> > Any idea on what I would be doing wrong?
> > This is my model and the view is below when I try to register.  As you
> > can see they don't go together. :/ For example, I should have university
> > affiliation there in the view. Any ideas what I did wrong here?
> > ---
> > Best Regards,
> > Jason Brower
> >
> >  Screenshot.png
> > 117KViewDownload
> >
> >  example-db.py
> > 2KViewDownload

from datetime import datetime, date, time
now = datetime.utcnow()
today = date.today()


db = SQLDB('sqlite://interestID.db')

db.define_table('users',
Field('nickname', 'string', length=20),
Field('first_name', 'string', length=15),
Field('last_name', 'string', length=15),
Field('phone_number', 'string', length=15),
Field('email', 'string'),
Field('password', 'password'),
Field('university_affiliation', 'string', length=25),
Field('created', 'datetime', default=now, readable=False, writable=False),
Field('registration_key', length=128, writable=False, readable=False, default=''),
Field('avatar', 'upload'),
Field('short_description','text'),
Field('sex','text'),)

###
# Authentication System
###
from gluon.tools import Mail, Auth

mail = Mail()
mail.settings.server='smtp.gmail.com:587'
mail.settings.sender= 'interes...@gmail.com'
mail.settings.login='interes...@gmail.com:'

class MyAuth(Auth):
def __init__(self, environment, T, db = None):
"Initialise parent class & make any necessary modifications"
Auth.__init__(self,environment,db)
self.messages.logged_in = T("Logged in")
self.messages.email_sent = T("Email sent")
self.messages.email_verified = T("Email verified")
self.messages.logged_out = T("Logged out")
self.messages.registration_successful = T("Registration successful")
self.messages.invalid_email = T("Invalid email")
self.messages.invalid_login = T("Invalid login")
self.messages.verify_email_subject = T("Password verify")
self.messages.username_sent = T("Your username was emailed to you.")
self.messages.new_password_sent = T("A new password was emailed to you.")
self.messages.password_changed = T("Password changed")
self.messages.retrieve_username=str(T("Your username is:"))+": %(username)s"
self.messages.retrieve_username_subject="Username retrieve"
self.messages.retrieve_password=str(T("Your password is:"))+": %(password)s"
self.messages.retrieve_password_subject = T("Password retrieve")
self.messages.profile_updated = T("Profile updated")
self.settings.table_user = "users"

auth = MyAuth(globals(), T, db)
auth.settings.mailer = mail
auth.define_tables()

db.define_table('tag',
Field('name', 'string'),
Field('description', 'text'),
Field('logo', 'upload'),
Field('created', 'date', default=now, writable=False),
Field('creator', 'string', writable=False))

db.define_table('user_tags',
Field('tag_id',db.tag),
Field('user_id',db.users))

db.define_table('user_photos',
Field('photo', 'upload'),
Field('description', 'text'),
Field('tag', db.tag),
Field('date_added', 'datetime', default=request.now, readable=False, writable=False))

db.user_photos.tag.requires = IS_IN_DB(db, db.tag.id, '%(name)s')

db.user_tags.tag_id.requires = IS_IN_DB(db,'tag.id')
db.user_tags.user_id.requires = IS_IN_DB(db,'users.id')

db.users.nickname.requires = IS_NOT_IN_DB(db,'users.nickname')
db.users.first_name.requires = IS_NOT_EMPTY()
db.users.last_name.requires = IS_NOT_EMPTY()
db.users.password.requires = CRYPT()
db.users.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db,'users.email')]
db.users.created.requires = IS_NOT_EMPTY()
db.users.sex.requires = IS_IN_SET(["Male","Female","Unset"])

db.tag.name.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db,'tag.name')]
db.tag.description.requires = IS_NOT_EMPTY()
db.tag.logo.requires = IS_NOT_EMPTY()
db.tag.created.requires = IS_NOT_EMPTY()

#Special condition to default to the current user.
if auth.user:
user_id=auth.user.email
else: user_id=0
db.tag.creator.default=user_id


Re: [web2py] Re: Auth not showing all my custome feilds... [SOLVED]

2010-05-15 Thread Jason Brower
With a bit of effort I rebuilt it to work by meerging my code with the
documentation found in the manual.  Ish... lots of work... but for the
sake of showing it to others, here you go.
Thank you for the book. It was the big saver in all this.
---
BR,
Jason

On Wed, 2010-05-12 at 21:05 -0700, mdipierro wrote: 
> Not sure this should have ever worked. It needs
> 
> This:
> self.settings.table_user = db.users
> should be:
> self.settings.table_user_name = 'users'
> 
> Honestly I have not tested much what happens if you rename the
> auth_user table. Please let us know if you encouter ther problems.
> 
> 
> On May 12, 10:19 pm, Jason Brower  wrote:
> > It used to work back in the day.  But it doesn't seem to be working now.
> > Any idea on what I would be doing wrong?
> > This is my model and the view is below when I try to register.  As you
> > can see they don't go together. :/ For example, I should have university
> > affiliation there in the view. Any ideas what I did wrong here?
> > ---
> > Best Regards,
> > Jason Brower
> >
> >  Screenshot.png
> > 117KViewDownload
> >
> >  example-db.py
> > 2KViewDownload

from datetime import datetime, date, time
now = datetime.utcnow()
today = date.today()


db = SQLDB('sqlite://interestID.db')

###
# Authentication System
###
from gluon.tools import Mail, Auth

mail = Mail()
mail.settings.server='smtp.gmail.com:587'
mail.settings.sender= 'interes...@gmail.com'
mail.settings.login='interes...@gmail.com:'

auth = Auth(globals(), db)

# after
# auth = Auth(globals(),db)
auth_table = db.define_table(
auth.settings.table_user_name,
Field('first_name', length=128, default=''),
Field('last_name', length=128, default=''),
Field('email', length=128, default='', unique=True),
Field('password', 'password', length=256,
readable=False, label='Password'),
Field('registration_key', length=128, default= '',
writable=False, readable=False),
Field('nickname', 'string', length=20),
Field('phone_number', 'string', length=15),
Field('university_affiliation', 'string', length=25),
Field('created', 'datetime', default=now, readable=False, writable=False),
Field('avatar', 'upload'),
Field('short_description','text'),
Field('sex','text')
)
auth_table.first_name.requires = \
IS_NOT_EMPTY(error_message=auth.messages.is_empty)
auth_table.last_name.requires = \
IS_NOT_EMPTY(error_message=auth.messages.is_empty)
auth_table.password.requires = [IS_STRONG(), CRYPT()]
auth_table.email.requires = [
IS_EMAIL(error_message=auth.messages.invalid_email),
IS_NOT_IN_DB(db, auth_table.email)]
auth.settings.table_user = auth_table
auth_table.nickname.requires = IS_NOT_IN_DB(db,'auth_users.nickname')
auth_table.created.requires = IS_NOT_EMPTY()
auth_table.sex.requires = IS_IN_SET(["Male","Female","Unset"])


# before
# auth.define_tables()

auth.settings.mailer = mail
auth.define_tables()

db.define_table('tag',
Field('name', 'string'),
Field('description', 'text'),
Field('logo', 'upload'),
Field('created', 'date', default=now, writable=False),
Field('creator', 'string', writable=False))

db.define_table('user_tags',
Field('tag_id',db.tag),
Field('user_id', auth_table))

db.define_table('user_photos',
Field('photo', 'upload'),
Field('description', 'text'),
Field('tag', db.tag),
Field('date_added', 'datetime', default=request.now, readable=False, writable=False))

db.user_photos.tag.requires = IS_IN_DB(db, db.tag.id, '%(name)s')

db.user_tags.tag_id.requires = IS_IN_DB(db,'tag.id')
db.user_tags.user_id.requires = IS_IN_DB(db,'auth_users.id')

db.tag.name.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db,'tag.name')]
db.tag.description.requires = IS_NOT_EMPTY()
db.tag.logo.requires = IS_NOT_EMPTY()
db.tag.created.requires = IS_NOT_EMPTY()

#Special condition to default to the current user.
if auth.user:
user_id=auth.user.email
else: user_id=0
db.tag.creator.default=user_id


Re: [web2py] web2py 1.78.1 is OUT

2010-05-15 Thread Jason Brower
Oh fun.  But waht OPTGROUP, and block name/end stuff do? How do I use
it?
Best Regards,
Jason
On Sat, 2010-05-15 at 22:14 -0700, mdipierro wrote: 
> Please check it
> 
> changelog
> - new template system allows {{block name}}{{end}}, thanks Thadeus
> - fixed mime headers in emails, included PGP in emails, thanks Gyuris
> - automatic database retry connect when pooling and lost connections
> - OPTGROUP helper, thanks Iceberg
> - web2py_ajax_trap captures all form submissions, thank you Skiros
> - multicolumn checkwidget and arbitrary chars in multiple is_in_set,
> thanks hy
> - Québécois for welcome, thanks Chris
> - crud.search(), thanks Mr Freeze
> - DAL(...migrate,fake_migrate), thanks Thadeus




[web2py] IDEA: opeing files with prefered editor...

2010-05-17 Thread Jason Brower
I know that we ahve the integrated editor.  But I have sure been loving
the speed of my own editor.  Couldn't we have the web2py server open the
file in our favorite editor?  I wonder how hard it would be to have it
so that when I click on the file that an error references to that it
would open in scribus or what ever default editor we want.
That would really speed up the development as I can jump to the errors
quickly.
What do you guys think?
Best regards,
Jason Brower




Re: [web2py] Re: IDEA: opeing files with prefered editor...

2010-05-17 Thread Jason Brower
I don't think we would even need a plugin... you just make a call to the
web2py server and it would open the file for you.
BR,
Jason Brower

On Mon, 2010-05-17 at 20:58 -0700, mdipierro wrote: 
> there is a firefox plugin for that.
> 
> On May 17, 6:10 am, Jason Brower  wrote:
> > I know that we ahve the integrated editor.  But I have sure been loving
> > the speed of my own editor.  Couldn't we have the web2py server open the
> > file in our favorite editor?  I wonder how hard it would be to have it
> > so that when I click on the file that an error references to that it
> > would open in scribus or what ever default editor we want.
> > That would really speed up the development as I can jump to the errors
> > quickly.
> > What do you guys think?
> > Best regards,
> > Jason Brower




Re: [web2py] Idea on web server integration

2010-05-18 Thread Jason Brower
I personally see no problem with forking in that direction.  Just as
Ubuntu is a fork of Debian.  They can both help each other.
:)
Best Regards,
Jason Brower

On Tue, 2010-05-18 at 05:12 -0700, blackthorne wrote: 
> hi
> 
> I don't want to fill this groups with ideas, mainly with ideas that
> will never see light. Anyway, if someone has more free time than me,
> you may consider it.
> I was checking a screencast on the awesome Cherokee web server with
> it's great web interface and thinking how cool would it be to have a
> bundle of cherokee with web2py deployed. Actually, cherokee it's
> prepared for that. It has a set of wizards so you can easily deploy
> frameworks like this ( http://www.cherokee-project.com/doc/cookbook_ror.html
> ).
> A good integration of these things could allow you the full cycle of
> work since the download of the required tools, development, test,
> deploy just using a web browser available on any device these days!
> 
> See it working at http://www.cherokee-project.com/screencasts.html .




Re: [web2py] Re: monetize web2py anybody?

2010-05-23 Thread Jason Brower
I think it is a great idea. It is going to have to look good.  Really good. 
Business people want the look first not the functionality.
I would be willing to be a part of this group.
Best regards,
Jason Brower

- Original message -
> Massimo, you are awesome.  I wish my CS professors had the breadth and
> tenacity that you have shown in this project with the full cycle from
> design, to implementation, to community building.
>
> Regards,
> Kevin
>
> On May 23, 4:18 pm, mdipierro  wrote:
> > I have some problems:
> >
> > 1) people ask me to contribute to more projects that I can handle.
> > 2) I am good at kicking off a project (20% of the work) but I am not
> > the best person to bring it to production (the other 80%) of the work.
> > 3) I want to delegate some of these projects to users I trust. I need
> > to better keep track of you, the users, your skills and interests.
> >
> > You and I have some problems in common:
> > 1)  you are an individual or you own a small consulting company and
> > you find hard to compete for large projects
> > 2) you want to use web2py but you need to sell web2py before you can
> > sell yoru services.
> > 3) you need legal help (sample non-disclosure agreement, sample
> > contracts, etc.)
> > 4) for large projects you need to find people who can help you with
> > development (you man need a designer, a coder, a system administrator,
> > a GAE expert, etc).
> > 5) you want somebody else to handle advertising for you
> >
> > I want to help. I want to help you find development jobs, network, and
> > compete for larger projects by providing some assistance.
> >
> > I am about to create something like an association of web2py
> > professionals with a portal that provides web sites for members,
> > repository of legal forms, job posting, progress tracking, feedback
> > forms, etc. Here is the basic idea: we do not advertise web2py, we
> > advertise the association and its members. you find a client? you keep
> > all the money. You want to offer your client long term support or code
> > review? the association will sell that to the client directly
> > directly. You want to be listed as a member? Follow a code of conduct
> > (basically use approved tools and ask your clients to review your work
> > publicly). You already have a consulting company or an employer? You
> > can have the company listed as an associate under some conditions.
> >
> > We can turn our group into a large international consulting
> > organization overnight. There would be no contract between the
> > association and you other than a code of conduct that you will have to
> > follow to be listed and that I am about to wrote. You can continue to
> > work as an individual or with your existing company. The association
> > will just help when you need help.
> >
> > The association may also partner with some member to provide venture
> > capital in the form of code development (and perhaps money but not
> > immediately) for specific projects submitted to the association, in
> > exchange of shares.
> >
> > I have already incorporated to do this. This will be independent and
> > complementary form web2py itself and web2py would not be the only tool
> > in the association approved toolkit.
> >
> > For now the toolkit will include: web2py, ubuntu, postgresql, jquery,
> > and google app engine. You as an individual or a company can provide
> > services based on other tools but the association will endorse these
> > tools because we can easily find people skilled in them and you, as a
> > member, will be required to endorse these tools as good tools and
> > demonstrate your skills in some of them (not all of them).
> >
> > web2py is a tool. We will all outlive web2py. But we have created
> > something important here. A community of skilled professional that
> > share some experience. I want to see this grow with web2py and beyond
> > web2py later. I want to see us compete with large consulting
> > companies. I want to do it using a new business model in which there
> > are no shareholders to take a cut of your work since they would not be
> > providing any means of production to you (you already own a laptop and
> > that is your office), yet I want to provide the other benefits that a
> > large corporation can offer (a single image, consistency,
> > reliability).
> >
> > Not sure if there should be an admission criteria. I could use your
> > feedback about this.
> >
> > Comments? Thought? You do not have to commit to anything now but who
> > is interested?
> >
> > Massimo



Re: [web2py] Re: monetize web2py anybody?

2010-05-23 Thread Jason Brower
I totally understand. As a student that has seen some student cheat when
I failed the class, I certainly don't like the idea in that perspective.
But we don't turn off the internet when there are viruses. I say we
provide a reporting system to find these idiots rather than just keep
letting them pass by.  Not sure the best way to implement it, but I
think it could be done.
BR,
Jason
On Sun, 2010-05-23 at 20:20 -0700, mdipierro wrote: 
> Getafreelancer is what some of my students use to get their homework
> done. Does not resonate very well with me. :-(
> 
> Massimo
> 
> On May 23, 10:15 pm, Álvaro Justen  wrote:
> > On Sun, May 23, 2010 at 20:18, mdipierro  wrote:
> > > I have some problems:
> >
> > > 1) people ask me to contribute to more projects that I can handle.
> > > 2) I am good at kicking off a project (20% of the work) but I am not
> > > the best person to bring it to production (the other 80%) of the work.
> > > 3) I want to delegate some of these projects to users I trust. I need
> > > to better keep track of you, the users, your skills and interests.
> >
> > > You and I have some problems in common:
> > > 1)  you are an individual or you own a small consulting company and
> > > you find hard to compete for large projects
> > > 2) you want to use web2py but you need to sell web2py before you can
> > > sell yoru services.
> > > 3) you need legal help (sample non-disclosure agreement, sample
> > > contracts, etc.)
> > > 4) for large projects you need to find people who can help you with
> > > development (you man need a designer, a coder, a system administrator,
> > > a GAE expert, etc).
> > > 5) you want somebody else to handle advertising for you
> >
> > > I want to help. I want to help you find development jobs, network, and
> > > compete for larger projects by providing some assistance.
> >
> > > I am about to create something like an association of web2py
> > > professionals with a portal that provides web sites for members,
> > > repository of legal forms, job posting, progress tracking, feedback
> > > forms, etc. Here is the basic idea: we do not advertise web2py, we
> > > advertise the association and its members. you find a client? you keep
> > > all the money. You want to offer your client long term support or code
> > > review? the association will sell that to the client directly
> > > directly. You want to be listed as a member? Follow a code of conduct
> > > (basically use approved tools and ask your clients to review your work
> > > publicly). You already have a consulting company or an employer? You
> > > can have the company listed as an associate under some conditions.
> >
> > > We can turn our group into a large international consulting
> > > organization overnight. There would be no contract between the
> > > association and you other than a code of conduct that you will have to
> > > follow to be listed and that I am about to wrote. You can continue to
> > > work as an individual or with your existing company. The association
> > > will just help when you need help.
> >
> > > The association may also partner with some member to provide venture
> > > capital in the form of code development (and perhaps money but not
> > > immediately) for specific projects submitted to the association, in
> > > exchange of shares.
> >
> > > I have already incorporated to do this. This will be independent and
> > > complementary form web2py itself and web2py would not be the only tool
> > > in the association approved toolkit.
> >
> > > For now the toolkit will include: web2py, ubuntu, postgresql, jquery,
> > > and google app engine. You as an individual or a company can provide
> > > services based on other tools but the association will endorse these
> > > tools because we can easily find people skilled in them and you, as a
> > > member, will be required to endorse these tools as good tools and
> > > demonstrate your skills in some of them (not all of them).
> >
> > > web2py is a tool. We will all outlive web2py. But we have created
> > > something important here. A community of skilled professional that
> > > share some experience. I want to see this grow with web2py and beyond
> > > web2py later. I want to see us compete with large consulting
> > > companies. I want to do it using a new business model in which there
> > > are no shareholders to take a cut of your work since they would not be
> > > providing any means of production to you (you already own a laptop and
> > > that is your office), yet I want to provide the other benefits that a
> > > large corporation can offer (a single image, consistency,
> > > reliability).
> >
> > > Not sure if there should be an admission criteria. I could use your
> > > feedback about this.
> >
> > > Comments? Thought? You do not have to commit to anything now but who
> > > is interested?
> >
> > I'm very interested on this.
> > What about integrate this system with third-party ones? Like
> > getafreelancer, oDesk etc. So we don't need to start 'from scr

Re: [web2py] Re: monetize web2py anybody?

2010-05-24 Thread Jason Brower
I certainly didn't know about a commercial licence for Blender.  Could
you show me the link to that?
Best Regards,
Jason Brower
On Mon, 2010-05-24 at 08:06 -0700, greenpoise wrote: 
> by the way, I was referring to the idea of: "To have a [level]
> Certificate, your campany needs fill some
> criterias... ".
> 
> Also, have you ever seen blender.org? They have good ideas themselves.
> One for example is to pay certain amount ($200) if not mistaken if you
> use blender for commercial purposes.
> 
> 
> Just a thought.
> 
> 
> dan
> 
> On May 24, 10:06 am, greenpoise  wrote:
> > I think that rather than discriminating and hence giving competitive
> > advantage to one company over another would defy the purpose of it
> > all! I dont know what a good admission system would be like but I am
> > all up for a filter type rather than giving some competitive advantage
> > to ones more than others, that would be unfair.
> >
> > On May 24, 9:37 am, Leandro - ProfessionalIT 
> > wrote:
> >
> >
> >
> >
> >
> > > Massimo,
> >
> > >   Despite being a product and not a tool, the business plan of OpenERP
> > > is very interesting.
> > >   I think that "Regional/Country Departments" of the Association can
> > > provide more global visibility to Web2Py.
> >
> > >   IMHO, a business plan to this association can have a "certification
> > > program" with three levels: bronze, silver and gold, and companies
> > > like mine for example, offer my services to customers presenting my
> > > "Web2Py certificate".
> >
> > >   To have a [level] Certificate, your campany needs fill some
> > > criterias...
> >
> > >   what you think about this idea?
> >
> > > -- Leandro.




[web2py] Complicated Join...

2010-05-28 Thread Jason Brower
I tried doing this last year and I was close and couldn't figure it out.
I need to complete implementing it and wondered if you could help out.
Using the attatched model I want to do the following:
I need to have a list of all the users that have similar tags to the
user that is logged in. I need those tag names as well.
As an added sugar candy bonus I wonder if there is an easy way to could
them or should I just count them as I sort throw them in the view.
I think I am close with this, it modified from something done last year.
Am I doing this right?
Best Regards,
Jason Brower

My pertinent controller function:
---

@auth.requires_login()
def your_connections():
related_tags = db((

db.auth_user.id==db.user_tags.user_id)&(db.user_tags.tag_id==db.tag.id)&(db.user_tags.tag_id.belongs(
db(db.user_tags.user_id==auth.user.id)._select(
db.user_tags.tag_id.select(
db.auth_user.ALL,db.tag.ALL,groupby=db.auth_user.id)
return dict(related_tags = related_tags)
---
from datetime import datetime, date, time
now = datetime.utcnow()
today = date.today()


db = SQLDB('sqlite://interestID.db')

###
# Authentication System
###
from gluon.tools import Mail, Auth

mail = Mail()
mail.settings.server='smtp.gmail.com:587'
mail.settings.sender= 'interes...@gmail.com'
mail.settings.login='interes...@gmail.com:'

auth = Auth(globals(), db)

# after
# auth = Auth(globals(),db)
auth_table = db.define_table(auth.settings.table_user_name,
Field('first_name',
length=128,
default=''),
Field('last_name',
length=128,
default=''),
Field('email',
length=128,
default='',
unique=True),
Field('password', 'password', 
length=256,
readable=False,
label='Password'),
Field('registration_key',
length=128,
default= '',
writable=False,
readable=False),
Field('nickname', 'string',
length=20,
unique=True),
Field('phone_number', 'string',
length=15),
Field('university_affiliation', 'string',
length=100),
Field('created', 'datetime',
default=now,
writable=False,
readable=False),
Field('avatar', 'upload'),
Field('short_description','text'),
Field('sex','text')
)
auth_table.first_name.requires = \
IS_NOT_EMPTY(error_message=auth.messages.is_empty)
auth_table.last_name.requires = \
IS_NOT_EMPTY(error_message=auth.messages.is_empty)
auth_table.password.requires = [CRYPT()]
auth_table.email.requires = [
IS_EMAIL(error_message=auth.messages.invalid_email),
IS_NOT_IN_DB(db, auth_table.email)]
auth.settings.table_user = auth_table
auth_table.nickname.requires = IS_NOT_IN_DB(db,'auth_user.nickname')
auth_table.created.requires = IS_NOT_EMPTY()
auth_table.sex.requires = IS_IN_SET(["Male","Female","Unset"])
auth.settings.mailer = mail
auth.define_tables()

db.define_table('tag',
Field('name', 'string'),
Field('description', 'text'),
Field('logo', 'upload'),
Field('created', 'date', default=now, writable=False),
Field('creator', 'string', writable=False))

db.define_table('user_tags',
Field('tag_id',db.tag),
Field('user_id', db.auth_user))

db.define_table('user_photos',
Field('photo', 'upload'),
Field('description', 'text'),
Field('tag', db.tag),
Field('date_added', 'datetime', default=request.now, readable=False, writable=False),
Field('creator', 'integer'))

db.user_photos.tag.requires = IS_IN_DB(db, db.tag.id, '%(name)s')

db.user_tags.tag_id.requires = IS_IN_DB(db,'tag.id', '%(name)s')
db.user_tags.user_id.requires = IS_IN_DB(db, 'auth_user.id', '%(nickname)s')

db.tag.name.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db,'tag.name')]
db.tag.description.requires = IS_NOT_EMPTY()
db.tag.logo.requires = IS_NOT_EMPTY()
db.tag.created.requires = IS_NOT_EMPTY()

#Special condition to default to the current user.
if auth.user:
user_id=auth.user.email
else: user_id=0
db.tag.creator.default=user_id
db.user_photos.creator.default=user_id


Re: [web2py] Re: Complicated Join...

2010-05-29 Thread Jason Brower
Perhaps if you broke it down a bit I could get what is going on. For
example, it looks like some pretty cool python syntax with. 
[t.tag for t in tags] I really can't understand what that does but it
looks cool. :P
I also didn't know you could use or operators in the limitby, spiffy.
Thanks for your help so far. :)
Best Regards,
Jason

On Fri, 2010-05-28 at 14:32 -0700, howesc wrote: 
> check out www.tenthrow.com, click on a concert and you will see an
> "other concerts" box.  those are generated following several rules,
> the first if finding concerts that share tags with this concert.  My
> tags have a "magnitude"  or a weighting, so some are more valued than
> others. hence the magnitude references below.  otherwise my tag and
> concert_tag tables mimic what you have in your model.  I don't display
> the tag name that they share though.
> 
> my relevant queries:
> #active_playlist is a record, passed to my function.
> tags = db(db.concert_tag.playlist== \
>  
> active_playlist.id).select(db.concert_tag.tag)
> 
> count = db.concert_tag.id.count()
> sum = db.concert_tag.magnitude.sum()
> query = db((db.concert_tag.tag.belongs([t.tag for t in tags]))
> &
>(db.concert_tag.playlist != active_playlist.id) &
> (db.playlist.id == db.concert_tag.playlist) )
> 
> rows = query.select(db.playlist.name,
> db.concert_tag.playlist,
> db.playlist.uid,
> count,
> sum,
> groupby=db.concert_tag.playlist|
>  db.playlist.uid,
> orderby=~count|~sum|~db.playlist.date,
>     limitby=(0,NUM_RELATED_LINKS))
> 
> dunno if that helps or not...
> 
> 
> On May 28, 1:31 pm, Jason Brower  wrote:
> > I tried doing this last year and I was close and couldn't figure it out.
> > I need to complete implementing it and wondered if you could help out.
> > Using the attatched model I want to do the following:
> > I need to have a list of all the users that have similar tags to the
> > user that is logged in. I need those tag names as well.
> > As an added sugar candy bonus I wonder if there is an easy way to could
> > them or should I just count them as I sort throw them in the view.
> > I think I am close with this, it modified from something done last year.
> > Am I doing this right?
> > Best Regards,
> > Jason Brower
> >
> > My pertinent controller function:
> > ---
> >
> > @auth.requires_login()
> > def your_connections():
> > related_tags = db((
> >
> > db.auth_user.id==db.user_tags.user_id)&(db.user_tags.tag_id==db.tag.id)&(db.user_tags.tag_id.belongs(
> > db(db.user_tags.user_id==auth.user.id)._select(
> > db.user_tags.tag_id.select(
> > db.auth_user.ALL,db.tag.ALL,groupby=db.auth_user.id)
> > return dict(related_tags = related_tags)
> > ---
> >
> >  db.py
> > 3KViewDownload




Re: [web2py] Re: Complicated Join...

2010-05-30 Thread Jason Brower
I am getting a better understanding...
But I don't quite get this stuff.
Attached in the controller.
I think I am close with it. But it seems to display all tags from all
users or something like that.  (Very confused if you can't tell.)
I see the ._select( but I haven't a clue how it works, I did read it in
the manual, but still don't get it. :(
You may PM me if you thinkit would be better.  I have skype as well.
---
Best Regards,
Jason Brower

On Sat, 2010-05-29 at 16:09 -0700, howesc wrote: 
> Jason,
> 
> the python stuff and sql ninja stuff are the results of some great
> code-reviewers teaching me tricks and lots of complex queries over the
> years!
> 
>tags = db(db.concert_tag.playlist== \
> active_playlist.id).select(db.concert_tag.tag)
> 
> that's a simple web2py query.  i take you can follow that line.
> 
> count = db.concert_tag.id.count()
> sum = db.concert_tag.magnitude.sum()
> 
> count and sum come from the book.  search on count and sum to find
> them.
> 
>   [t.tag for t in tags]
> 
> is python magic.  tags is the iterable query result.  and that's a
> shortcut to build a list based on the iterable set.  it is equivalent
> to:
>  a = []
>  for t in tags:
>a.append(t.tag)
> 
> then,
>   query = db((db.concert_tag.tag.belongs([t.tag for t in tags])) &
>(db.concert_tag.playlist != active_playlist.id) &
> (db.playlist.id == db.concert_tag.playlist) )
> is the query, with the "magic" list for the belongs operator (just
> like SQL "IN" clause).  so this gets all concert_tags and associated
> playlists (except for the active playlist) with one or more tag in
> common with the active playlist - because the tag list in the belongs
> is the list of tags for the active playlist.
> 
> rows = query.select(db.playlist.name,
> db.concert_tag.playlist,
> db.playlist.uid,
> count,
> sum,
> groupby=db.concert_tag.playlist|
> db.playlist.name|
>  db.playlist.uid,
> orderby=~count|~sum|~db.playlist.date,
> limitby=(0,NUM_RELATED_LINKS))
> 
> the select statement.  determines what fields to get - playlist.name,
> playlist.uid, count of shared tags, sum of the magnitude of the shared
> tags (in your system we can assume all magnitudes are 1 so this part
> is unnecessary).  I messed up the group by in my first email because
> it should contain all fields selected except for the count and sum
> fields (the aggregate fields).  lookup how SQL count/sum/group by work
> if you need more information.  orderby is just count (desc), sum
> (desc), and playlist.date (desc)  applied in order (lookup SQL order
> by for more information).  Limitby gets me NUM_RELATED_LINKS (which is
> a constant of 5 for me) rows, starting from the first row returned.
> 
> does that help more?
> 
> cfh
> 
> 
> 
> On May 29, 4:03 am, Jason Brower  wrote:
> > Perhaps if you broke it down a bit I could get what is going on. For
> > example, it looks like some pretty cool python syntax with.
> > [t.tag for t in tags] I really can't understand what that does but it
> > looks cool. :P
> > I also didn't know you could use or operators in the limitby, spiffy.
> > Thanks for your help so far. :)
> > Best Regards,
> > Jason
> >
> > On Fri, 2010-05-28 at 14:32 -0700, howesc wrote:
> > > check outwww.tenthrow.com, click on a concert and you will see an
> > > "other concerts" box.  those are generated following several rules,
> > > the first if finding concerts that share tags with this concert.  My
> > > tags have a "magnitude"  or a weighting, so some are more valued than
> > > others. hence the magnitude references below.  otherwise my tag and
> > > concert_tag tables mimic what you have in your model.  I don't display
> > > the tag name that they share though.
> >
> > > my relevant queries:
> > > #active_playlist is a record, passed to my function.
> > > tags = db(db.concert_tag.playlist== \
> >
> > > active_playlist.id).select(db.concert_tag.tag)
> >
> > > count = db.concert_tag.id.count()
> > > sum = db.concert_tag.magnitude.sum()
> > > query = db((db.concert_tag.tag.belongs([t.tag for t in tags]))
> > > &
> > >(db.concert_tag.playlist != active_playlist.id) &

Re: [web2py] Re: how to generate barcode label ?

2010-05-31 Thread Jason Brower
There are alot of functions that can make barcodes. I think google has a
web api for barcodes.  I made one that ran a script in the background to
make one.  Search for any program that can make barcodes on your
computer and you can use it.  Python scripts are powerful enough to do
just about anything.  The first program I ever made in web2py made 2d
barcodes.  It would be cool to have a plugin that could make all kinds
from all the libraries.
I think reportlab is another barcode maker, that ones a bit fancy but it
is all python. :D
Best Regards,
Jason Brower

On Mon, 2010-05-31 at 11:46 -0700, Yarko Tymciurak wrote: 
> On May 31, 12:53 pm, ceriox  wrote:
> > like object...
> >
> > i need to generate a label with barcode
> >
> > anybody have an example?
> 
> In general, you need to generate an image of some sort, based on data.
> 
> To print images on badges, you could look at the mk_barcode() function
> in
> http://code.google.com/p/web2conf/source/browse/applications/register/controllers/badge.py?repo=pycon2010
> 
> Although I haven't tried this, you might also look at:
> http://javascript-library-tips.changblog.com/2009/12/jquery-barcode.html
> 
> - Yarko
> 
> >
> > thanks




Re: [web2py] Re: how to generate barcode label ?

2010-06-01 Thread Jason Brower
No, if your wanting to read that's another deal.
If you make them and you have access to the net you could use googles
API's.
I however work with offline solutions and need other products.
DMTX in linux reads and writes if I am no mistaken.  I used Gstreamer
with my web2py app to take a picture with my webcam.  Then I read the
barcode and reported it back to the computer.  These where 2d barcodes.
Best regards,
Jason Brower

On Mon, 2010-05-31 at 22:31 -0700, Iceberg wrote: 
> Thanks. Then what choices do you recommend to read barcodes? Both make
> and read are needed to complete any full solution, aren't they?
> 
> On Jun1, 11:17am, Jason Brower  wrote:
> > There are alot of functions that can make barcodes. I think google has a
> > web api for barcodes.  I made one that ran a script in the background to
> > make one.  Search for any program that can make barcodes on your
> > computer and you can use it.  Python scripts are powerful enough to do
> > just about anything.  The first program I ever made in web2py made 2d
> > barcodes.  It would be cool to have a plugin that could make all kinds
> > from all the libraries.
> > I think reportlab is another barcode maker, that ones a bit fancy but it
> > is all python. :D
> > Best Regards,
> > Jason Brower
> >
> >
> >
> > On Mon, 2010-05-31 at 11:46 -0700, Yarko Tymciurak wrote:
> > > On May 31, 12:53 pm, ceriox  wrote:
> > > > like object...
> >
> > > > i need to generate a label with barcode
> >
> > > > anybody have an example?
> >
> > > In general, you need to generate an image of some sort, based on data.
> >
> > > To print images on badges, you could look at the mk_barcode() function
> > > in
> > >http://code.google.com/p/web2conf/source/browse/applications/register...
> >
> > > Although I haven't tried this, you might also look at:
> > >http://javascript-library-tips.changblog.com/2009/12/jquery-barcode.html
> >
> > > - Yarko
> >
> > > > thanks




Re: [web2py] Re: how to generate barcode label ?

2010-06-01 Thread Jason Brower
That's the one. :D But it doesn't work without an internet connection.
I needed it without internet. (Or a big brother.:P)
On Tue, 2010-06-01 at 03:24 -0700, kuba wrote: 
> http://www.web2py.com/appliances/default/show/51
> 




Re: [web2py] Re: how to generate barcode label ?

2010-06-01 Thread Jason Brower
If your doing it locally and you want to use those older style barcodes,
that could do just fine.
Have fun!

On Tue, 2010-06-01 at 10:18 -0700, ceriox wrote: 
> i generate barcode with this workaround
> 
> 1) i install the barcode font
> 2) i generate the code and with the view i show the code with barcode
> font
> 
> 
> 
> On 1 Giu, 19:04, ceriox  wrote:
> > thanks for the help but i need to generate a barcode not a qr code and
> > without internet connection :(
> >
> > On 1 Giu, 15:32, Jason Brower  wrote:
> >
> > > That's the one. :D But it doesn't work without an internet connection.
> > > I needed it without internet. (Or a big brother.:P)
> >
> > > On Tue, 2010-06-01 at 03:24 -0700, kuba wrote:
> > > >http://www.web2py.com/appliances/default/show/51




Re: [web2py] Re: remove registration link in auth login page

2010-06-02 Thread Jason Brower
Actually... Could you just do a redirect if they are not logged in?
Br
jason
- Original message -
> 
> Don't forget to disable registration altogether, otherwise a user can
> use /default/user/register link to add himself and thus may have
> access to things you don't want him to
> 
> add the line:
> auth.settings.actions_disabled.append('register')
> in your model
> 



Re: [web2py] Re: Rocket for production sites?

2010-06-04 Thread Jason Brower
Ananad... if you haven't used it how can _you_ trust it.  You may want
to talk to the people that made Rocket.  I use it for our production
system.  But my setup is very different.  It runs a robot.
BR,
Jason

On Fri, 2010-06-04 at 08:46 -0700, Anand Vaidya wrote: 
> Hi Massimo,
> 
> I am confused by what you say here:
> 
> > I trust rocket even more but I do not have data or direct
> > experience of its use in production.
> 
> How can you trust rocket if you have no direct experience with it? Can
> you please elaborate what you meant with that line?
> 
> Regards
> Anand
> 
> >
> > On Jun 3, 5:46 pm, knitatoms  wrote:
> >
> > > Is it the intention that web2py can be deployed using Rocket for
> > > production sites?




[web2py] Is there a default file upload when filling forms?

2010-06-05 Thread Jason Brower
I need the avatar (IS_IMAGE) in my authentication table to have a
default if nothing is entered.  Is this easily possible?  I was thinking
of having it controller side and just check if it was blank... if so,
default it.
The image would be based on the auth_user tables .sex value.  Any ideas
how to accomplish this?
Best Regards,
Jason Brower




Re: [web2py] Is there a default file upload when filling forms?

2010-06-06 Thread Jason Brower
Yes.
But i end up having to do that about 15 times in my document. And we all know 
programs creat ways to do everything once.

- Original message -
> Sounds like you got it.
> 
> if not record.image:
>     if record.sex == "male":
>         return "male.jpg"
>     else:
>       return "female.jpg"
> else:
>     return record.image
> 
> --
> Thadeus
> 
> 
> 
> 
> 
> On Sat, Jun 5, 2010 at 12:22 PM, Jason Brower 
> wrote:
> > I need the avatar (IS_IMAGE) in my authentication table to have a
> > default if nothing is entered.  Is this easily possible?  I was
> > thinking of having it controller side and just check if it was
> > blank... if so, default it.
> > The image would be based on the auth_user tables .sex value.  Any ideas
> > how to accomplish this?
> > Best Regards,
> > Jason Brower
> > 
> > 
> > 



[web2py] Showing Country listing...

2010-06-08 Thread Jason Brower
I wonder if web2py could use this in it's code...
http://opencountrycodes.appspot.com/python/
Kinda nifty and we could use the code there or the xml dynamically as it
updates every 24 hours.
Best Regards,
Jason Brower




Re: [web2py] I have to make a new site, example appliance needed

2010-06-09 Thread Jason Brower
Just use the welcome application.  That should do it.
But your approach is pretty, well, novice. Lots of questions need to be
answered both by yourself and others.
What will change on the site, and when.
Can you program in python, html, css, js, or other languages? (This
helps you determine what kind of setup you would like.
You could try making a simple wiki.  But that's that end all, not so
good looking solution.
BR,
Jason
On Wed, 2010-06-09 at 10:08 +0200, Giuseppe Luca Scrofani wrote: 
> Hi all, I have to made a new website/webapplication. It is structured
> as following:
> 
> Home page (header, a little login form, several text and images, footer)
> Page 1 (not too different from home page...)
> Page 2 (idem)
> Page 3 (idem)
> Control panel to manage contents of all other pages (insert text,
> image...) accessible by login
> 
> Question is: what is the simplest appliance with this features
> available to use as a base to modify?
> I search for a simple one because I dont want to dig inside "big"
> amount of code...




[web2py] Funny ordering situation...

2010-06-09 Thread Jason Brower
I have a field in my database that I would like to order in a particular
way.  It is string.

Could I order the item by stating what should be first second third, and
then the rest can be alphabetical.
In particular.
db.orders, orderby=db.orders.status
That way I can get all the "Completed" and the second could be "At the
door" and so on?
BR,
Jason Brower




Re: [web2py] upload file -- lot of file in one directory

2010-06-09 Thread Jason Brower
I wonder if it would be better to sort by type.
/uploads/table_name/field_name/
Working with those images/files should be done from a database don't you
think?  When I deal with large amounts of files I use the console.
BR,
Jason Brower

On Tue, 2010-06-08 at 23:45 -0700, szimszon wrote: 
> I wasn't able to continue the thread in
>  http://groups.google.com/group/web2py/browse_frm/thread/a81248fec1dcef81/
> 
> So...
> 
> I imagine that I would have lots of files say some 10 000 or more. :)
> I think with ext3/ext2... filesystems so many files in one directory
> is a mess.
> 
> Is there absoute out of question to have upload/download to handle
> this issue in trunk?
> 
> I think of some kind of directory structure like one directory (say
> upload/0) has X number of files then the new one (upload/1) is created
> and the new files are stored in it...
> ...and download could handle it out of the box.
> 
> Or the generated filenames first or first two character is the
> directory name under upload/ and the file is stored under that
> directory... it could be a Field switch which defaults to the old
> behavior...




Re: [web2py] Re: Funny ordering situation...

2010-06-09 Thread Jason Brower
Nice, I will try number one as I still don't know what the heck a lambda
is.
Best regards,
Jason Brower

On Wed, 2010-06-09 at 06:44 -0700, mdipierro wrote: 
> You have two options:
> 
> 1) perform 4 quesries
> 
> rows=db(query_first).select()+db(query_second).select()
> +db(query_third).select()+db(query_others).select(orderby=criteria)
> 
> 2) perform one query and sort them in memoery
> 
> rows=db(...).select().sort(lambda row: yoursortingfunction(row))
> 
> On Jun 9, 5:38 am, Jason Brower  wrote:
> > I have a field in my database that I would like to order in a particular
> > way.  It is string.
> >
> > Could I order the item by stating what should be first second third, and
> > then the rest can be alphabetical.
> > In particular.
> > db.orders, orderby=db.orders.status
> > That way I can get all the "Completed" and the second could be "At the
> > door" and so on?
> > BR,
> > Jason Brower




Re: [web2py] how to do a data picker?

2010-06-09 Thread Jason Brower
It's in the default welcome example if you want to use it in a form.  Or
if your using a 'date' in your model you should have a date picker by
default.
Best Regards,
Jason Brower

On Wed, 2010-06-09 at 11:10 -0400, Jean Guy wrote:
> Hello,
> 
> I have different types of data that must be selected, but a dropbox is
> not adequate. A popup that could list in columns my different data
> type would be an interesting alternative. Is there exist a plugin that
> would do that? I search for the code of calendar date picker included
> in web2py ... Where is it?
> 
> Thank you.
> 
> Jonhy




[web2py] Weird error when trying to change my avatar image in my profiles... (Using Auth())

2010-06-09 Thread Jason Brower
When I try to change the avatar image in the profile I get a weird
error... This is the actual pickle, as I have no way to read the files
while I don't have admin access. Hence why I reported this feature about
a month ago.
(dp1
S'output'
p2
S''
sS'layer'
p3
S'Framework'
p4
sS'code'
p5
S''
sS'traceback'
p6
S'Traceback (most recent call last):\n  File
"/home/interestid/interestid.com/gluon/main.py", line 407, in wsgibase\n
session._try_store_on_disk(request, response)\n  File
"/home/interestid/interestid.com/gluon/globals.py", line 375, in
_try_store_on_disk\ncPickle.dump(dict(self),
response.session_file)\n  File "copy_reg.py", line 69, in _reduce_ex\n
raise TypeError, "can\'t pickle %s objects" % base.__name__\nTypeError:
can\'t pickle file objects\n'
p7
s.
Attached is my db.py and this only happened after creating the country
feild.
Weird? Oh yeah.
BR,
Jason Brower
from datetime import datetime, date, time
now = datetime.utcnow()
today = date.today()


db = SQLDB('sqlite://interestID.db')
countries = ['Afghanistan',
'\xc3\x85land Islands',
'Albania',
'Algeria',
'American Samoa',
'Andorra',
'Angola',
'Anguilla',
'Antarctica',
'Antigua and Barbuda',
'Argentina',
'Armenia',
'Aruba',
'Australia',
'Austria',
'Azerbaijan',
'Bahamas',
'Bahrain',
'Bangladesh',
'Barbados',
'Belarus',
'Belgium',
'Belize',
'Benin',
'Bermuda',
'Bhutan',
'Bolivia, Plurinational State of',
'Bosnia and Herzegovina',
'Botswana',
'Bouvet Island',
'Brazil',
'British Indian Ocean Territory',
'Brunei Darussalam',
'Bulgaria',
'Burkina Faso',
'Burundi',
'Cambodia',
'Cameroon',
'Canada',
'Cape Verde',
'Cayman Islands',
'Central African Republic',
'Chad',
'Chile',
'China',
'Christmas Island',
'Cocos (Keeling) Islands',
'Colombia',
'Comoros',
'Congo',
'Congo, The Democratic Republic of the',
'Cook Islands',
'Costa Rica', "C\xc3\xb4te d'Ivoire", 'Croatia',
'Cuba',
'Cyprus',
'Czech Republic',
'Denmark',
'Djibouti',
'Dominica',
'Dominican Republic',
'Ecuador',
'Egypt',
'El Salvador',
'Equatorial Guinea',
'Eritrea',
'Estonia',
'Ethiopia',
'Falkland Islands (Malvinas)',
'Faroe Islands',
'Fiji',
'Finland',
'France',
'French Guiana',
'French Polynesia',
'French Southern Territories',
'Gabon',
'Gambia',
'Georgia',
'Germany',
'Ghana',
'Gibraltar',
'Greece',
'Greenland',
'Grenada',
'Guadeloupe',
'Guam',
'Guatemala',
'Guernsey',
'Guinea',
'Guinea-Bissau',
'Guyana',
'Haiti',
'Heard Island and McDonald Islands',
'Holy See (Vatican City State)',
'Honduras',
'Hong Kong',
'Hungary',
'Iceland',
'India',
'Indonesia',
'Iran, Islamic Republic of',
'Iraq',
'Ireland',
'Isle of Man',
'Israel',
'Italy',
'Jamaica',
'Japan',
'Jersey',
'Jordan',
'Kazakhstan',
'Kenya',
'Kiribati', "Korea, Democratic People's Republic of", 'Korea, Republic of',
'Kuwait',
'Kyrgyzstan', "Lao People's Democratic Republic", 'Latvia',
'Lebanon',
'Lesotho',
'Liberia',
'Libyan Arab Jamahiriya',
'Liechtenstein',
'Lithuania',
'Luxembourg',
'Macao',
'Macedonia, The Former Yugoslav Republic of',
'Madagascar',
'Malawi',
'Malaysia'

[web2py] Re: Weird error when trying to change my avatar image in my profiles... (Using Auth())

2010-06-09 Thread Jason Brower
And if I refresh the page that had the error, resubmitting. It logs me
out and puts me at the loggin screen.
It also seems to have worked when I am logged in.(Image changed and
everything.)  Very funky indeed.
BR,
J

On Wed, 2010-06-09 at 22:02 +0300, Jason Brower wrote: 
> When I try to change the avatar image in the profile I get a weird
> error... This is the actual pickle, as I have no way to read the files
> while I don't have admin access. Hence why I reported this feature about
> a month ago.
> (dp1
> S'output'
> p2
> S''
> sS'layer'
> p3
> S'Framework'
> p4
> sS'code'
> p5
> S''
> sS'traceback'
> p6
> S'Traceback (most recent call last):\n  File
> "/home/interestid/interestid.com/gluon/main.py", line 407, in wsgibase\n
> session._try_store_on_disk(request, response)\n  File
> "/home/interestid/interestid.com/gluon/globals.py", line 375, in
> _try_store_on_disk\ncPickle.dump(dict(self),
> response.session_file)\n  File "copy_reg.py", line 69, in _reduce_ex\n
> raise TypeError, "can\'t pickle %s objects" % base.__name__\nTypeError:
> can\'t pickle file objects\n'
> p7
> s.
> Attached is my db.py and this only happened after creating the country
> feild.
> Weird? Oh yeah.
> BR,
> Jason Brower




Re: [web2py] Re: Weird error when trying to change my avatar image in my profiles... (Using Auth())

2010-06-09 Thread Jason Brower
Thanks, thought I was installing the latest version.  But I wasn't.
Best Regards,
Jason Brower

On Wed, 2010-06-09 at 12:54 -0700, mdipierro wrote: 
> This was fixed in 1.79.1
> 
> On Jun 9, 2:05 pm, Jason Brower  wrote:
> > And if I refresh the page that had the error, resubmitting. It logs me
> > out and puts me at the loggin screen.
> > It also seems to have worked when I am logged in.(Image changed and
> > everything.)  Very funky indeed.
> > BR,
> > J
> >
> > On Wed, 2010-06-09 at 22:02 +0300, Jason Brower wrote:
> > > When I try to change the avatar image in the profile I get a weird
> > > error... This is the actual pickle, as I have no way to read the files
> > > while I don't have admin access. Hence why I reported this feature about
> > > a month ago.
> > > (dp1
> > > S'output'
> > > p2
> > > S''
> > > sS'layer'
> > > p3
> > > S'Framework'
> > > p4
> > > sS'code'
> > > p5
> > > S''
> > > sS'traceback'
> > > p6
> > > S'Traceback (most recent call last):\n  File
> > > "/home/interestid/interestid.com/gluon/main.py", line 407, in wsgibase\n
> > > session._try_store_on_disk(request, response)\n  File
> > > "/home/interestid/interestid.com/gluon/globals.py", line 375, in
> > > _try_store_on_disk\ncPickle.dump(dict(self),
> > > response.session_file)\n  File "copy_reg.py", line 69, in _reduce_ex\n
> > > raise TypeError, "can\'t pickle %s objects" % base.__name__\nTypeError:
> > > can\'t pickle file objects\n'
> > > p7
> > > s.
> > > Attached is my db.py and this only happened after creating the country
> > > feild.
> > > Weird? Oh yeah.
> > > BR,
> > > Jason Brower




[web2py] Finding the relation between two sets...

2010-06-11 Thread Jason Brower
I have it this far..
users_tags = db((db.user_tags.user_id == auth.user.id))
viewed_users_tags = db((db.user_tags.user_id == request.args[0]))
I think it's the right direction... but how do I find the releation
between those two sets.
another things that might be useful is..
auth_user is my auth table of possible users. user_id == auth_user.id
db.tag is my possible tags. tag_id == db.tag.id
I thought it would be a join.  But I am still too novice to know.
I need to find what tag.id's are shared between users_tags and
viewed_users_tags.  Then I suppose I do the join and pickup the db.tag
information.
Best Regards,
Jason Brower




[web2py] PIL to change images on the fly...

2010-06-13 Thread Jason Brower
I want to use PIL to change images to be smaller so they render faster,
I could do it like this where they are entered into a database and
uploaded, but I have up to 8 different sizes to work with,and with a
constantly changing design, it would be difficult to make the database
changes as well.
This was the example I found but it uses the database and a second
upload.
http://groups.google.com/group/web2py/browse_frm/thread/e2640890d99cf6b5/c213a917b8448ab8?lnk=gst&q=import+image#c213a917b8448ab8

I would like to make it so I can pass a function the file location
db.stuff.photo and it would return something I could pass to the view.
Hepe that makes sence.
Best Regards,
Jason Brower




Re: [web2py] Re: PIL to change images on the fly...

2010-06-13 Thread Jason Brower
Yeah I like that approach.  I just can't figure out how to make a file
like object like this images from PIL to be returned and actually
work. :/  Something my brain can fathom.
Best Regards,
Jason

On Sun, 2010-06-13 at 17:37 -0700, howesc wrote: 
> create a function for serving images, and add the sizes as parameters:
>   http://mysite.com/applciation/images/download/foo.png/
> 300/400" />
> 
> and in the function do the resize and output the binary data of the
> image.
> 
> i'm not 100% sure of the best way to do it out side of google app
> engine (because they have a special image manipulation library), but i
> can share some code i used on google app engine to retrieve an image
> from blobstore, resize, and send to client if you think that will help
> you.
> 
> cfh
> 
> On Jun 13, 1:41 am, Jason Brower  wrote:
> > I want to use PIL to change images to be smaller so they render faster,
> > I could do it like this where they are entered into a database and
> > uploaded, but I have up to 8 different sizes to work with,and with a
> > constantly changing design, it would be difficult to make the database
> > changes as well.
> > This was the example I found but it uses the database and a second
> > upload.http://groups.google.com/group/web2py/browse_frm/thread/e2640890d99cf...
> >
> > I would like to make it so I can pass a function the file location
> > db.stuff.photo and it would return something I could pass to the view.
> > Hepe that makes sence.
> > Best Regards,
> > Jason Brower




Re: [web2py] Re: LOAD gerates invalid HTML

2010-06-17 Thread Jason Brower
It's javascript my guess.  Just put the attribute in it and it should be
fine.  That one is not a web2py issue at all, but a designer issue. :)
Best Regards,
Jason Brower

On Thu, 2010-06-17 at 06:13 -0700, selecta wrote: 
> looks better but I still get
>  Line 169, Column 18: required attribute "type" not specified
>   <!--
> The attribute given above is required for an element that you've used,
> but you have omitted it. For instance, in most HTML and XHTML document
> types the "type" attribute is required on the "script" element and the
> "alt" attribute is required for the "img" element.
> Typical values for type are type="text/css" for <style> and type="text/
> javascript" for <script>.
> 
> <script> should change to <script type="text/javascript">
> 
> On Jun 17, 2:40 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > please check fix in trunk
> >
> > On Jun 17, 7:18 am, selecta <gr...@delarue-berlin.de> wrote:
> >
> >
> >
> > > a HTML validation of my web2py site states
> >
> > > Line 171, Column 24: value of attribute "id" invalid: "9" cannot start
> > > a name
> > > //-->loading...
> >
> > > It is possible that you violated the naming convention for this
> > > attribute. For example, id and name attributes must begin with a
> > > letter, not a digit.
> >
> > > and
> >
> > >  Line 173, Column 18: required attribute "type" not specified
> > >   <!--
> >
> > > The attribute given above is required for an element that you've used,
> > > but you have omitted it. For instance, in most HTML and XHTML document
> > > types the "type" attribute is required on the "script" element and the
> > > "alt" attribute is required for the "img" element.
> >
> > > Typical values for type are type="text/css" for <style> and type="text/
> > > javascript" for <script>.
> >
> > > changing
> > > <script><!--
> > > web2py_component("/sysbio/software/show/Cellware?
> > > summary=1","00724063942036")
> > > //-->
> > > to
> > > <!--
> > > web2py_component("/sysbio/software/show/Cellware?
> > > summary=1","X00724063942036")
> > > //-->
> > > should be easy right?




Re: [web2py] Re: for fun

2010-06-17 Thread Jason Brower
Very fun.  I should check the source sometime as I want to make an mmorg
as a dream some day.  All webbased like wizardry if anyone knows the
game.
http://www.youtube.com/watch?v=GwmZoCFd4Us&feature=PlayList&p=62B9C25C19E12695&playnext_from=PL&index=0&playnext=1
BR,
Jason

On Thu, 2010-06-17 at 13:41 -0300, Júlio Monteiro wrote:
> Very nice!!
> 
> On Thu, Jun 17, 2010 at 12:51 PM, mdipierro 
> wrote:
> we also had this
> http://www.web2py.com/sudoku
> 
> On Jun 17, 10:50 am, mdipierro 
> wrote:
> > http://www.web2py.com/mazes 
> 




[web2py] Python Image resizing... I am soooo close!

2010-06-18 Thread Jason Brower
Right now when I try to use it it tells me a number is required... Huh?
And if I statically set w and h it doesn't download the iamges.
What am I missing here to make this work?
---
def image():
if len(request.args) == 1:
#nothing to change, just give the full image
return response.download(request, db)
else:
import Image
import os
image_file = request.args[0]
image_file = os.path.join(request.folder, "uploads", image_file)
width = request.args[1]
height = request.args[2]  
image_file=Image.open(image_file)
w = image_file.size[0]
h = image_file.size[1]
if width==0 and height!=0:
w=height*w/h
h=height
elif height==0 and width!=0:
h=width*h/w
w=width
else:
w=width
h=height
resized_image = image_file.resize((w,h),Image.ANTIALIAS)
return resized_image
---
Best Regards,
Jason Brower



[web2py] Python Image resizing... I am soooo close!] SOLVED:]

2010-06-18 Thread Jason Brower

--- Begin Message ---
def image():
if len(request.args) == 1:
#nothing to change, just give the full image
return response.download(request, db)
else:
import Image
import os
image_file = request.args[0]
image_file = os.path.join(request.folder, "uploads", image_file)
width = int(request.args[1])
height = int(request.args[2])  
image_file=Image.open(image_file)
w = int(image_file.size[0])
h = int(image_file.size[1])
if width==0 and height!=0:
w=height*w/h
h=height
elif height==0 and width!=0:
h=width*h/w
w=width
else:
w=width
h=height
resized_image = image_file.resize((w,h),Image.ANTIALIAS)
response.headers['Content-Type']="image/png"
resized_image.save(response.body, "PNG")
return response.body.getvalue() 
I found an old post by Dr. M and that showed me the rest of the issue.
This should be in the book as it comes in handy. :D  I know PIL is not
in W2P but it would be nice to see some examples for those that can use
it.
---
Best Regards and thank you,
Jason Brower
--- Begin Message ---
Right now when I try to use it it tells me a number is required... Huh?
And if I statically set w and h it doesn't download the iamges.
What am I missing here to make this work?
---
def image():
if len(request.args) == 1:
#nothing to change, just give the full image
return response.download(request, db)
else:
import Image
import os
image_file = request.args[0]
image_file = os.path.join(request.folder, "uploads", image_file)
width = request.args[1]
height = request.args[2]  
image_file=Image.open(image_file)
w = image_file.size[0]
h = image_file.size[1]
if width==0 and height!=0:
w=height*w/h
h=height
elif height==0 and width!=0:
h=width*h/w
w=width
else:
w=width
h=height
resized_image = image_file.resize((w,h),Image.ANTIALIAS)
return resized_image
---
Best Regards,
Jason Brower
--- End Message ---
--- End Message ---


Re: [web2py] Web2py free hosting?

2010-06-19 Thread Jason Brower
I can host you app in one of my instances. It can no be perminently there. But 
i can give you a deal if you need a place.
Br...
Jb
- Original message -
> Hi, my little first (serious) application is ready, now I have to
> place it somewhere in the 'net.
> Before paying for hosting services, can I try on a free host?
> Something simple and fast? I know python should be supported, but it
> is sufficient? I will be happy to know some free host service name
> where web2py works or worked. I hope it is not necessary to have a
> dedicated server... My best wishes is something like /Upload via
> ftp/Changes two or three values in config/Done. Im'dreaming?
> 
> Sadly GAE it is not an option, no administrative interface, no
> session, ---no file upload!---... What a mistake...



Re: [web2py] Re: Funny ordering situation...

2010-06-22 Thread Jason Brower
I like the - and plus support.  It's pretty logical.  But I don't want
to take a big hit for speed on it. :D
BR,
JB
On Tue, 2010-06-22 at 10:14 -0700, mdipierro wrote: 
> I would take a patch for -, Would + work like | or something
> different?
> 
> On Jun 22, 11:53 am, Álvaro Justen  wrote:
> > On Tue, Jun 22, 2010 at 13:06, mdipierro  wrote:
> > > Sorry, not ... +... but ...|
> >
> > > On Jun 22, 3:38 am, "Jason (spot) Brower"  wrote:
> > >> unsupported operand types for + "Rows" and "Rows"
> >
> > Maybe a good idea to add support to + and - operators on class Rows?
> >
> > --
> > Álvaro Justen - Turicas
> >  http://blog.justen.eng.br/
> >  21 9898-0141




[web2py] FEATURE: Ability to add script to clean feature in admin.

2010-06-28 Thread Jason Brower
I wonder if there is a nice way to clean or populate the database when I
click the clean button on the admin page.
The reason for this is because I have particular items in the database
that need there state changed when ever I clean the database.
Aditionally, I would be nifty to adda  script for populating the
database with mock data for testing.  You had something there a while
back, but it would be nice to have a quick click option that can run a
script and if it returns true it worked otherwise report some kind of
error.
Ideas on this?
Best Regards,
Jason Brower




Re: [web2py] do you use web2py for teaching?

2010-06-28 Thread Jason Brower
My school has asked that i teach an intensive course in obtober for some school 
credit. It is good as they only teach asp right now.
- Original message -
> Please post some info about the class or drop me a private note.



[web2py] Issues with sessions on multiple tabs/windows

2010-06-29 Thread Jason Brower
I have a robot that is running on web2py.  It has it's main operating
screen and a screen specifically for debugging and other information.  I
have the main screen that pulls a page that reports the very general
status information, and when that screen is requested about 20 different
session variables are reset to up to date information.  this information
is found from a file that it reads and unpickles.  When I try to get the
debug screen to see all the information it comes as if the session was
not even created.  None I have the debug and the main robot running
screen on the same computer and they are in the same web2py application.
What could I be doing wrong?  Should I pull from the same file twice one
for the status page on the robot opporation part and then pull again for
the debug screen?
Very confuse,
Jason Brower




Re: [web2py] for fun

2010-07-03 Thread Jason Brower
First time I saw it I didn't get it.  Then they said think about it as a
webdeveloper and I laughed until I had tears.
BR,
Jason
On Thu, 2010-07-01 at 14:33 -0700, mdipierro wrote: 
> http://www.youtube.com/watch?v=R2a8TRSgzZY




Re: [web2py] markmin

2010-07-05 Thread Jason Brower
FUN!  But who is "we"?
BR,
Jason Brower
On Mon, 2010-07-05 at 15:42 -0700, mdipierro wrote: 
> http://www.web2py.com/examples/static/markmin.html
> 




Re: [web2py] markmin

2010-07-06 Thread Jason Brower
Markdown has no classes and it's annoying.  I have been hoping for
something like this. And didn't they say it was faster? Why do we need
Python when we can do everything in C? Then again, I am no expert.
And about the seporate project.  It kind of is now, but it is just
included with the web2py package.  It can be removed if needed. (Hence
another reason to have a plugin like manager. We could install stuff for
that web2py install and manage it as well.  All from the admin pages.)
--Jason
On Tue, 2010-07-06 at 23:34 -0300, Álvaro Justen wrote: 
> Another thoughts: *why* do we need another markup language? Markdown
> is not enough? It is so boring to learn a lot of languages (rest,
> markdown, markmin...).
> 
> On Tue, Jul 6, 2010 at 23:32, Álvaro Justen  wrote:
> > On Mon, Jul 5, 2010 at 19:42, mdipierro  wrote:
> >> http://www.web2py.com/examples/static/markmin.html
> >
> > As you created it, it is in contrib, it doesn't depend on web2py and
> > maybe useful to other people, I think we should create another project
> > to maintain markmin.
> > Other ideia is to integrate the template system with markmin. For
> > example: create a applications/myapp/views/default/somepage.markmin
> > if somepage.html does not exist, web2py should use markmin to generate
> > HTML instead.
> >
> > We have tests! Great! \o/ :-)
> >
> > --
> > Álvaro Justen - @turicas
> >  http://blog.justen.eng.br/
> >  21 9898-0141
> >
> 
> 
> 




Re: [web2py] new welcome (scaffolding) app

2010-07-09 Thread Jason Brower
On Fri, 2010-07-09 at 06:34 -0700, mdipierro wrote: 
> let's consider a new scaffolding app.
> 
> What should be in it?
Minimal and welcome.  It's nice to have something I can jsut start with
rather than strip down. 
> What should not be in it?

> 
> possible suggestions:
> [ ] js menu
> [X] new layout (suggestions?)
Something more like Jquery.com and that has some nice examples of
working with images both from a database and from a a static area. 
> [X] more complex views/layout?
An example of dynamic css? 
> [X] simpler views/layout.html
> [X] example plugins
Instructions on how they are done too. 
> [ ] plugin_wiki from cube2py?
> [ ] jquery.ui
Meh... I can do it myself.  But if your going to use it, you better go
all out.  I wanna see it really shine in the admin tools and other what
not. 
> 
> Massimo
Jason (:




Re: [web2py] new welcome (scaffolding) app

2010-07-10 Thread Jason Brower
+1!!!
On Fri, 2010-07-09 at 21:28 -0300, Bruno Rocha wrote: 
> Is there any chance to have that options for choose just at the moment
> of app creation?
> 
> we put the name for the application, then check what do we want to have 
> within.
> 
> May be choosing a completely blank new app or a complete one, choosing
> the theme, to have or not things like Plugins, Wiki, Jquery UI etc..
> 
> and the new app based on scaffold app is created dinamically.
> 
> By the way my choice is:
> 
> 2010/7/9 mdipierro :
> > let's consider a new scaffolding app.
> >
> > What should be in it?
> > What should not be in it?
> >
> > possible suggestions:
> > [ ] js menu
> I prefer a simple CSS menu
> > [x] new layout (suggestions?)
> I think default scaffold app needs to be clean, minimalist, a blank theme.
> "Good design is as little design as possible."
> < http://52weeksofux.com/tagged/week_8 >
> > [x] more complex views/layout?
> RSS, Json, XML examples too
> > [ ] simpler views/layout.html
> > [x ] example plugins
> GRID plugin, it is usefull for most projects
> > [ ] plugin_wiki from cube2py?
> > [ ] jquery.ui
> > [x] facebook, twitter, Gmail, openID authentication
> > [x] webservices example
> > [x] Sending mail examples
> > Massimo
> 
> 
> 




Re: [web2py] murder, bittorrent on twitter

2010-07-17 Thread Jason Brower
This is what makes ruby fail. :) I am soo loving python!

On Sat, 2010-07-17 at 11:41 +0200, Albert Abril wrote:
> Here was talked about descentralized servers.
> 
> Ok, there's news about it:
> Large scale web-services such as Twitter need thousands of servers to
> manage the flow of updates sent out by their millions of users. As a
> result, keeping all these servers updated with the latest data can be
> time and resource intensive. To improve the deployment of files across
> their servers, Twitter recently called in the help of BitTorrent. 
> http://torrentfreak.com/bittorrent-makes-twitters-server-deployment-75-faster-100716/
> 
> 
> Made with the BitTornado library. Python in action.
> http://github.com/lg/murder/tree/master/dist/
> 




Re: [web2py] chunks

2010-07-23 Thread Jason Brower
Is this because you have large amounts of data?
When I has some work, we used TCL for the pages.  TCL loads as you go.
This is because back in the day webbrowsers we nasty slow and it sent
the data as it came.  Now-a-day we create the page remotely and then
send the entire thing.
If your working with large amounts of data then concider loading the
page with ajax or with good ol pagination.  At least that's how I feel
about it.
Best Regards,
Jason Brower

On Thu, 2010-07-22 at 21:35 -0700, Jonathan Lundell wrote: 
> On Jul 22, 2010, at 9:32 PM, Phyo Arkar wrote:
> 
> > You mean ajax?
> > You can do this using Ajax.
> > In Jquery:
> > $(#div_id).load(Path_To_Your_Page)
> 
> No, I meant just serving a regular (dynamic) page. I'm not using Ajax.
> 
> > 
> > On 7/23/10, Jonathan Lundell  wrote:
> >> It'd be nice to be able to return a dynamic page in (controlled) chunks. I
> >> have no idea how the interface to something like that might work
> 
> 




Re: [web2py] Serving Static files with Space under /static/?

2010-07-23 Thread Jason Brower
It's my understanding that it is generally a bad idea.  It's like going
to the site... http://google.com/I have spaces.com <- That's bad!  If
your putting that static data there, couldn't you just ad the spaces
yourself?  I_add_them_when_I_dont_even_know_it.  That same also applies
for non english characters like äöÅ or the like.
Best Regards,
Jason Brower

On Fri, 2010-07-23 at 10:56 +0630, Phyo Arkar wrote: 
> Hello Web2py!
> 
> Here i am having this problem. As web2py do not allow Space in paths ,
> trying this having problem "Invalid Request".
> 
> i am trying to serve files which are extracted from archives under
> web2py /static/ folder. They may or May not include space in extracted
> file name or Directory names.
> 
> Any way to Serve Static files over web2py , which name have space?




Re: [web2py] Don't really know how to ask but here goes

2010-07-25 Thread Jason Brower
This seems like a great idea and the possibility to a great site and
application.  But there is a lot of work to do in this project.  You
could make a small business out of this idea.  I highly recommend
looking for a bit of funding and then you can create the app with some
financial motivation.  We can talk about it more in personal chat or
talk.
Best regards,
Jason Brower

On Sat, 2010-07-24 at 19:58 -0700, DiscDogNation wrote: 
> I have a bonafide project that I know ( at least I think I know) that
> Web2py will be perfect for. I AM NOT A PROGRAMMER but I want to learn
> how to program and I think this is the perfect platform for me to get
> my feet wet. PLEASE either point me in the direction of someone who
> wants to teach an idiot like myself how to get this programmed or tell
> me I'm better off just paying someone to do what I need and get rid of
> me …..
> 
> Here is the outline of what I need … I can go in to MUCH more detail
> …
> 
> This project is a 2 part system which consists of a main web site
> (part 1) and a desktop app which can be synched to the webapp (part 2)
> 
> Background – I am a member of the disc dog community and compete
> regularly throughout the year. Although there are basically 4
> different sanctioning organizations there are really only TWO types of
> frisbee catagories at each event no matter which sactioning body they
> are run for … those are Freestyle and Toss and Fetch. The only real
> difference in scoring no matter what sanctioning body the event is for
> is the multiplier for freestyle scores. Toss and fetch scoring may
> differ slightly but the premise is the same and he structure for
> scoring is the same only the points differ from event to event.
> 
> Here's the problem … every club that runs an event has it own scoring
> system and there is really no “standard” for running an event. Some
> have laptops with spreadsheets … some have clipboards and a ton of
> paper which is used at the event then data entry occurs afterwards and
> competitors wait while scores are tabulated and then announced …
> sometimes it takes an hour or more after an event just to find out how
> won.
> 
> Very basic outline of what I think would be the best approach however
> I am open to suggestions on how to proceed.
> 
> The website would be kind of like a social network for disc doggers.
> Once you build a profile you could add dogs to you Kennel. Users could
> then add events for other users to register at and be able to simply
> select dogs from their kennel for different divisions to enter.
> 
> So it would be
>   Profile Management
>   Kennel Mamagement
>   Event Management
> 
> Other users could browse other competitors profiles and kennels … as
> events are completed stats could be kept on a per dog status and
> people could browse other competitors to see where they thought they
> stood.
> 
> Once an event was created people could register until the close date
> 
> Events should have the ability to let users enter dogs from their own
> kennel OR borrow a dog from someone elses dog with the owners
> permission. STATS should stay with the dog yet have a handler column
> to indicate if another handler was responsible for that event. Dogs
> may compete multiple times with more than one handler at an event.
> 
> PART 2
> 
> I envision this to be a standalone app which has the ability to either
> synch or be exported for import to the PART 1 app. This is because not
> everyone has internet connectivity at an event but can synch up either
> afterwards of periodically during the event. It works like this
> 
> Once registration closes on the web app the creator of the event can
> download ALL pre registered competitors and run reports accordingly.
> Pre registration competitors would bee printed out for each dog and on
> event day competitors could come up and sign their pre reg forms
> confirming their attendance and paying their competition fees at that
> time. This should speed registration times on the morning of an event
> and also confirm exactly WHO is in attendance. In addidtion one data
> entry individual can go through and confirm all info input in pre reg
> is correct. (dog is I the correct division and with the correct
> handler)
> 
> Once onsite registration closes and data entry audits have been
> confirmed a Roster for each division can be created and running orders
> can be posted. As a side note if this is available via local LAN and
> competitors can log on via cell phones or laptops this would greatly
> aid in event management and communication by less traffic at the booth
> trying to see who is where and when.
> 
> Once the event begins the application could help the MC ( or DJ
> an

Re: [web2py] Re: is it possible to get Error message right away ?

2010-07-28 Thread Jason Brower
It would be a blast to have a debug mode. That way if you are the local user it 
will automatically take you to the error. But that could get nast if you use 
alot of ajax calls.
Best regards... J

- Original message -
> look at post #5 in this thread
> http://groups.google.com/group/web2py/browse_thread/thread/5fd5303e6a2fa5c5/d7d7073ee2241bdb
> (also by me).   i used to to create a custom view on google app engine
> for reading tickets.   (i don't use it anymore because i just use the
> google logs), but you might be able to adapt it for your purposes.
> 
> good luck!
> 
> christian
> 
> On Jul 28, 1:43 pm, Stef Mientki  wrote:
> >  hello,
> > 
> > when an error occurs, a nice formatted page with something like
> > "Invalid request" appears. Then you have to got to the error messages,
> > try to open that ( for which an adminstrators password is required).
> > 
> > Isn't it possible to get the content of the error message right away
> > insted of  "Invalid request" (btw this is not meant for the end user,
> > but very handy during debugging).
> > 
> > thanks,
> > Stef Mientki



Re: [web2py] ARTICLE: The good and bad about web2py

2010-08-01 Thread Jason Brower
I agree about the unit testing. It woud really put web2py on another level.
I think underscores are flipping awsome. Camelcase makes me sick. :P
ide integration would be nice but we are on our way with that and eclipse. 
Trying that out soon.
I personally feel that the error reporting is pretty good. I would how ever 
like to see a way to report errors to an email or otherwise. That way i dont 
have to look around for them. Annoying as i cant view the errors without 
copying them locally first off the web server and reading them from my personal 
computer. Hence why i felt we need a console based reader for web2py error 
files.
Otherwise... Good points all round. Lets see if we can improve on'em. 
Jb

- Original message -
> http://www.ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/



Re: [web2py] [Feature Request] js mimifier

2010-08-01 Thread Jason Brower
I like this reason and it could be something that would be nice as
another reason why we should have a production and development setting
in the application.
BR
Jason Brower

On Sun, 2010-08-01 at 23:17 +0630, Phyo Arkar wrote:
> Nice , but would it be extra work?
> 
> -Most JS libs comes with their own minified versions.
> -And Production setup for web2py is not rocket/or any built-in web
> server . it is with Apache/Cherokee/Lighttpd, all of them have ability
> to gzip
> -You can comproess your own JS script using Yahoo/Google's
> Compressors.
> 
> On Fri, Jul 30, 2010 at 5:18 PM, Michele Comitini
>  wrote:
> 
> 1) it is nice to have the ability to debug javascript that
> comes with web2py.
> 2) it is a waste of bandwith to send full script.
> 
> You can partially solve 2) if you work behind  web server
> capable of sending compressed/gzip contents to clients willing
> to accept it,
> so that you can put all your jscript libraries human readable
> and have them compressed on the fly before transmission.
> 
> Anyway IMHO web2py can do much better by using a mimifier
> similar to this:
> http://www.crockford.com/javascript/jsmin.py.txt
> 
> The idea would be that in production mode a mimified version
> is generated of js inside the static dir once, else static js
> is served
> unchanged and debuggable.
> 
> mic 
> 




Re: [web2py] uft 8

2010-08-02 Thread Jason Brower
by false do you mean incorrectly in the webbrowser?
The area that is printing this is python not the html though you should
have it there. :)
I am not sure where it is set python side, but I do know my finnish
äÄöÖåÅ all work for me.
Best Regards,
Jason 
On Mon, 2010-08-02 at 02:09 -0700, max wrote: 
> dera develpoers,
> 
> i am adding  just a german ä in the menu list. like this.
> T('täter') for translation
> and the web2py shows it false in the browser, althoguth i have setup
> utf-8.
> 
> > in layout.html
> 
> does anybody have similar experiences?




Re: [web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-07 Thread Jason Brower
I would have submitted a project of my own had a known.  Sorry that I
missed it.
Next time I hope to compete. Money or not. :D
BR,
Jason Brower

On Fri, 2010-08-06 at 23:38 -0700, Jason Lotz wrote: 
> Kind of a shame only two apps entered.
> 
> Being a bit of a newbie to web development (coming from database and
> basic native apps programming) I was hoping to see what people have
> come up with to get an idea of some possibilities for web apps.
> 
> Hope we could do something like this again. Maybe I'll submit one of
> my newbie apps. ;)
> 
> 
> On Aug 4, 6:22 pm, Mr admin  wrote:
> > The number of participants was two.
> >
> > Mr.NetAdmin
> >
> >
> >
> > On Wed, Aug 4, 2010 at 2:49 AM, mdipierro  wrote:
> > > Can you post some stats?
> > > Number of participants for example.
> >
> > > Massimo
> >
> > > On Aug 3, 2:01 pm, NetAdmin  wrote:
> > > > Hello All,
> >
> > > > The winners of the Web2py Application Exhibition have been e-mailed,
> > > > and I'm waiting for their replies before posting the results.
> >
> > > >  Mr.NetAdmin




Re: [web2py] Post you apps

2010-08-07 Thread Jason Brower
Thanks!
I can feel plugins and autoinstalling coming along!
BR,
Jason

On Fri, 2010-08-06 at 15:59 -0700, mdipierro wrote: 
> Now you can post and updated your apps here without asking me.
> 
> http://web2py.com/appliances
> 
> Massimo




Re: [web2py] New server

2010-08-09 Thread Jason Brower
2.6 or even 2.7 are better.  Tehy do have improvements and features I
like.  Like better speed and sorted dictionaries. :)
BR,
Jason Brower

On Mon, 2010-08-09 at 05:05 -0700, Kenneth wrote: 
> Hello,
> 
> I´m in the process of starting a newer server for my web2py
> applications and would like to hear your comments about what to use.
> 
> Anything about hardware that I should remeber?
> 
> As linux version I´m planing on using CentOS 5.5 as we use it on all
> our servers.
> Webserver: Apache and database MySQL.
> The server will not be runing anything other than web2py
> applications.
> 
> Which python should I use? CentOS comes with 2.4 and I´m using 2.5 on
> my old server?
> 
> Should I use CGI, FastCGI, WSGI, mod_wsgi, mod_python, or?
> 
> The main application for the moment will have 900 registred users,
> with maybe 100 user using it at the same time.
> 
> 
> Kenneth




Re: [web2py] IMPORTANT: new in trunk list:reference

2010-08-11 Thread Jason Brower
Should i worry about this on my setups with sqlite but i do not use gae?
Almost all my setups are sqlite but on apachi fcgi.
Best regards,
jason

- Original message -
> There was a problem with this which is now fixed.
> This is a very important feature if you plan to develop locally
> (sqlite) and deploy on GAE.
> 
> Massimo
> 
> On Aug 10, 4:18 am, mdipierro  wrote:
> > Experimentally there is a new feature in trunk.
> > 
> > Field('name','list:string')
> > Field('name','list:integer')
> > Field('name','list:reference other table')
> > 
> > and new operators
> > 
> > db.mytable.myfield.contains(4)
> > 
> > which works for list:reference, list:integer, list:string, string and
> > text types.
> > 
> > The list: type are mapped differently on RDBS ([1,2,3]->'|1|2|3|') and
> > on GAE (uses a string list propery). It is backward compatible with
> > data stored using the IS_IN_DB(...,multiple=True). So here is an
> > example of a program:
> > 
> > # model
> > db.define_table('product',Field('name'),format='%(name)s')
> > db.define_table('purchase',Field('code'),Field('products','list:reference
> > product'))
> > 
> > # controller
> > def products():
> >      db.product.id.represent=lambda id: A('click
> > me',_href=URL('purchases_by_product',args=id))
> >      return
> > dict(form=crud.create(db.product),items=db(db.product.id>0).select())
> > def purchases():
> >      return
> > dict(form=crud.create(db.purchase),items=db(db.purchase.id>0).select())
> > def purchases_by_product():
> >      product_id=request.args(0)
> >      return
> > dict(items=db(db.purchase.products.contains(product_id)).select())
> > 
> > Now register some products. When you try register purchases you should
> > automatically get a SELECT window with product names. The list of
> > items should also show a comma separated list of product names.
> > 
> > I have not tested this on GAE. I could use some tests. Please let me
> > know.
> > 
> > Massimo



[web2py] Autocomplete with foreign chars...

2010-02-04 Thread Jason Brower
I have my nifty little autocomplete working thanks to your gracious help
but I have one more issue to resolve
It seems that searchs with öäå don't work.  I think it has to do with
how I send the data to the server so let me show you my search page:
I can't send the äåö in the url so how could I send it another way with
autocomplete?

def possible_paints():
paints=db(db.paint.name.upper().like("%"+request.vars.q'%')).select(orderby=db.paint.name)
return dict(paints=paints)
Weird how my email is formating... but that's it...
It takes the q in my url...
I send the request with that... and I wonder if it looses the formating
at that point?
For example if I search for naturgrå firebug tells me that I made a
request for 1=naturgr%C3%A5
But if I go to that address with firefox I get naturgrå
Weird eh?
---
Best Regards,
Jason Brower

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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] Dumb syntax error! Can't fix it!

2010-02-04 Thread Jason Brower
Prolly obvious, but I can't see it... can you?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.

# coding: utf8

from datetime import datetime, date, time
now = datetime.utcnow()
today = date.today()

db = SQLDB('sqlite://2hand.db')


### 2hand DB
db.define_table('users',
SQLField('first_name', 'string', length=20),
SQLField('last_name', 'string', length=20),
SQLField('username', 'string', length=20),
SQLField('password', 'password'),
SQLField('status', 'string', requires=IS_IN_SET(['Admin','SuperAdmin'])),
SQLField('created', 'datetime', default=now, readable=False, writable=False))

db.define_table('customer',
SQLField('first_name', 'string', length=50),
SQLField('last_name', 'string', length=50),
SQLField('address', 'string', length=50),
SQLField('postal_code', 'string', length=15),
SQLField('city', 'string', length=25),
SQLField('email', 'string', length=50),
SQLField('phone_no', 'string', length=50),
SQLField('note', 'text'),
SQLField('email_date', 'datetime'),
SQLField('created', 'datetime', default=now, readable=False, writable=False))

db.define_table('taable',
SQLField('price', 'integer', length=11),
SQLField('note', 'text'))

db.define_table('customer_table',
SQLField('customer_id', db.customer),
SQLField('taable_id', db.taable),
SQLField('taable_price', db.taable),
SQLField('total_price', 'double', length=11),
SQLField('rent_start','date'),
SQLField('rent_end','date'),
SQLField('discount_start','date'),
SQLField('discount_end','date'),
SQLField('discount', 'string', length=10),
SQLField('discount_rate', 'string', length=10),
SQLField('description','text'))

db.define_table('transaction',
SQLField('customer_id', db.customer),
SQLField('receipt_no', 'integer', length=11),
SQLField('price', 'double', length=11),
SQLField('description', 'text'),
SQLField('taable_id', db.taable),
SQLField('overall', 'double', length=11),
SQLField('status', 'integer', length=3),
SQLField('pay_method', 'string', length=15),
SQLField('created', 'datetime', default=now, readable=False))

db.define_table('basket',
SQLField('receipt_no', 'string', length=5),
SQLField('customer_id', db.customer),
SQLField('transaction_id', db.transaction),
SQLField('price', 'double', length=11),
SQLField('description', 'text'),
SQLField('taable_id', db.taable),
SQLField('discount','string', length=5),
SQLField('status', 'string', length=5),
SQLField('created', 'datetime', default=now, readable=False, writable=False))

db.define_table('feedback',
SQLField('sender', db.customer),
SQLField('customer_id', db.customer),
SQLField('transaction_id', db.transaction),
SQLField('price', 'double', length=11),
SQLField('description', 'text'),
SQLField('taable_id', db.taable),
SQLField('discount','string', length=5),
SQLField('status', 'string', length=5),
SQLField('created', 'datetime', default=now, readable=False, writable=False))

# Dependencies & constraints
db.users.first_name.requires = IS_NOT_EMPTY()
db.users.last_name.requires = IS_NOT_EMPTY()
db.users.username.requires = IS_NOT_EMPTY()
db.users.password.requires = IS_NOT_EMPTY()
db.users.status.requires = IS_NOT_EMPTY()

db.customer.first_name.requires = IS_NOT_EMPTY()

db.taable.price.requires = IS_NOT_EMPTY()
db.taable.note.requires = IS_NOT_EMPTY()

db.customer_table.customer_id.requires = IS_IN_DB(db,'customer.id')
db.customer_table.taable_id.requires = IS_IN_DB(db,'taable.id')
db.customer_table.taable_price.requires = IS_IN_DB(db,'taable.price')
db.customer_table.total_price.requires = IS_NOT_EMPTY()
db.customer_table.rent_start.requires = IS_NOT_EMPTY()
db.customer_table.rent_end.requires = IS_NOT_EMPTY()
db.customer_table.discount_rate.requires = IS_NOT_EMPTY()

db.transaction.customer_id.requires = IS_IN_DB(db,'customer.id')
db.transaction.taable_id.requires = IS_IN_DB(db,'taable.id')
db.transaction.receipt_no.requires = IS_NOT_EMPTY()
db.transaction.price.requires = IS_NOT_EMPTY()
db.transaction.overall.requires = IS_NOT_EMPTY()
db.transaction.status.requires = IS_NOT_EMPTY()
db.transaction.pay_method.requires = IS_NOT_EMPTY()

db.basket.customer_id.requires = IS_IN_DB(db,'customer.id')
db.basket.transaction_id.requires = IS_IN_DB(db,'transaction.id')
db.basket.taable_id.requires = IS_IN_DB(db,'taable.id')
db.b

Re: [web2py] Dumb syntax error! Can't fix it!

2010-02-04 Thread Jason Brower
Yes of course... (:
Traceback (most recent call last): 
File "/home/encompass/Programming/Web Pages/2hand/gluon/restricted.py", line 
173, in restricted
exec ccode in environment
  File "/home/encompass/Programming/Web 
Pages/2hand/applications/2hand/models/db.py", line 57, in 
SQLField('created', 'datetime', default=now, readable=False))
  File "/home/encompass/Programming/Web Pages/2hand/gluon/sql.py", line 1252, 
in define_table
t._create(migrate=migrate, fake_migrate=fake_migrate)
  File "/home/encompass/Programming/Web Pages/2hand/gluon/sql.py", line 1669, 
in _create
self._db._execute(query)
  File "/home/encompass/Programming/Web Pages/2hand/gluon/sql.py", line 890, in 

self._execute = lambda *a, **b: self._cursor.execute(*a, **b)
OperationalError: near "transaction": syntax error
On Thu, 2010-02-04 at 12:41 -0600, Thadeus Burgess wrote: 
> A traceback might help :)
> 
> -Thadeus
> 
> 
> 
> 
> 
> On Thu, Feb 4, 2010 at 12:35 PM, Jason Brower  wrote:
> > Prolly obvious, but I can't see it... can you?
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@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.
> >
> >
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: Dumb syntax error! Can't fix it!

2010-02-04 Thread Jason Brower
Gees thanks, I never thought about that one...
Password changed, thanks...
BR,
Jason Brower

On Thu, 2010-02-04 at 10:48 -0800, mr.freeze wrote: 
> I think 'transaction' is a reserved word. Try changing it to
> 'transactions'.
> 
> On Feb 4, 12:35 pm, Jason Brower  wrote:
> > Prolly obvious, but I can't see it... can you?
> >
> >  db.py
> > 6KViewDownload
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] proposal for online documentation

2010-02-05 Thread Jason Brower
I also agree, then we create a dynamic and growing collection of
documentation and when I need the information from the book I can get it
there as well.  Very fun idea indeed.
BR,
J
On Fri, 2010-02-05 at 08:11 -0800, mdipierro wrote: 
> I got a private email from David and we have an idea:
> 
> 1) organize a wiki with the same table of content as the book. Each
> page will have an errata and a a faq. It will include some parts of
> the book (when possible) and link the scribd book chapters when not
> possible.
> 
> 2) integrate the above with a small web2py app that turns web2py
> docstrings into wiki pages. When users edit the wiki, the docstrings
> get updated, and I get a patch.
> 
> What do people think?
> 
> Massimo
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] AutocompleteWidget: experimental, magic, RFC

2010-02-06 Thread Jason Brower
I have my current autocomplete but it doesn't do öäå in a search.  Does
this handle that?
Best Regards,
Jason
On Sat, 2010-02-06 at 12:30 -0800, mdipierro wrote: 
> People say there is some magic in web2py.
> Here is some real magic now in trunk that I am sure you have never
> seen.
> 
> Caveats:
> 0) requires latest trunk (bzr 1603, hg 175:e42b559254f6)
> 1) this is an experiment, not sure it is a good idea
> 2) this is the first function in web2py that REQUIRES jQuery
> 3) works but I am not yet convinced it should stay there
> 4) even if it stays, I am sure the API should stay
> 
> Example:
> 
> ### assume this model
> db.define_table('target',Field('name'))
> if not db(db.target.id>0).count():
> db.target.insert(name="Klingon")
> db.target.insert(name="Romulans")
> db.target.insert(name="Borg")
> db.target.insert(name="Borg2")
> db.define_table('photon_torpedo',Field('target',db.target))
> 
> ### assume this action in controller default.py
> def launch():
> db.photon_torpedo.target.represent=lambda target: target.name
> return dict(new_torpedo=crud.create(db.photon_torpedo),
> launched_torpedos=db().select(db.photon_torpedo.ALL))
> 
> So far nothing new.
> 
> Now append to the model or insert at top of controller the following:
> 
> from gluon.sqlhtml import AutocompleteWidget
> db.photon_torpedo.target.widget=AutocompleteWidget(request,db.target.name,db.target.id)
> 
> No need to define any callback action (there is no callback action!)
> No plugin required (perhaps some optional css to style).
> No js coding required.
> Applies to existing apps, including those that use custom forms.
> 
> Let's see who can figure out how it works!
> 
> Massimo
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: immediate web2py job opening

2010-02-06 Thread Jason Brower
I don't have to much interest in them. :D  But I will pass the word
around.  How long is the contract for?  I can find someone here that may
be able to go to the states to work.
BR,
Jason Brower

On Sat, 2010-02-06 at 22:26 -0800, weheh wrote: 
> @villas: lol.
> @ Jason B: the team will be as small as possible so there will be more
> models to go around.
> 
> On Feb 6, 7:38 am, villas  wrote:
> > On Feb 3, 9:24 am, Jason Brower  wrote:
> >
> > > Sounds fun
> >
> > Yes, you can just imagine the banter...
> > "Now you finish off the controllers and views, while I take care of
> > those models!"
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread Jason Brower
I will try it when it's in a release, I want to test the ÖÄÅ features as
I can't get it to work in my setup.
Best Regards,
Jason
On Sun, 2010-02-07 at 14:26 -0800, mdipierro wrote: 
> 
> On Feb 7, 3:12 pm, "mr.freeze"  wrote:
> > Nice! I like this but I think it needs a few more tweaks. Can you
> > modify it to allow the arrow keys to select an item? Also, when you
> > clear the input after typing something, all of the options show.
> 
> Yes it can be done. It is on my to do list.
> 
> >
> > I personally think that javascript should be used more in the
> > framework (with proper attention paid so that things degrade
> > gracefully when it's off).
> 
> Something like auto-completion is just going to break if jQuery is not
> present. I am not sure if it is possible to make degrade gracefully.
> 
> 
> >
> > On Feb 7, 2:11 pm, mdipierro  wrote:
> >
> > > How about we change IS_IN_DB so that, if the number of referenced
> > > records exceeds a maximum the auto complete widget is on by default?
> >
> > > Massimo
> >
> > > On Feb 7, 1:02 am, mdipierro  wrote:
> >
> > > > I do not know that. I am still playing with it...
> >
> > > > On Feb 6, 11:40 pm, Jason Brower  wrote:
> >
> > > > > I have my current autocomplete but it doesn't do öäå in a search.  
> > > > > Does
> > > > > this handle that?
> > > > > Best Regards,
> > > > > Jason
> >
> > > > > On Sat, 2010-02-06 at 12:30 -0800, mdipierro wrote:
> > > > > > People say there is some magic in web2py.
> > > > > > Here is some real magic now in trunk that I am sure you have never
> > > > > > seen.
> >
> > > > > > Caveats:
> > > > > > 0) requires latest trunk (bzr 1603, hg 175:e42b559254f6)
> > > > > > 1) this is an experiment, not sure it is a good idea
> > > > > > 2) this is the first function in web2py that REQUIRES jQuery
> > > > > > 3) works but I am not yet convinced it should stay there
> > > > > > 4) even if it stays, I am sure the API should stay
> >
> > > > > > Example:
> >
> > > > > > ### assume this model
> > > > > > db.define_table('target',Field('name'))
> > > > > > if not db(db.target.id>0).count():
> > > > > > db.target.insert(name="Klingon")
> > > > > > db.target.insert(name="Romulans")
> > > > > > db.target.insert(name="Borg")
> > > > > > db.target.insert(name="Borg2")
> > > > > > db.define_table('photon_torpedo',Field('target',db.target))
> >
> > > > > > ### assume this action in controller default.py
> > > > > > def launch():
> > > > > > db.photon_torpedo.target.represent=lambda target: target.name
> > > > > > return dict(new_torpedo=crud.create(db.photon_torpedo),
> > > > > > 
> > > > > > launched_torpedos=db().select(db.photon_torpedo.ALL))
> >
> > > > > > So far nothing new.
> >
> > > > > > Now append to the model or insert at top of controller the 
> > > > > > following:
> >
> > > > > > from gluon.sqlhtml import AutocompleteWidget
> > > > > > db.photon_torpedo.target.widget=AutocompleteWidget(request,db.target.name,db.target.id)
> >
> > > > > > No need to define any callback action (there is no callback action!)
> > > > > > No plugin required (perhaps some optional css to style).
> > > > > > No js coding required.
> > > > > > Applies to existing apps, including those that use custom forms.
> >
> > > > > > Let's see who can figure out how it works!
> >
> > > > > > Massimo
> >
> >
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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] Needed Validation: A-F or 0 but A-F are unique...

2010-02-08 Thread Jason Brower
Don't know if I can discribe this in type but...
I need a validator that can alow only one A B C D E F other wise it
should be 0
I haven't figure out how to make IS_IN_SET(["A","B","C","D","E","F"])
unique=True and default=0 all at the same time... 
Best Regards,
Jason Brower


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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] Customize classes or ids on SQLFORM submit button...

2010-02-08 Thread Jason Brower
I can see the customized forms and other what not, but is there a way to
set the classes for the submit buttons and other what not.  I just want
to change the styling, not validations or anything like that.
---
Best Regards,
Jason Brower

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread Jason Brower
Gees, I get fancy new command thrown at me all the time. :P
Thanks!
BR,
Jason Brower

On Tue, 2010-02-09 at 02:39 -0800, selecta wrote: 
> IS_EMPTY_OR(IS_IN_SET(["A","B","C","D","E","F"]))
> 
> On Feb 9, 11:36 am, selecta  wrote:
> > IS_EMTPY_OR(IS_IN_SET(["A","B","C","D","E","F"]))
> >
> > On Feb 9, 7:40 am, Jason Brower  wrote:
> >
> >
> >
> > > Don't know if I can discribe this in type but...
> > > I need a validator that can alow only one A B C D E F other wise it
> > > should be 0
> > > I haven't figure out how to make IS_IN_SET(["A","B","C","D","E","F"])
> > > unique=True and default=0 all at the same time...
> > > Best Regards,
> > > Jason Brower
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Jason Brower
All those that think Massimo is either, 1.  A total stud or 2. Freaking
amazing. +1 Your a great guy Massimo.
---
Warmest Regards,
Jason Brower

On Tue, 2010-02-09 at 06:36 -0800, mdipierro wrote: 
> Alexandre is right except this part is now partially solved.
> None of the tools suggested here worked in converting my Latex to wiki
> but I only used my own Latex macros so I stayed awake last night and
> wrote my own tool (works only with my own latex but works much better
> than anything else). I am letting you know so that we do not overlap.
> I will keep you posted...
> 
> Massimo
> 
> On Feb 9, 6:06 am, Alexandre Andrade  wrote:
> > Well,
> > I never discuss about my clients needs. I just understand it and make the
> > specification.
> >
> > 1. Documentation about web2py is poor. Everyone agree.
> > 2. One reason for this is Massimo defines the new versions, and there is no
> > roadmap. New features are added 'ad hoc'
> > 3. Since Massimo decides what will be in new versions and when, only him
> > know about the new functionalities.
> > 4. Since anyone is talking about roadmaps and planned versions, and
> > colaborative developing, documentation depends almost of Massimo
> > 5. So, what him want is what we have.
> >
> > He wants a tool/script to convert latex/wiki and wiki/latex.
> >
> > Talk, talk, talk, is no resolving anything.
> >
> > My sugestion is:
> >
> > 1. Can someone make a budget do develop this tool (wiki in web2py and
> > conversion latex/wiki/latex)?
> > 2. Who agrees to donate (and how much) do pay developing this?
> >
> > To me, open source is not about 'not paid to develop', but once developed,
> > be free to be used.
> >
> > If someone can do it, and enough people agree the value need, we can advance
> > by this way. If none, its time to search another solution.
> >
> > 2010/2/8 mdipierro 
> >
> >
> >
> > > I am not sure this is something people should vote on.
> > > Let me resolve some of the issues on my side first.
> > > This should not be stopping anybody from writing howtos, examples and
> > > tutorials.
> > > this is complementary and putting everything together is a secondary
> > > step.
> >
> > > If people know of a good tool to convert latex to wiki format and vice
> > > versa, I could use that.
> >
> > > Massimo
> >
> > > On Feb 8, 6:39 pm, Richard  wrote:
> > > > In case you missed it Massimo is considering making the manual
> > > > available online in HTML:
> >
> > > > On Feb 9, 3:33 am, mdipierro  wrote:
> >
> > > > > I am considering posting most of the book on line in HTML. This may be
> > > > > possible with a disclaimer about "do not reproduce in print". The main
> > > > > issue is that the book is in latex and not easy to convert.
> >
> > > >http://groups.google.com/group/web2py/browse_thread/thread/ce1c7614ce...
> >
> > > > There have been a number of complaints lately about the documentation
> > > > so it is good this is being considered.
> >
> > > > Some points to ponder:
> > > > - How would the online manual best be hosted? - the wiki app? A
> > > > djangobook clone?
> > > > - Should the PDF/latex be manually inserted into this app, or is there
> > > > an automatic method?
> > > > - How would online edits be fed back into the official PDF version?
> >
> > > > Richard
> >
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "web2py-users" group.
> > > To post to this group, send email to web...@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.
> >
> > --
> > Atenciosamente
> >
> > --
> > =
> > Alexandre Andrade
> > Hipercenter.com
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-10 Thread Jason Brower
That doesn't seem to work.  I don't think there is a function called
IS_EMPTY_OR in web2py.
BR,
Jason
On Tue, 2010-02-09 at 02:39 -0800, selecta wrote: 
> IS_EMPTY_OR(IS_IN_SET(["A","B","C","D","E","F"]))
> 
> On Feb 9, 11:36 am, selecta  wrote:
> > IS_EMTPY_OR(IS_IN_SET(["A","B","C","D","E","F"]))
> >
> > On Feb 9, 7:40 am, Jason Brower  wrote:
> >
> >
> >
> > > Don't know if I can discribe this in type but...
> > > I need a validator that can alow only one A B C D E F other wise it
> > > should be 0
> > > I haven't figure out how to make IS_IN_SET(["A","B","C","D","E","F"])
> > > unique=True and default=0 all at the same time...
> > > Best Regards,
> > > Jason Brower
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: flash message timeout

2010-02-12 Thread Jason Brower
I actually never thought about having it fade out.  That sounds like a
great idea!
Thanks Hamdy!
BR,
Jason
On Fri, 2010-02-12 at 21:21 -0800, mdipierro wrote:
> {jQuery('.flash').delay(5000).fadeOut();}

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] On the online book

2010-02-12 Thread Jason Brower
The page looks fantastic and very well done.  Hopefully you can earn
some cash with it as well.
BR,
Jason

On Fri, 2010-02-12 at 15:17 -0800, mdipierro wrote: 
> The book
> 
> http://web2py.com/book
> 
> Seems to work well enough. I need to add some editor locking to avoid
> conflicts and I will do next week.
> There are some issues with IE8 so if you want to be an editor, you
> better use Firefox.
> If you want to start creating pages or editing please go ahead
> 
> ... and feel free to te ll your friends. ;-)
> 
> Massimo
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: why use the admin interface, at all?

2010-02-12 Thread Jason Brower
Thank you Massimo.  I am happy you remember me. :D
BR,
Jason
On Fri, 2010-02-12 at 14:54 -0800, snfctech wrote:
> Still my intent with web2py is not to serve only the brightest
> > ones. 

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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] Displaying a gantt like chart...

2010-02-15 Thread Jason Brower
I am making a scheduling application and am getting fairly close.
I have it displaying a charts relative to the size of screen.
The data configured in the controller and built on the screen with only
html and css.
But I have a few issues.
I need to create a date that I can add one day to another over and over
to get the day and date and most of all be able to print it to the
screen.  Do I really need to do that all before I get to the view
without importing datetime in both the controller and the view?

This view will mark across the screen with tick marks representing each
day.
I can get each day, but I can't get the date for each day.
I need this and then be able to mark when ever there is a saturday and
sunday. (As the business will be closed.  Any idea how this could be
best done?
Enclosed is the view I am using for it...
I also have encloded my css so you get the idea of how it would look.

Hope you can help out.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.

{{extend 'layout.html'}}

{{=day}}
{{color_count = 0}}




{{=start_date.strftime(date_format)}}
{{=end_date.strftime(date_format)}}



{{for item in range(days):}}
M
{{pass}}


{{for bar in bars:}}

{{for item in bars[bar]:}}
{{=item[2]}}
{{pass}}

{{pass}}
@charset "UTF-8";

* {
margin: 0 0;
}
body {
background:url("images/content_bg.png");
background-repeat: repeat;
}
a img{
border:0px;
}
.error {
background:orange;
}
.bar_chart {
width:950px;
height:13px;
background:white;
margin-top:4px;
}
.bar_chart a{
display:block;
background:pink;
height:13px;
float:left;
font-size:8px;
text-align:center;
overflow:hidden;
padding-bottom:1px;
text-decoration:none;
color:black;
}
a.percent {
display:block;
background:pink;
height:13px;
float:left;
font-size:11px;
text-align:center;
overflow:hidden;
padding-bottom:1px;
text-decoration:none;
}
#index_content {
width:400px;
height:350px;
}
a#checkout {
background:url("images/checkout_button.png") right top;
}
a#customer {
background:url("images/customer_button.png") right top;
}
a#table {
background:url("images/table_button.png") right top;
}
a#sales {
background:url("images/sales_button.png") right top;
}
a#report {
background:url("images/report_button.png") right top;
}
a#feedback {
background:url("images/feedback_button.png") right top;
}
a#mail {
background:url("images/mail_button.png") right top;
}
a#administration {
background:url("images/administration_button.png") right top;
}
a#exit {
background:url("images/exit_button.png") right top;
}

a#checkout:hover {
background:url("images/checkout_button.png") right bottom;
}
a#customer:hover {
background:url("images/customer_button.png") right bottom;
}
a#table:hover {
background:url("images/table_button.png") right bottom;
}
a#sales:hover {
background:url("images/sales_button.png") right bottom;
}
a#report:hover {
background:url("images/report_button.png") right bottom;
}
a#feedback:hover {
background:url("images/feedback_button.png") right bottom;
}
a#mail:hover {
background:url("images/mail_button.png") right bottom;
}
a#administration:hover {
background:url("images/administration_button.png") right bottom;
}
a#exit:hover {
background:url("images/exit_button.png") right bottom;
}
#start_date {
float:left;
font-size:11px;
}
#end_date {
float:right;
font-size:11px;
}

a.index_item {
display:block;
width:125px;
height:31px;
float:left;
font-size:11px;
text-align:center;
padding-top:82px;
text-decoration:none;
color:grey;
}

a.index_item:hover {
color:black;
}

#header {
width:100%;
height:100px;;
float:left;
}
#header h1 {
font-size:80px;
}
#header_content {
float:left;
height:100%;
}
#footer {
width:100%;
float:left;
text-align:center;
font-size:11px;
}
#logo {
height:100%;
width:210px;
float:left;
}
#navigation {
width:160px;
float:left;
margin-top:5px;
margin-left:15px;
}
#navigation a {
display:block;
width:154px;
height:27px;
background:url('images/button.png');
overflow:hidden;
background-position:bottom left;
text-align:center;
padding-top:5px;
font-family: Verdana,Arial,sans-serif;
font-size:18px;
text-decoration: none;
float:left;
margin-top:5px;
color:

Re: [web2py] Re: how to display date and time nicely?

2010-02-15 Thread Jason Brower
These examples would be a very good edition to the book
--
J
On Mon, 2010-02-15 at 16:19 -0800, mdipierro wrote: 
> for lack of a better option I put it in tools for now.
> 
> On Feb 15, 5:56 pm, Richard  wrote:
> > added a few more cases:
> >
> > def prettydate(d):
> > try:
> > dt = datetime.now() - d
> > except:
> > return ''
> > if dt.days >= 2*365:
> > return '%d years ago' % int(dt.days / 365)
> > elif dt.days >= 365:
> > return '1 year ago'
> > elif dt.days >= 60:
> > return '%d months ago' % int(dt.days / 30)
> > elif dt.days > 21:
> > return '1 month ago'
> > elif dt.days >= 14:
> > return '%d weeks ago' % int(dt.days / 7)
> > elif dt.days >= 7:
> > return '1 week ago'
> > elif dt.days > 1:
> > return '%d days ago' % dt.days
> > elif dt.days == 1:
> > return '1 day ago'
> > elif dt.seconds >= 2*60*60:
> > return '%d hours ago' % int(dt.seconds / 3600)
> > elif dt.seconds >= 60*60:
> > return '1 hour ago'
> > elif dt.seconds >= 2*60:
> > return '%d minutes ago' % int(dt.seconds / 60)
> > elif dt.seconds >= 60:
> > return '1 minute ago'
> > elif dt.seconds > 1:
> > return '%d seconds ago' % dt.seconds
> > elif dt.seconds == 1:
> > return '1 second ago'
> > else:
> > return 'now'
> >
> > On Feb 15, 10:54 am, mdipierro  wrote:
> >
> > > Put this in a model
> >
> > > def prettydate(d):
> > > try:
> > > dt = request.now - d
> > > except:
> > > return ''
> > > if dt.days>=365*2:
> > > return '%s years ago' % int(dt.days/365)
> > > elif dt.days>=365:
> > > return '1 years ago'
> > > elif dt.days>=60:
> > > return '%s months ago' % int(dt.days/30)
> > > elif dt.days>21:
> > > return '1 months ago'
> > > elif dt.days>=14:
> > > return '%s weeks ago' % int(dt.days/7)
> > > elif dt.days>=7:
> > > return '1 week ago'
> > > elif dt.days>=2:
> > > return '%s days ago' % int(dt.days)
> > > elif dt.days==1:
> > > return '1 day ago'
> > > else:
> > > return 'today'
> >
> > > On Feb 14, 3:13 pm, selecta  wrote:
> >
> > > > This is not 100% web2py related but I am sure if this will be answered
> > > > many of you will profit at some point from it.
> >
> > > > Is there a python module that helps you to display dates and times
> > > > nice e.g.
> >
> > > > just now (for within the last 5 minutes)
> > > > 2 hours ago
> > > > 2 days ago
> > > > 15th February 2009
> > > > ...
> >
> > > > I guess somebody must have done that already, right?
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: they are copying us....

2010-02-16 Thread Jason Brower
Hmm...
If I though someone was plagurizing my idea I would say it.  But I think
copy is the best term you could use here.  I don't know of a better way
to say it. Copy is an ok thing to say, it's just the media has turned it
into a bad thing. My two cents.
---
Best Regards,
Jason Brower
On Tue, 2010-02-16 at 01:25 -0800, pistacchio wrote: 
> hi massimo,
> i really appreciate your work on web2py. the product is excellent,
> i've just launched my first site using it and other two are on the
> work. i like the new documentation (how it's shaping up) and the way
> you "rule" the community around web2py prove that your way is right. i
> mean, you do a lot of work and coordinate inputs.
> 
> one thing i really don't understand is your approach to the opensource
> philosophy. i already pointed it out weeks ago about the non free, pdf
> documentation that is something really sick in a opensource
> environment. fortunately i was not the only one thinking this way and,
> in the end, the online book is now there and shining.
> 
> now, i think this "copying us" is utterly out of place. as you stated
> somewhere, your sources of inspiration were initially django and
> rails. are you copying them? did you make the idea of "web framework"
> by yourself? were you the first one to come out with the mvc pattern?
> i don't think so, and this is perfect.
> 
> the opensource community, seen as a whole, not as a series of rival
> smaller communities that gather around isolated projects, drains its
> power from the openness of the ideas, from making them circulate and
> the word "copy", with the negative connotation of "plagiarize" hidden
> within it, has nothing to do with this.
> the guy may or may be not been inspired by web2py, but if he was, it
> is a good thing that web2py did something so valid that other people
> want to take inspiration from it. if he ends up writing a piece of
> software that is better than the current web2py's online editor, we
> can replace it with the new, better one and the circle will be
> completed as opening an idea would lead to end up with a better
> product. that's the whole point of opensource.
> 
> On Feb 16, 5:57 am, mdipierro  wrote:
> > http://haineault.com/blog/125/
> >
> > P.S. Of course we have 3 years of head start and the web2py
> > architecture was designed for this, theirs isn't.
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: small improvement to TK gui

2010-02-22 Thread Jason Brower
+1
And it would be nice to see a list of error links and they happen on the
server.  Or a link or viewer for the error logs. Etc...
That brings up another point.  I would like to have an error log viewer
that I can run from the console as well, so I can easily parse through
errors on my server.
BR,
Jason
On Sun, 2010-02-21 at 23:53 -0800, hamdy.a.farag wrote: 
> >actually if you do
> >python web2py.py -i ip_address -p port_number -a "password"
> >there will be no gui.
> 
> 
> >The tk gui could use some general cleanup by somebody who understands tk a 
> >lot better than I do.
> 
> 
> :) I know that ,
> 
>actually There is no need to do many improvements in the TK gui,
> it's working and that's all needed for now , in real development
> world actually you don't  need it at all
>but the fact that there's no listener for the Enter Key annoys me
> whenever I do some quick test
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Question about web2py license

2010-02-22 Thread Jason Brower
The software created with Web2py can be any license that you like.
On Mon, 2010-02-22 at 09:29 +, Miguel Lopes wrote:
> Hello Massimo,
> 
> I wonder if web2py's license would allow for a SaaS kind of
> application?
> 
> By SaaS I mean access to the site (web app) would be paid for. In
> practice end users would pay a fee for accessing the site
> functionality. This seems very, very borderline to me. I know you are
> not laywers. But would this be possible?
> 
> br,
> Miguel
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "web2py-users" group.
> To post to this group, send email to web...@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.


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] shell only web2py

2010-03-02 Thread Jason Brower
Very nice article.  Thanks, it's good to know this side as well,
especially when deploying remotely.
BR,
Jason Brower
On Tue, 2010-03-02 at 09:59 -0800, mdipierro wrote: 
> http://gluonframework.wordpress.com/
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: interesting stats

2010-03-05 Thread Jason Brower
Notice the 1 at the end. :)
BR,
Jason Brower
On Fri, 2010-03-05 at 11:05 -0800, mdipierro wrote: 
> You are right. The numbers are way off.
> 
> The entire number of html lines of web2py html is 4174 and the entire
> number of python lines (including comments) is 40001.
> 
> Massimo
> 
> On Mar 5, 12:35 pm, villas  wrote:
> > Hmm,  Web2py has 85,000 lines of HTML.
> > I wonder how that is measured?  Is that credible?
> >
> > On Mar 5, 6:08 pm, mdipierro  wrote:
> >
> > > I just came across these:
> >
> > >https://www.ohloh.net/p/web2py/analyses/latesthttps://www.ohloh.net/p...
> >
> > > It shows that web2py code has less comments in code (in %) then Django
> > > by a factor 2, but more than TG (+10%). We have more HTML than both of
> > > them. The total code base is not as small as I though compared with
> > > Django. Including the HTML we have more lines of code.
> >
> > > Massimo
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: web2py beautification

2010-03-05 Thread Jason Brower
+1 I think beginners would especially like it as they can pick the theme
they like.
I think what might be a step in an even cooler direction would be a
color selector that helps you setup your css to the color theme you
like.  It's very helpful to me, as design is something I go for right
away. (I dislike the table layout very much. :P)
---
BR,
Jason

On Fri, 2010-03-05 at 20:24 -0800, weheh wrote: 
> +1
> 
> On Mar 5, 11:19 pm, "mr.freeze"  wrote:
> > Idea: tweak 10 (or more) of the best gpl css templates we can find to
> > work with web2py and give people a choice of templates when they
> > create an app.  Also, change admin to use one of these.  I think the
> > welcome and admin apps look too utilitarian and web 1.0 (no offense to
> > whoever designed them).
> >
> > Thoughts?
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: web2py beautification

2010-03-05 Thread Jason Brower
But then this isn't automated. First time I have seen it, so if it's in
the application built in I missed it. And let's not forget lots of us,
like me don't have internet all the time.
BR,
Jason

On Fri, 2010-03-05 at 20:27 -0800, mdipierro wrote: 
> Why when they can already chose hundreds from web2py.com/layouts
> What somebody should actually do is go over them all and delete some.
> Some do not look very nice because tha conversion process broke them.
> 
> Massimo
> 
> On Mar 5, 10:24 pm, weheh  wrote:
> > +1
> >
> > On Mar 5, 11:19 pm, "mr.freeze"  wrote:
> >
> > > Idea: tweak 10 (or more) of the best gpl css templates we can find to
> > > work with web2py and give people a choice of templates when they
> > > create an app.  Also, change admin to use one of these.  I think the
> > > welcome and admin apps look too utilitarian and web 1.0 (no offense to
> > > whoever designed them).
> >
> > > Thoughts?
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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] Interesting project....

2010-03-06 Thread Jason Brower
https://launchpad.net/drizzle
I wonder how useful it actually is and if it would be something web2py
would support. (Perhaps as a plugin as I doubt it will be in python any
time soon.)
BR,
Jason

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: Dream Host Deployment

2010-03-06 Thread Jason Brower
I wonder if this could be something that could be added to the web2py
book as dreamhost is a big company.  Maybe dreamhost would be willing to
pay a little to have it done. :P
BR,
Jason

On Sat, 2010-03-06 at 19:05 -0800, Jesse wrote: 
> I put the update on:
> 
> http://wiki.dreamhost.com/Web2py
> 
> For anyone that is interested.
> 
> Also, I can migrate the info to another location if someone has a
> suggestion as to where.
> 
> 
> Cheers,
> Jesse
> 
> On Mar 6, 10:33 pm, Jesse  wrote:
> > Fabulous,
> >
> > That seemed to do the tricked.
> >
> > Dreamhost seems to be a bit touchy on which ports you I can use to run
> > web2py on. (ie none of 8000, 8001, 8080, 8081, etc seemed to work)
> > But I just picked a random number and it seems to work like a charm.
> >
> > I'll have to add this to Dreamhost's wiki.
> >
> > Thanks a bunch,
> > Jesse
> >
> > On Mar 6, 7:04 pm, Kuba Kucharski  wrote:
> >
> > > let's get you through it.
> >
> > > for development I use two instances of web2py.
> >
> > > one:
> >
> > > python web2py.py -i public_ip -p 80 -a ""
> >
> > > two:
> >
> > > python web2py.py -i public_ip -p 8001 -a "password"
> >
> > > one instance serves my beta testers and users, the second on runs just 
> > > for me
> >
> > > then I do:
> >
> > > ssh -L 8001:127.0.0.1:8001 k...@server
> >
> > > and type 127.0.0.1:8001 in my browser. I promise you it will work.
> >
> > > the first "8001" is my local port on my desktop
> > > the :127.0.0.1:8001 part is where I estabilished my web2py instance on
> > > the server. that is all.
> >
> > > happy hacking.
> >
> > > --
> > > Kuba
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: announcement

2010-03-07 Thread Jason Brower
Good gosh.  Sounds fun!  I am particularly interested in the Visual
Scheduler as I am building one myself.
BR,
Jason

On Sun, 2010-03-07 at 19:59 -0800, JorgeRpo wrote: 
> Great contribution to the web2py comunity!
> 
> I will download it and study it.
> 
> Thanks
> 
> On Mar 7, 2:50 pm, dbb  wrote:
> > To All :
> >
> > This announcement of the release of the first HL7 open source code and
> > the code can be found athttp://code.google.com/p/web2pyhl7/, the code
> > is an open source  and built on web2py framework and please read the
> > release notes for more information. This is an effort by Dr. Massimo,
> > professor of computer science at De Paul, the creator of web2py and
> > Dr. Debebe Asefa. This is really the effort of the the two indviduals
> > using their times and resources. Feel free to comment on the code and
> > suggest what you want to see including your wish lists, i.e., what
> > fucntions you want to see. The goal is to create plaform without any
> > limitations. This the first release, subsequent releases will have all
> > suggestions and new uncovered functions.
> >
> > Best regards:
> >
> > Debebe Asefa
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: announcement

2010-03-07 Thread Jason Brower
What is the username and pass for the demo site?
BR,
Jason

On Sun, 2010-03-07 at 19:59 -0800, JorgeRpo wrote: 
> Great contribution to the web2py comunity!
> 
> I will download it and study it.
> 
> Thanks
> 
> On Mar 7, 2:50 pm, dbb  wrote:
> > To All :
> >
> > This announcement of the release of the first HL7 open source code and
> > the code can be found athttp://code.google.com/p/web2pyhl7/, the code
> > is an open source  and built on web2py framework and please read the
> > release notes for more information. This is an effort by Dr. Massimo,
> > professor of computer science at De Paul, the creator of web2py and
> > Dr. Debebe Asefa. This is really the effort of the the two indviduals
> > using their times and resources. Feel free to comment on the code and
> > suggest what you want to see including your wish lists, i.e., what
> > fucntions you want to see. The goal is to create plaform without any
> > limitations. This the first release, subsequent releases will have all
> > suggestions and new uncovered functions.
> >
> > Best regards:
> >
> > Debebe Asefa
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] web2py.com is down !!?!

2010-03-09 Thread Jason Brower
Works for me (:
On Tue, 2010-03-09 at 00:18 -0800, Sky wrote: 
> as I see web2py.com is down since 2 days ago.
> is there any body to inform the site administrator ???
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



Re: [web2py] Re: Where do you use web2py?

2010-03-12 Thread Jason Brower
I control advances factory robotics with web2py.  It's pretty cool, but
for now a secret beyond that. :D
Best Regards,
Jason
On Fri, 2010-03-12 at 02:38 -0800, selecta wrote: 
> check out
> http://www.semanticsbml.org/aym (screeshots at sf.net will help if you
> do not want to input something)
> http://www.semanticsbml.org/semanticSBML/
> these are my current official web2py projects
> the second one will use web2py as a application gui for now only some
> new features are exposed that are not in the current qt based gui
> 
> I guess my projects are a bit different since they are not classical
> database driven web pages. I use web2py half of the time as a gui
> toolkit.
> 
> On Mar 12, 10:42 am, "Giovanni Giorgi"  wrote:
> > Hi all,
> >  in the attempt to better knowing web2py and its community,
> > I'd like to write some entry on my blog (gioorgi.com).
> > I want to do a useful work for the community itself.
> >
> > This day I'd like to focus myself on the question: for which projects do
> > you use web2py?
> >
> > I have seen the master project open sourced in the last few days
> > posted by Asefa Debebe on 7th March (titled 'Relase of the first HL7 based
> > on web2py framework', demo at ).
> >
> > So, how you are using web2py?
> > For instance, do you prefer form-entry based application (data entry,
> > CRM,etc) or community based one (like CMS, Facebook clone etc)?
> >
> > ciao ciao!
> >
> > --
> > Team Leader
> > Gioorgi.com Chief Editor
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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.



  1   2   3   4   5   6   7   8   >