. lucas
in advance and i look forward to your experienced opinions. lucas
wow, really, so did you actually install freebsd on your EC2 harddisk slice
because i don't see freebsd under the amazon EC2 operating systems. i do
see redhat enterprise 6, which is probably very very similar to centos 6.
and with that freebsd install, did you install and use a relational
it is not referencing
the id from the pull-down list properly, or so.
please suggest. thank you in advance. lucas
(self, key)
KeyError: 'create_lecture_foldername'
so isn't there a better way then the try|except block. lucas
, it does not enter the opinion in the
database? is there a better way to structure this so that the function
accepts the processed form? what is the best method of creating forms via
a loop or on the fly based on database records?
thanx in advance, lucas
? or,
what is the best approach to soft-coding variable names in python to
achieve that? thanx in advance, lucas
sure i can us the id from the table of sections. but how to i attach that
id number to a variable and python recognize that string as a variable
name that i can then access again for the form processing? i guess this is
more of a python question now then a web2py. lucas
i did try messing around with
f = SQLFORM(db.opinions)
f.vars.stuff.assignments...
exec 'f%s = %s' % (i.id, f)
if (exec 'f%s' % i.id).process().accepted:
session.flash = 'Thank you for your opinion'
omg, that is so totally working. cool.
i am almost there. i added this at the top of my function
if ((request.vars._formnameNone) and
(request.vars._formname.rfind('opinion_')-1)):
f = SQLFORM(db.lecture_item_opinions)
f.vars.lecture_id=lecture.id
yes, thank you so much. i learned some very subtle things here and i love
the way it works. thank you so much. web2py is so powerful and so cool.
you in advance and have a great day. lucas
hello one and all,
i inadvertenly compiled my application. how do i get back to where i can
edit it again? like how do i uncompile it or unpack it? i didn't lose the
source did i?
lucas
: Failure to connect, tried 5 times:
could not connect to server: Permission denied
Is the server running on host localhost (127.0.0.1) and
accepting
TCP/IP connections on port 5432?
any ideas on what i have not done properly??? thank you in advance
and have a great day. lucas
...
then into as lucas:
python
Python 2.6.5 (r265:79063, Jun 25 2011, 08:36:25)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2
import psycopg2
psycopg2.connect(database=prac2, user=lucas,
password=passwdnotposted, host=localhost)
Traceback (most recent call last):
File stdin, line 1, in module
psycopg2
-9.1 service: [ OK ]
then under lucas:
psql prac2 -U lucas -h 127.0.0.1
psql: FATAL: Ident authentication failed for user lucas
psql
psql: FATAL: database lucas does not exist
but this works
psql prac2
i did add your lines to pg_hba.conf:
# IPv4 local connections
:
#testing python and psycopg2 under lucas login worked well:
python
import psycopg2
psycopg2.connect(database=prac2, user=lucas, password=passwdnotposted,
host=localhost)
connection object at 0x1780650; dsn: 'dbname=prac2 host=localhost
user=lucas password=x', closed: 0
#which looks like it worked
? howto, please?
lucas
well.
thank you in advance and have a great day. lucas
():
body = 'dude manbr /'
return dict(body=body)
and the html see it has the newline tag instead of as a string.
so how to i embed the br / html tag under python controllers? thank
you in advance. lucas
ok, i must be missing something, because that is not working. i am
running web2py v1.98.2 on apache 2.2.15 on centos 6.0. lucas
yes anthony, both of those worked in the way you prescribed. thank
you so much and have a nice day. lucas
hello one and all,
how do i direct auth to remove the login link from the navbar?
i already tried
auth.settings.actions_disabled.append('login')
like you would to remove register, but that didn't seem to work.
ideas? thank you in advance. lucas
to the
thread or solution?
thank you in advance and have a great day. lucas
hello one and all,
i think this is easy. how do you get the actual record/row total/
count for a particular table in web2py under DAL? thank you in
advance and have a great weekend.
lucas
thank you to both of you. i am learning this stuff and i always have
to start at the base. lucas
to fill the lists are bugging out.
suggestions on this modify? i don't need a custom auth_user so that
is why i am trying to modify the default one.
also, i would like to change to field order. how can i do that also?
thank you in advance and have a great day. lucas
that view?
thanx in advance, lucas
...
but the class references are not in there for the password_two which
makes the form look a little funky if you set this classes in the css
file. that could be fixed in the future correct?
just a thought either way. lucas
or not display certain information?
i know a lot a related questions, but i just can't seem to find good
documentation on it. thank you in advance and have a great week.
lucas
again, lucas
f...@gmail.com should be a Guest with permission
set to true for News Restricted. ok?
how come when f...@gmail.com is logged in, auth.has_permission('News
Restricted') proves False. Shouldn't it be True?
thanx in advance and have a good day. lucas
suggestion.
but i still can't get a True out of has_permission. that one first.
thanx again. lucas
btw, i am using 1.98.2 and will probably upgrade to 1.99.2 soon.
? thank
you in advance. lucas
, and
change the headers to remove the news..
how do i do both of those customizations? thank you in advance and
have a great day. lucas
to the client computer. so
how would i best do an upload from the server to the client.
specifically, i want to store files under static or static/pdf and
upload static files from there to the client.
thank you in advance and have a great day. lucas
thanx massimo,
i guess that does give the most optimum customization and control.
thank you. lucas
, that is probably exactly it. what
is that called and how do we implement that on our own?
thank you in advance and have a great day. lucas
view get processed and separated
by html and python code and then the python code is interpreted and
run as executable code?
thank you in advance, lucas
a field as a big block of code, in a html/text
file. how do we get that to execute as python? lucas
oh yeah, that is working awesome. sometimes coding is better then
eating. thanx so much limedrop. have a great day. lucas
?
thank you in advance, lucas
to match what is in the database.
also, looking at the code, it looks like it downloads the contents of
the file from the actual database and not from uploads, is that
correct? if so, it is only using uploads for the encoding of the
filename, correct?
lucas
ok, something more complicated now.
i have reference to auth in my text, for cross checking with
permissions and stuff in an if statement. how do i pass the auth
pointer reference through to renderer so that when i use auth.* in the
text it runs properly?
thank you in advance. lucas
ok, still confused, exactly how do you pass the table and field to the
response.download. i don't see it in the parameters. how does it
extract the table and field from the data provided. from the request
somehow? lucas
ok, that is much clearer and makes total sense now. all the dots
connected and i got it working great. yes, the manual is not entirely
clear on that and i am sorry for not getting it. thank you so much
for the detailed explanation. lucas
yes, working perfectly, beautiful. thank you much. lucas
yes, working perfectly, beautiful. thank you much. lucas
. lucas
After the fall of Borland and its premier language Delphi, I couldn't
find a graceful object-oriented langauge that was also cross-operating
system, cross relational/SQL database connective, and web-based, until
I found web2py and python. I completely love programming again and
haven't been
ok, i have done so much using this really really cool technique.
anyway, how do i pass a function reference to a global storage
context so that the standard views that are stored under views are
rendered properly, like in the above examples?
lucas
. so i am thinking that i have to pass the function
reference off to a global storage so that when web2py renders the
view, it has a reference is file_lookup. better? lucas
. so i am thinking that i have to pass the function
reference off to a global storage so that when web2py renders the
view, it has a reference is file_lookup. better? lucas
hello everyone,
trying to understand why the pmsg below fails to pull the values of
the form ef. all i get is None for each of the three,
ef.vars.email_address, ef.vars.subject, and ef.vars.message_body. all
three are spelled correctly and the full form ef, displays all of the
proper
yes, but doesn't crud.read just return an SQLFORM, which should have
object access to the field values, no?
manually to the crud object after it is created so that the admin can
edit the field.
please advise me into which of the two scenarios is best and exactly
how to do it. thank you in advance and have a great day. lucas
. lucas
and web2py is really great. i am learning it and loving
it. lucas
hello one and all,
how do i shut off or disable the 3rd column of comments under
crud.update?
also, how can i change the number of columns and rows of a textarea
for a text blob field? basically i wan to make it bigger?
thank you in advance and talk to you soon. lucas
of the blog_id field
to point back to its master record. and upon reflection, how would it?
how do i designation the db.blog_items.blog_id under the blog_items
function so crud.create will insert the record properly and fill the
blog_id field also? thank you in advance. lucas
really am impressed with web2py and haven't enjoyed programming
since delphi went south. lucas
working perfect, thanx again anthony. lucas
working perfect, thanx again anthony. lucas
working perfect, thanx again anthony. lucas
hello one and all,
i am stupid. i forgot the web2py admin password on my server and i
can't access the https interface. how can i change the password? is
there a simple script i can run as root or something?
thanx in advance. i know the technique is somewhere, i just can't
find it. lucas
. lucas
._dbname](*args)
File /opt/web-apps/web2py/gluon/dal.py, line 1999, in __init__
self.driver = self.drivers.get('pg8000')
AttributeError: 'list' object has no attribute 'get'
postgres is running but it will not connect. any ideas?
lucas
my install does recognize the pg8000 driver:
[root@q3200 web2py]# python web2py.py
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.7 (2012-03-04 22:12:08) stable
Database drivers available: SQLite3, pymysql, pg8000, IMAP
Starting hardcron...
and i did CREATE DATABASE testbank; under psql and it does exist as an
empty database at this point.
6.2 and the
web2py_install script found at:
http://www.web2pyslices.com/slice/show/1423/deploy-web2py-on-fedoracentosred-hat
lucas
and using the proper password.
also under python native:
import psycopg2
conn = psycopg2.connect('dbname=testbank user=postgres password=password')
works fine also with no issues and conn shows a proper connection object.
so damn, even the psycopg2 driver is working either.
lucas
be an expression
advice, please. lucas
--
you present only a subset of values for the select element of a
form under some kind of boolean test condition?
thanx in advance, lucas
--
oh my, that is so perfect, i love that. i learned a new word and i am
going to use it everywhere. thanx anthony.
p.s. hey, when is web2py v2.0 going to be stable and released full?
doesn't it have angularjs built into it also?
--
(db.lecture_items.lecture_id ==
db.class_assignments.lecture_id), db.lecture_items.id, '%(title)s
(%(id)s)')),
but both attempts failed. so how do i do a subselect kind of model? thanx
in advance, lucas
--
be in the referencing table, however, it is ok to leave it blank and
the controller will handle it according to design. how do i define that
requires?
thanx again in advance, i am really learning the poop out of this system.
lucas
--
not getting any return result with no
errors. so i think it is in the onchange area somewhere. using web2py
1.99.2. lucas
--
, how does web2py execute string into code, run it, and return the
return variable that has the dictionary keys:values generated from that
executed code?
lucas
--
what using restricted or snapshot? would that be best and is it visible to
us normal web2py users?
--
ok, that is fine for simple code execution, but what of the more complex?
how does web2py execute all of that complex code we can embed within a
view? that is what i want to reproduce in my scheme.
--
,
allow web2py to execute it, and finally return the dictionary so that it
can be further used in the view or other processes. i know it is a bit
dynamic, and thus difficult to give more details, so i am hoping that that
is more clear. let me know. ok. lucas
--
ok, i see the source code for restricted but its use eludes me a bit. how
do i grab its executed processed output?
--
not know how to access the
local variables within lucas53 or the locals to find harry or rtn.
so i am still learning python. thanx for the help in advance. lucas
--
i have been having a problem with users logging in or registering. web2py
seems to crash on some level and returns an internal error after the user
hits submit upon registering or logging in. i was initially getting the
error on my web2py version installed of 1.99.2, so i updated to the
, and in
those areas i will capture exceptions and rollback as suggested. what
exactly is the exception for the db or DAL? like
try:
some code
except DBException on e:
db.rollback()
return 'db exception: %s' % e
just so that i can at least return more tracking information also. lucas
--
for me and the find box is very different
and it doesn't have replace.
has anyone else complained like i am, don't want to be the only big whiny
one. anyway, great on everything. lucas
--
. are
there anymore possible areas of danger i should be looking for because this
instability is pretty bad? lucas
--
yes, i mean ticket, sorry. should i just delete the session manually or
should i do it programmatically?
--
wondering, almost desperate. lucas
--
that it is
occuring at login. i don't know exactly what kind of error postgres might
give, but it looks like it commits and tidies up after the queries just
fine. not really seeing any problem there and it only confirms that web2py
is bugging during the login. lucas.
2012-09-06 19:51:07 EDT: [unknown
On Friday, September 7, 2012 4:57:37 AM UTC-4, Michele Comitini wrote:
lucas,
OK. So there is no error at SQL level. The problem is probably a closing
cursor that happens somewhere in the DAL, that is triggered by some
usage/environment peculiar to your application.
Check the following
, the pg8000
driver, web2py, the DAL, my code, my views, i just don't know. pretty
frustrating. lucas
--
avails itself to bring in stability.
please. lucas
--
On Tuesday, September 11, 2012 10:35:02 AM UTC-4, Massimo Di Pierro wrote:
Some problems have been reported with pg8000. Can you reproduce the errors
with psycopg2.
yes, i can reinstall the psycopg2 rpm package. how do you specify and
ensure that web2py is using that driver in the DAL?
symbol: GSS_C_NT_HOSTBASED_SERVICE
is there a good forum for psycopg2 anywhere? lucas
--
it took a while to figure this out, but with the postgres repository that i
am using for 9.1, the python-psycopg2 rpm that is installed on my system is
from the pgdg91 repository. so i would have to conclude that the psycopg2
driver from that repository is for postgresql-9.1 and not the centos
hello one and all,
using linux, centos 6, and web2py 2.0.9.
how do i update or change the admin password under the console or
command-line editor?
thanx in advance, lucas
--
crashing
down. however, once it is loaded it all runs very smooth and very fast,
even the scipy functionality.
any suggestions to make scipy load much quicker under web2py?
thanx in advance, lucas
--
so badly. now that is real professor talk.
thanx massimo, have a great weekend. lucas
--
1 - 100 of 486 matches
Mail list logo