for all intents and purposes AVOID inlining content if it's meant to be a
binary ^_^. Attachments are there for a reason (and also for text files >
0.5 KB)...
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group
I was planning on writing a more updated plugin with some badass features
but as all the things is currently "backlogged"
On Wednesday, May 15, 2013 3:37:26 AM UTC+2, marco mansilla wrote:
>
> El Tue, 14 May 2013 12:33:51 -0700 (PDT)
> BlueShadow > escribió:
>
> > Hi,
> > I like to add c
I would love to see your badass coments plugin Niphlod.
On Wednesday, May 15, 2013 9:39:21 AM UTC+2, Niphlod wrote:
>
> I was planning on writing a more updated plugin with some badass features
> but as all the things is currently "backlogged"
>
> On Wednesday, May 15, 2013 3:37:26 AM UTC+
Hello
i use ubuntu 13.04 (server version)
uname -a
Linux ubu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012
i686 i686 i686 GNU/Linux
I upgraded python from 2.7.3 to 2.7.4 (because of the known problem with
2.7.3 :
Now i don't getException AttributeError: AttributeError("'_Dumm
are you sure it's not a problem on starting firefox ?
what happens if you try to start web2py with web2py.py -a arandompassword ?
Il giorno mercoledì 15 maggio 2013 10:42:28 UTC+2, goome ha scritto:
>
> Hello
> i use ubuntu 13.04 (server version)
> uname -a
> Linux ubu 3.2.0-29-generic-pae #46-U
won't be there for the next few weeks, though.
Il giorno mercoledì 15 maggio 2013 10:41:53 UTC+2, BlueShadow ha scritto:
>
> I would love to see your badass coments plugin Niphlod.
>
> On Wednesday, May 15, 2013 9:39:21 AM UTC+2, Niphlod wrote:
>>
>> I was planning on writing a more updated plugi
i tried with web2py.py -a arandompassword
I didn't get the previos message, and got instedad
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2013
Version 2.4.6-stable+timestamp.2013.04.06.17.37.38
Database drivers available: SQLite(sqlite3), MySQL(pymysql),
MySQL(MySQLdb), Postgre
I did the following.
I changed the destination of database from my PC. So from my app on my
local machine that works on Windows 7 I connect to Postrge database on
Linux. After running it and trying to register using characters ščćž ŠČĆŽ
there are no problems, also the same type of representatio
> Thank you for showing interest in resolving this. I apologize for not
> answering faster
>
> @Massimo - where do I set layout encoding?
>
>
> This is the whole error trace
What you show us was not your traceback, here is your traceback,
not that hard and concise and just to the point, right?
T
Ovidio,
I have a similar need, but not exactly an icon. I want to change the "file"
link to reflect the original file name. I got too busy and haven't got
enough time to research it.
If anyone know how to or may point a direction for you or me, it will be
great.
On Mon, May 13, 2013 at 8:54 PM,
Thanx
I removed the 'u' infront of string and it works
thanx again
On Wednesday, May 15, 2013 11:29:34 AM UTC+2, Ricardo Pedroso wrote:
>
> > Thank you for showing interest in resolving this. I apologize for not
> answering faster
> >
> > @Massimo - where do I set layout encoding?
> >
> >
Hi Every On i want to Customize my SQLFORM.grid according to row id if the
suppose
if row.id == 2
then the row color should be red
if row.id == 3
then the row color should be Blue
if row.id == 4
then the row color should be Black
how this will possible please suggest me
--
---
You
Hi,
i have a table of locations:
db.define_table('entry_location',
Field('name', 'string',
required=True,
requires=IS_NOT_EMPTY(),
label=LABEL(T("Naziv"), _for="entry_location_name")),
Field('parent_id', '
Hello Sergey
I encountered the same issue some month ago :
https://groups.google.com/forum/#!searchin/web2py/mysql$20self$20reference/web2py/qonC3j5sOmQ/7Y9QYkXBj4kJ
I opened a ticket about this :
http://code.google.com/p/web2py/issues/detail?id=1342
In the meanwhile, I moved my database to SQ
http://web2py.com/books/default/chapter/29/06?search=self+reference#Self-Reference-and-aliases
Il giorno mercoledì 15 maggio 2013 14:31:26 UTC+2, Domagoj Kovač ha scritto:
>
> Hi,
>
> i have a table of locations:
>
> db.define_table('entry_location',
> Field('name', 'string',
>
You can use CSS or Javascript. The record ID is stored as the "id"
attribute of the row -- for example:
...
Anthony
On Wednesday, May 15, 2013 8:16:32 AM UTC-4, Pawan Jha wrote:
>
> Hi Every On i want to Customize my SQLFORM.grid according to row id if the
>
> suppose
> if row.id == 2
> the
To give an explanation:
when you have:
mystring = 'some string encoded with some codec'
myunicode = u'%s' % mystring
Since you are telling python that you want a unicode object from
a string object, python will try do decode (convert) `mystring` with the
default encoding, since you didn't explic
the book states this "although it is easy to change this behavior if
visitors are authenticated, by keeping track of the individual votes in the
database and associating them with therequest.env.remote_addr of the
voter." at this link
http://web2py.com/books/default/chapter/29/11#Voting-and-rat
Actually, as long as you are requiring users to register and log in, you
might as well just associate each vote with a user ID -- then when a user
votes, you can just check whether that same user has already voted.
Anthony
On Wednesday, May 15, 2013 10:10:44 AM UTC-4, sasogeek wrote:
>
> the bo
either you update the session with a counter and forbid voting if that
variable is > some limit (but as soon as the session is erased (e.g. a
clean cookie operation) the user will be able to vote again) or you build
up on request.env.remote_addr (that is the ip address requesting the page)
some
Is there a way of generating XML or JSON in web2py say from a database.
--
...
Teddy Lubasi Nyambe
Opensource Zambia
Lusaka, ZAMBIA
Cell: +260 97 7760473
website: http://www.opensource.org.zm
~/
Human Knowledge
Do we have the way to generate sitemap.xml automatically?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more opt
Is there a way to create two different login/authentication systems for
different groups?
For example, I'm creating an application for Businesses and their
Customers. Businesses would have a login and would be able to access
information for all their customers, run reports, etc. Under the sam
*Running latest Version 2.4.6*
When connecting to an Oracle database, I noticed that response.toolbar ("db
tables" button) is not hiding the password in the connection string.
*dal.py*
REGEX_NOPASSWD = re.compile('(?<=\:)([^:@/]+)(?=@.+)')
...
def hide_password(uri):
return REGEX_NOPASSWD.sub
This is great!
Thanks Massimo.
Initial tests with MSSQL are working fine.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups
Do you even need the Auth system for the customers? Can't you just have an
accounts table in the DB and verify the account ID and zip when a payment
is made?
Anthony
On Wednesday, May 15, 2013 11:14:52 AM UTC-4, Andre Kozaczka wrote:
>
> Is there a way to create two different login/authenticati
The way its currently setup is that they would login using their account
number and billing zip. The following page will show the customer how much
is currently due and there is an option to make a payment... so a session
is started. Your suggestion I think would work if I just had the custome
You could even create your own login for the customers. Just create a page
with a form that takes the account ID and the billing zip. When the form is
submitted, check that the input matches an existing account, and then put
the account ID in the session.
Anthony
On Wednesday, May 15, 2013 11:
I have a table named 'person' and I have given permission to all registered
users create rows in this table with:
db.define_table('person',
Field('name','string', required=True, label="Full Name"),
Field('gender', 'string', required=True, label="Gender",
default='Male', requires=IS_IN_SET
Thanks Anthony... I think I was way over thinking this. For some reason I
thought I needed to leverage @auth.requires_login() and my brain was stuck
there. Your suggestion should work just fine.
On Wednesday, May 15, 2013 12:02:06 PM UTC-4, Anthony wrote:
>
> You could even create your own log
I was searching for the above functionality and found a solution using
Flask and StringIO as below (short code snippet attached for convenience).
Is there a way to do the same with web2py?
http://flask.pocoo.org/snippets/32/
#!/usr/bin/env python
# Thanks to Dan Jacob for a part of the code !
import StringIO
def index():
strIO = StringIO.StringIO()
strIO.write('Hello from Dan Jacob and Stephane Wirtel !')
strIO.seek(0)
return response.stream(strIO, attachment=True, filename="testing.txt")
Anthony
On Wednesday, May 15, 2013 12:41:07 PM UTC-4, Calvin wrote:
>
> I was se
automatically from what list ?
it's needed at least a list of urls to generate it
On Wednesday, May 15, 2013 4:59:01 PM UTC+2, Omi Chiba wrote:
>
> Do we have the way to generate sitemap.xml automatically?
--
---
You received this message because you are subscribed to the Google Groups
"
for a resultset or what else ?
def test():
resultset = db(query).select()
return resultset.as_xml()
#return resultset.as_json()
On Wednesday, May 15, 2013 4:54:17 PM UTC+2, software.ted wrote:
>
> Is there a way of generating XML or JSON in web2py say from a database.
>
> --
>
I was thinking like this website where it will search for the directly
under the domain and generate sitemap.xml.
http://www.xml-sitemaps.com/
On Wednesday, May 15, 2013 1:59:26 PM UTC-5, Niphlod wrote:
>
> automatically from what list ?
> it's needed at least a list of urls to generate it
Similar to the deletable/editable/create arguments for grids, would it make
sense to have those same arguments for table definitions:
db.define_table(...) ?
I have a use-case where several tables in my database need to be strictly
read-only. Rather than worrying about setting applicable argumen
wouldn't the normal writable = False on the fields work out ?
On Wednesday, May 15, 2013 9:59:16 PM UTC+2, bapster wrote:
>
> Similar to the deletable/editable/create arguments for grids, would it
> make sense to have those same arguments for table definitions:
> db.define_table(...) ?
>
> I hav
you mean that you want every possible url crawled and included in a sitemap
???
that's not web2py's specific, just take a crawler and generate the list of
urls
http://stackoverflow.com/questions/9561020/how-do-i-use-the-python-scrapy-module-to-list-all-the-urls-from-my-website
On Wednesday,
PS: the problem with this approach is that your site needs to include some
page where all the urls that it can generate are listed.
e.g. you make a /app/default/showme/ controller that takes an integer and
returns the representation of a product, that you previously saved in a
database.. (/
*Running on latest web2py v2.4.6 from trunk (but also occurs in Version
2.4.6-stable+timestamp.2013.04.06.17.37.38).*
When traversing linked tables with a smartgrid, the breadcrumbs code in
sqlhtml.py is causing an error, due to a mixup of the table/record
association.
The problem is easily du
It helps, but is not ideal. There are interesting side effects with that
approach, like allowing the creation of a record where all field values are
None, resulting in an error.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscr
I am trying to update count depend on url exists in the DB
urlcount is integer type in database
It keeps giving me an error.
Here is my code
def storeMd5InDb(md5_url_list):
import datetime
for single_md5_url in md5_url_list:
check_count=0
Interesting idea. For now, you could always do something like
db.mytable._deletable=False, though you would then have to explicitly do
something with that in your calls to .grid(), etc. You can also use the
._before_insert, ._before_update, and ._before_delete callbacks to prevent
writes once a
I've been working with web2py for only the last few weeks, so it's likely
this is a problem borne mostly of my own ignorance, but I've been having
issues rendering a wiki I've been working on.
In my (closely related, so ideally with the same userbase and application
name, but with some content
Hello everyone. This is probably simple (noob here) but I'm kinda lost
here. I am trying to establish a one to many relationship between the
auth_user table and an office table.
I have defined an office table:
db.define_table('office',
Field('name', 'string', notnull=True, unique=True),
i want to build a job,real estate and classified listing app where each
logged in user can post a listing and also update and delete listings
in the three categories. The problem is how do i create tables that are
unique to a logged in user?
--
---
You received this message because you are s
Hello all! I need help about SQLFORM.grid
I need to represent data from DB in my own way. I choose SQLFORM.grid() for
that task. Returned form is displayed as table of lines with fields values.
In my app need to specify how every db record will be displayed.
How to specify my own widget to dis
When I switch the db.table order around, smartgrid doesn’t work correctly.
- *Party* – Parent table. Can be person or organization.
- *auth_user* – holds person data
- *AddressIntersection* – Links 1:M to addresses to Parties
- *Address* – table of addresses
All together they
that you need to define the office table before the auth ones ^_^
On Wednesday, May 15, 2013 9:29:44 PM UTC+2, Naujpr wrote:
>
> Hello everyone. This is probably simple (noob here) but I'm kinda lost
> here. I am trying to establish a one to many relationship between the
> auth_user table and an
aside from the code that generates it, you MUST post also what error comes
up ^_^
On Wednesday, May 15, 2013 10:59:41 PM UTC+2, Nam Soo In wrote:
>
> I am trying to update count depend on url exists in the DB
> urlcount is integer type in database
> It keeps giving me an error.
>
> Here is my cod
I am getting this error
unsupported operand type(s) for +: 'Rows' and
'int'
On Wednesday, May 15, 2013 1:59:41 PM UTC-7, Nam Soo In wrote:
>
> I am trying to update count depend on url exists in the DB
> urlcount is integer type in database
> It keeps giving me an error.
>
> Here is my code
> def
Simple enough, check_count is a rows object, not an int.
check_count=db(db.phalanx_request.url==single_md5_url[1]).select(db.phalanx_request.urlcount)
That's a rowset. You'd want to probably just get the 'count'
check_count=db(db.phalanx_request.url==single_md5_url[1]).select(db.phalanx_request.
You're right. The web site I previously posted create the index up to
controller level. I think it's OK for now.
On Wednesday, May 15, 2013 3:44:26 PM UTC-5, Niphlod wrote:
>
> PS: the problem with this approach is that your site needs to include some
> page where all the urls that it can genera
I am still getting same error
On Wednesday, May 15, 2013 3:21:50 PM UTC-7, Derek wrote:
>
> Simple enough, check_count is a rows object, not an int.
>
>
> check_count=db(db.phalanx_request.url==single_md5_url[1]).select(db.phalanx_request.urlcount)
>
> That's a rowset. You'd want to probably just
boys.
a select returns a list of rows.
check_count=db(db.phalanx_request.url==single_md5_url[1]).select(db.
phalanx_request.urlcount)
returns something like
[ {'urlcount' : 2 } ]
assuming you url is unique (because of the logic expressed in your
snippet), then you'd like to fetch just the fir
Please open a ticket about this and it will be fixed asap.
On Wednesday, 15 May 2013 10:15:28 UTC-5, bapster wrote:
>
> *Running latest Version 2.4.6*
> When connecting to an Oracle database, I noticed that response.toolbar
> ("db tables" button) is not hiding the password in the connection strin
I still think we should do better. As implemented it fails on insert,
update, delete.
On Wednesday, 15 May 2013 10:29:12 UTC-5, DenesL wrote:
>
>
> This is great!
> Thanks Massimo.
>
> Initial tests with MSSQL are working fine.
>
>
--
---
You received this message because you are subscribed t
If you return a dictionary which contains data (but not helpers) than you
just call the action with .json or .xml extension and the dict will
automatically be converted.
On Wednesday, 15 May 2013 14:03:37 UTC-5, Niphlod wrote:
>
> for a resultset or what else ?
>
> def test():
> resultset
Thanks Anthony.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/grou
Done. Issue #1492
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/gr
For one controller I would like not to show the login menu.
How can I do this?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegr
{{=auth.navbar() if request.controller!='yourcontroller' else ''}} in
layout.html
On Wednesday, 15 May 2013 21:26:38 UTC-5, Tim Richardson wrote:
>
> For one controller I would like not to show the login menu.
> How can I do this?
>
--
---
You received this message because you are subscr
Uploading a possible solution to trunk. Please check it.
Massimo
On Wednesday, 15 May 2013 20:42:04 UTC-5, bapster wrote:
>
> Done. Issue #1492
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop recei
It replaces the username and password both with the asterisks mask, which
isn't quite what I expected, but it's fine with me.
Before the fix:
oracle://username/password@database
After your fix (trunk):
oracle:**@database
Expected:
oracle://username/**@database
--
---
You recei
Thanks Massimo.
After looking at layout.html I decided to hide it with CSS embedded in
Glad to hear it :) I don't use the ha-proxy myself atm. If you run into any
other issues definitely let me know though. I'd be happy to help if I can.
On Friday, May 10, 2013 8:00:04 AM UTC-5, smoggy wrote:
>
> Ok, apparently the commenting of
>
> option httpchk GET /
> like
> #option ht
Hi all
I need to implement a local map of city is any one here to advised me
that how will i use map in my application please suggest me ..
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop rece
67 matches
Mail list logo