On 17/01/2021 21:35, Stestagg wrote:
I would normally agree, except...
This is a refcount issue (I was able to reproduce the problem, gbd shows a
free error )
And I wouldn't recommend DGBing a refcount issue as a beginner to debugging.
The other mailing list identified a PIL bug that messes up
I would normally agree, except...
This is a refcount issue (I was able to reproduce the problem, gbd shows a
free error )
And I wouldn't recommend DGBing a refcount issue as a beginner to debugging.
The other mailing list identified a PIL bug that messes up the refcount for
True, but this refcou
Run python under gdb and when the segv happens use
the gdb bt command to get a stack trace.
Also if gdb says that it needs debug symbols install you will need to
do that. Otherwise the not will not contain symbols.
Barry
> On 17 Jan 2021, at 19:58, Robin Becker wrote:
>
> I have a segfault i
if NO-ANS:
print (" Its Python forum ")
elif ANS:
print (" Personal mail to Mr.Ryan")
else:
print (" Ryan kindly use the appropriate forum to discuss your topic")
On Thu, Oct 18, 2018 at 5:27 AM Ryan Johnson wrote:
> Anyone know a good US based law firm that specializes in software
This is a Python related forum, but your question has nothing to do with
Python. While you might get an answer here, I'm sure you could find a
better place to post your question.
On 10/17/2018 07:36 PM, rj.amdphr...@gmail.com wrote:
Correction: specializing in warranty of merchantability, so
Correction: specializing in warranty of merchantability, software licenses, and
possibly class action suits.
Sent from Mail for Windows 10
From: Ryan Johnson
Sent: Wednesday, October 17, 2018 9:26 PM
To: python-list@python.org
Subject: Advice on law firm
Anyone know a good US based law firm tha
On Fri, Aug 12, 2016 at 12:56 AM, Malcolm Greene wrote:
> Looking for some advice on how to optimize the BOILERPLATE portions of
> the following type of code. There's an awful lot of dot dereferencing
> going on. One thought was to pass in the values being dereferenced as
> parameters and return v
On Thu, Aug 11, 2016 at 10:57 AM Malcolm Greene wrote:
> Background: I'm building a rules engine for transforming rows of data
> being returned by csv DictReader, eg. each row of data is a dict of column
> name to value mappings. My rules are a list of rule objects whose
> attributes get referen
Thanks for the tips. Doit does look interesting.
Regarding template plugins with Nikola the plugins would be only for python
template alternatives such as mako.
Mainly i find the whitespace and readability of Jade/pug far more pythonic
than all tge brackets {% %} yes its a minor thing but so
On 12 April 2016 at 11:48, Sayth Renshaw wrote:
> Hi
>
> Looking at the wiki list of build tools
> https://wiki.python.org/moin/ConfigurationAndBuildTools
>
> Has anyone much experience in build tools as i have no preference or
> experience to lean on.
>
> Off descriptions only i would choose inv
On Tuesday, April 12, 2016 at 4:41:15 PM UTC+5:30, Ben Finney wrote:
> Sayth Renshaw writes:
>
> > Looking at the wiki list of build tools
> > https://wiki.python.org/moin/ConfigurationAndBuildTools
> >
> > Has anyone much experience in build tools as i have no preference or
> > experience to lea
Sayth Renshaw writes:
> Looking at the wiki list of build tools
> https://wiki.python.org/moin/ConfigurationAndBuildTools
>
> Has anyone much experience in build tools as i have no preference or
> experience to lean on.
I'm quite fine with GNU Make, so haven't really tried a lot of others.
I am
On Tuesday, 12 April 2016 19:48:43 UTC+10, Sayth Renshaw wrote:
> Hi
>
> Looking at the wiki list of build tools
> https://wiki.python.org/moin/ConfigurationAndBuildTools
>
> Has anyone much experience in build tools as i have no preference or
> experience to lean on.
>
> Off descriptions only
On Tue, Nov 11, 2014 at 11:53 AM, Mary-Frances McNamee <
maryfrances.mcna...@epas-ltd.com> wrote:
> To whom it may concern,
>
>
>
> I am currently working on a bit of coding for a raspberry pi, I was
> wondering maybe I could get some advice? I want my program to run for a
> certain time, for exa
On Tue, 11 Nov 2014 16:53:18 +
Mary-Frances McNamee wrote:
> To whom it may concern,
>
> I am currently working on a bit of coding for a raspberry pi, I was wondering
> maybe I could get some advice? I want my program to run for a certain time,
> for example 7am-2.30am everyday. Is this po
On Tue, Nov 11, 2014 at 9:53 AM, Mary-Frances McNamee <
maryfrances.mcna...@epas-ltd.com> wrote:
>
> I am currently working on a bit of coding for a raspberry pi, I was
wondering maybe I could get some advice? I want my program to run for a
certain time, for example 7am-2.30am everyday. Is this pos
I know that there are many online ways to do what I am trying to do but this
was something I wanted to make.
I have learnt Python myself and wanted to learn a way to make apps in Python.
GUI development in Python has given a lot of headache while trying to find an
appropriate framework with th
The project is not a browser but a app for managing the bookmarks. Only
managing by categories. A replacement for the bookmarks made in webbrowser. I
wanted to make bookmarks easier to use. Hierarchical structure of bookmarks
gives a lot of problems. I wanted to solve that for my use.
On Friday
On Thu, May 22, 2014 at 1:49 PM, Mark H Harris wrote:
> On 5/22/14 1:54 PM, Aseem Bansal wrote:
>>
>> I am working on a hobby project - a Bookmarker{snip}
>
>
> hi, no django is not really the correct tool-set. Django is for server-side
> content management
That's a common misconception. Django
On 05/22/2014 11:54 AM, Aseem Bansal wrote:
I am working on a hobby project - a Bookmarker
https://github.com/anshbansal/Bookmarker.
Take a look at delicio.us -- it seems to be a similar type of experience.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
In Ian Kelly
writes:
> > My web browser works just fine with links such as this:
> >
> > foo.html
> It works if the document that contains the link is also opened from
> the local filesystem, but browsers will refuse to follow the link if
> it was served over http.
Aha! I didn't know that.
On Thu, May 22, 2014 at 1:28 PM, John Gordon wrote:
> In <6a3c5b20-bce5-4c95-b27f-3840e9cc7...@googlegroups.com> Aseem Bansal
> writes:
>
>> But I hit a snag today that webbrowser's won't allow client to open
>> hyperlinks with file protocol. I have both offline and online bookmarks
>> so that w
On 5/22/14 1:54 PM, Aseem Bansal wrote:
I am working on a hobby project - a Bookmarker{snip}
hi, no django is not really the correct tool-set. Django is for
server-side content management, but who knows, you might come up with a
great hack (I don't want to discourage you). But, a straight p
In <6a3c5b20-bce5-4c95-b27f-3840e9cc7...@googlegroups.com> Aseem Bansal
writes:
> But I hit a snag today that webbrowser's won't allow client to open
> hyperlinks with file protocol. I have both offline and online bookmarks
> so that was a problem for me.
What do you mean by saying "webbrowser'
On Wed, Mar 26, 2014 at 12:34 AM, wrote:
> Monkey-patching multiprocessing.Process seems more fragile than subclassing
> it. It turned out that multiprocessing.pool.Pool was also very easy to
> subclass. But cleanly subclassing the Managers in multiprocessing.managers
> look much harder. I'
ChrisA -
>> I wasn't really asking "is multiprocessing appropriate?" but whether
>> there was a cleaner way to subclass multiprocessing.BaseManager() to
>> use a subclass of Process(). I can believe the answer is No, but
>> thought I'd ask.
>
> I've never subclassed BaseManager like this. It m
On Tue, Mar 25, 2014 at 2:27 PM, wrote:
> Thanks for the reply. I find that appreciation is greatly (perhaps
> infinitely) delayed whenever I reply "X is probably not what you want to do"
> without further explanation to a question of "can I get some advice on how to
> do X?". So, I do thank
On Monday, March 24, 2014 7:19:56 PM UTC-5, Chris Angelico wrote:
> On Tue, Mar 25, 2014 at 7:24 AM, Matt Newville
>
> > I'm maintaining a python interface to a C library for a distributed
> > control system (EPICS, sort of a SCADA system) that does a large
> > amount of relatively light-weight ne
On Tue, Mar 25, 2014 at 7:24 AM, Matt Newville
wrote:
> I'm maintaining a python interface to a C library for a distributed
> control system (EPICS, sort of a SCADA system) that does a large
> amount of relatively light-weight network I/O. In order to keep many
> connections open and responsive,
Thank you very much! :-)
On Monday, February 3, 2014 11:30:00 PM UTC-8, dieter wrote:
> thebiggestbangthe...@gmail.com writes:
>
>
>
> > I am trying to package up a very simple python app. In my setup.py file I
> > have a couple of lines that include the following:
>
> >
>
> > from setuptool
thebiggestbangthe...@gmail.com writes:
> I am trying to package up a very simple python app. In my setup.py file I
> have a couple of lines that include the following:
>
> from setuptools import setup
>
> setup(
> name='ban',
> version='0.1',
> packages=['ban',],
>
On 11 March 2013 14:57, Abhinav M Kulkarni wrote:
> Hi Jean,
>
> Below is the code where I am creating multiple processes:
>
> if __name__ == '__main__':
> # List all files in the games directory
> files = list_sgf_files()
>
> # Read board configurations
> (intermediateBoards, fina
Hi Jean,
Below is the code where I am creating multiple processes:
if __name__ == '__main__':
# List all files in the games directory
files = list_sgf_files()
# Read board configurations
(intermediateBoards, finalizedBoards) = read_boards(files)
# Initialize parameters
On 03/11/2013 01:57 AM, Abhinav M Kulkarni wrote:
* My laptop has quad-core Intel i5 processor, so I thought using
multiprocessing module I can parallelize my code (basically
calculate gradient in parallel on multiple cores simultaneously).
* As a result I end up creating a
- Original Message -
> Dear all,
> I need some advice regarding use of the multiprocessing module.
> Following is the scenario:
> * I am running gradient descent to estimate parameters of a pairwise
> grid CRF (or a grid based graphical model). There are 106 data
> points. Each data po
noydb於 2013年1月31日星期四UTC+8下午9時33分48秒寫道:
> I'm looking for knowlegde about how best to go about converting a binary file
> (from a GPS unit) to GPX/XML. I am completely clueless on this, so any
> start-from-the-beginning info would be greatly appreciated! I'm guessing the
> level of effort will
:-) yeah...
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, January 31, 2013 4:05:43 PM UTC+1, noydb wrote:
> > I assume that you've looked into GPSBabel? http://www.gpsbabel.org/
>
> Yes, I have. Was hoping to use it, but client is very resistent to adding
> such things to their system - python is desireable. So what GPSbabel does is
> wh
On Thursday, January 31, 2013 8:41:34 AM UTC-5, Maarten wrote:
> On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote:
>
> > I'm looking for knowlegde about how best to go about converting a binary
> > file (from a GPS unit) to GPX/XML. I am completely clueless on this, so
> > any start-
On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote:
> I'm looking for knowlegde about how best to go about converting a binary file
> (from a GPS unit) to GPX/XML. I am completely clueless on this, so any
> start-from-the-beginning info would be greatly appreciated! I'm guessing the
>
Wow, what an impressive turnout !
Thanks a lot, rantingrick, CM and Herbert, for the fast answers, useful
tips and especially the sample code !
Beats starting from a blank page, with a big stick, and will certainly set
me on my way much faster...
networkx does seem a bit over the top for my si
Am 06.09.2011 20:27, schrieb Fred Pacquier:
Hi,
I'm a Python long-timer, but I've never had to use tools like Matplotlib&
others before.
Now, for my work, I would need to learn the basics fast, for a one-time
quick-n-dirty job.
This involves a graphic comparison of RFC1918 IP subnets allocatio
> Now, for my work, I would need to learn the basics fast, for a one-time
> quick-n-dirty job.
>
> This involves a graphic comparison of RFC1918 IP subnets allocation across
> several networks.
>
> The idea is to draw parallel lines, with segments (subnets) coloured green,
> yellow or red depending
On Sep 6, 2:27 pm, Fred Pacquier wrote:
> Hi,
>
> I'm a Python long-timer, but I've never had to use tools like Matplotlib &
> others before.
>
> Now, for my work, I would need to learn the basics fast, for a one-time
> quick-n-dirty job.
>
> This involves a graphic comparison of RFC1918 IP subnet
On Sep 6, 1:27 pm, Fred Pacquier wrote:
> I'm a Python long-timer, but I've never had to use tools like Matplotlib &
> others before.
>
> Now, for my work, I would need to learn the basics fast, for a one-time
> quick-n-dirty job.
##
## START SCRIPT ##
##
#
# Easy_
Alan Ristow wrote:
I would like to have three classes, ClassA, ClassB, and ClassC, that are
essentially the same, the only difference being that each class has a
different range of valid values for its properties. Thus, the obvious
solution is to create a base class, then subclass from that a
- "Alan Ristow" wrote:
> Hi all,
>
> I am relatively new to Python, though not to programming in general, and
> using Python 2.6. I have a design problem that I cannot quite decide how to
> handle and I am hoping for some advice.
>
> I would like to have three classes, ClassA, ClassB,
Steven D'Aprano wrote:
>On Wed, 24 Mar 2010 21:14:23 -0700, Tim Roberts wrote:
>
>> Jimbo wrote:
>>>
>>>class stock:
>>>code = ""
>>>purchasePrice= 0
>>>purchaseQuantity = 0
>>>price= [] # list of recent prices
>>>recentBid= [] # list of
Steven D'Aprano a écrit :
On Wed, 24 Mar 2010 21:14:23 -0700, Tim Roberts wrote:
Jimbo wrote:
class stock:
code = ""
purchasePrice= 0
purchaseQuantity = 0
price= [] # list of recent prices
recentBid= [] # list of recent bids for stock
On Mar 24, 1:13 pm, Jon Clements wrote:
> On 24 Mar, 15:27, Glazner wrote:
>
>
>
> > Hi!
>
> > I need to replace an app that does number crunching over a local
> > network.
> > it have about 50 computers as slaves
> > each computer needs to run COM that will do the "job"
> > right now the system
On Wed, 24 Mar 2010 21:14:23 -0700, Tim Roberts wrote:
> Jimbo wrote:
>>
>>class stock:
>>code = ""
>>purchasePrice= 0
>>purchaseQuantity = 0
>>price= [] # list of recent prices
>>recentBid= [] # list of recent bids for stock
>>recent
Jimbo wrote:
>
>class stock:
>code = ""
>purchasePrice= 0
>purchaseQuantity = 0
>price= [] # list of recent prices
>recentBid= [] # list of recent bids for stock
>recentOffer = [] # list of recent offers for stock
>stockVol
have you checked hadoop ?
On Wed, Mar 24, 2010 at 11:43 PM, Jon Clements wrote:
> On 24 Mar, 15:27, Glazner wrote:
> > Hi!
> >
> > I need to replace an app that does number crunching over a local
> > network.
> > it have about 50 computers as slaves
> > each computer needs to run COM that will d
On 24 Mar, 15:27, Glazner wrote:
> Hi!
>
> I need to replace an app that does number crunching over a local
> network.
> it have about 50 computers as slaves
> each computer needs to run COM that will do the "job"
> right now the system uses MFC threads and DCOM to distribute the load.
>
> as i sa
Jimbo wrote:
I have made a Python App(really script) that will check a stocks
current values from a website & save that data to a SQLite 3 database.
I am looking for any suggestions & criticisms on what I should do
better or anything at all but mainly in these areas:
[QUOTE]
- Correct Python Lay
On Tue, Mar 23, 2010 at 5:05 PM, Jimbo wrote:
> I have made a Python App(really script) that will check a stocks
> current values from a website & save that data to a SQLite 3 database.
>
> I am looking for any suggestions & criticisms on what I should do
> better or anything at all but mainly in
On Thu, 12 Nov 2009 08:53:57 +0100, Dieter Maurer wrote:
> Steven D'Aprano writes on 10 Nov
> 2009 19:11:07 GMT:
>> ...
>> > So I am trying to restructure it using lazy evaluation.
>>
>> Oh great, avoiding confusion with something even more confusing.
>
> Lazy evaluation may be confusing if it
Steven D'Aprano writes on 10 Nov 2009
19:11:07 GMT:
> ...
> > So I am trying to restructure it using lazy evaluation.
>
> Oh great, avoiding confusion with something even more confusing.
Lazy evaluation may be confusing if it is misused.
But, it may be very clear and powerful if used appropriat
On Sun, 08 Nov 2009 14:41:27 -0800, markolopa wrote:
> Hi,
>
> Could you please give me some advice on the piece of code I am writing?
>
> My system has several possible outputs, some of them are not always
> needed. I started to get confused with the code flow conditions needed
> to avoid doing
On Nov 9, 1:34 am, MRAB wrote:
> markolopa wrote:
> > Hi again,
>
> > I put a copy of the message and the tarball of the code here (because
> > of the problem of line breaks):
>
> >http://python-advocacy.wikidot.com/comp-lang-python-question
>
> Here's a slightly different approach:
A clean and e
markolopa wrote:
Hi again,
I put a copy of the message and the tarball of the code here (because
of the problem of line breaks):
http://python-advocacy.wikidot.com/comp-lang-python-question
Here's a slightly different approach:
repository.py
=
class Repository(object):
def __
Hi again,
I put a copy of the message and the tarball of the code here (because
of the problem of line breaks):
http://python-advocacy.wikidot.com/comp-lang-python-question
Thanks!
Marko
--
http://mail.python.org/mailman/listinfo/python-list
disclaimer: I'm not affiliated with any company selling Plone services ;)
I also have nothing against Django and such.
Ken Seehart wrote:
> I want a new python based CMS. ... One that won't keep me up all night
>
>
> I've been fooling around with zope and plone, and I like plone for some
Ken Seehart <[EMAIL PROTECTED]> wrote:
> I want a new python based CMS. ... One that won't keep me up all night
>
> I've been fooling around with zope and plone, and I like plone for some
> things, such as a repository for online project documentation. However
> for general-purpose we
Marco Bizzarri a écrit :
Hi all.
I read the PEP8 and the "importing Python Modules" article. However,
I'm still a little confused on what should the general rules for
importing modules.
I'm showing what I used in my current project, and will accept your
advices on how I should change them.
The
On Sat, Aug 30, 2008 at 4:53 PM, Eric Wertman <[EMAIL PROTECTED]> wrote:
>> I read the PEP8 and the "importing Python Modules" article. However,
>> I'm still a little confused on what should the general rules for
>> importing modules.
>>
>> I'm showing what I used in my current project, and will ac
Hi bearophile
On Sat, Aug 30, 2008 at 4:04 PM, <[EMAIL PROTECTED]> wrote:
>
> from somemodule import somename
>
> is often acceptable IHMO, but there are some things to consider:
> - you and the person that reads your code have to remember where
> somename comes from. So you can do it for well
> I read the PEP8 and the "importing Python Modules" article. However,
> I'm still a little confused on what should the general rules for
> importing modules.
>
> I'm showing what I used in my current project, and will accept your
> advices on how I should change them.
> import module
>
> and then
Marco Bizzarri:
> I'm just confused because PEP8 seems to suggest that the from module
> import Class style is acceptable; is there a big "if you know what are
> doing" before, which I'm unable to see?
from somemodule import somename
is often acceptable IHMO, but there are some things to consider
On Sat, Aug 30, 2008 at 2:20 PM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
> importing objects instead of the module (namespace) they live in can cause
> all sorts of aliasing and dependency issues. avoid unless you know exactly
> what you're doing.
>
>
>
Thanks Fredrik; I understand that is th
Marco Bizzarri wrote:
I'm showing what I used in my current project, and will accept your
advices on how I should change them.
The style is consistently the following:
from package.subpackge.module import MyClass
Is this an accepted way to write imports? According to what I
understood in arti
On Jun 10, 8:21 pm, Miki <[EMAIL PROTECTED]> wrote:
> Hello,
>
> > Hi. I'm stretching my boundaries in programming with a little python
> > shell-script which is going to loop through a list of domain names,
> > grab the whois record, parse it, and put the results into a csv.
>
> > I've got the res
Hello,
> Hi. I'm stretching my boundaries in programming with a little python
> shell-script which is going to loop through a list of domain names,
> grab the whois record, parse it, and put the results into a csv.
>
> I've got the results coming back fine, but since I have *no*
> experience with
On Jun 10, 9:47 pm, Phillip B Oldham <[EMAIL PROTECTED]> wrote:
> Hi. I'm stretching my boundaries in programming with a little python
> shell-script which is going to loop through a list of domain names,
> grab the whois record, parse it, and put the results into a csv.
>
> I've got the results co
flit <[EMAIL PROTECTED]> wrote:
> I am looking for some experience from the senior members.
> Now I am doing a simple desktop application, this application will
> have 3 main functions:
>
> 1- Read information about the desktop system;
> 2- Interact with the user;
> 3- Send information to a
On May 23, 8:02 am, flit <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I am looking for some experience from the senior members.
> Now I am doing a simple desktop application, this application will
> have 3 main functions:
>
> 1- Read information about the desktop system;
> 2- Interact with the user;
On Apr 12, 2008, at 6:55 PM, [EMAIL PROTECTED] wrote:
> Will it be possible for me to put together an async site
> with only python?
Nope. Not until some browser embeds a Python interpreter in it anyway.
Your primary choices are JavaScript and Flash.
--
http://mail.python.org/mailman/listi
I would definitely recommend Django as a framework - though the choice of
framework wouldn't really affect your use of AJAX. And using AJAX actually
doesn't require learning a whole lot of javascript stuff - using something
like the Prototype JS library (prototypejs.org) takes care of all the
deta
On Dec 8, 11:57 pm, Waldemar Osuch <[EMAIL PROTECTED]> wrote:
> On Dec 8, 8:35 pm, Rick Muller <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm a computational chemist who frequently dabbles in Python. A
> > collaborator sent me a huge XML file that at one point was evidently
> > modified by a now defunct
On Dec 8, 8:35 pm, Rick Muller <[EMAIL PROTECTED]> wrote:
> I'm a computational chemist who frequently dabbles in Python. A
> collaborator sent me a huge XML file that at one point was evidently
> modified by a now defunct java application. A sample of this file
> looks something like:
>
>
> T
--- Rick Muller <[EMAIL PROTECTED]> wrote:
> If I want to do this, it seems like I need to keep a
> connection
> between the gui element and the original value in
> the elementtree, so
> I can update it. But I'm having a hard time
> visualizing exactly how
> this works. Can someone help me out he
Thank you to folks for the replies.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] a écrit :
> Hello,
>
> I write a lot of CGI scripts, in Python of course. Now I need to
> convert some to long-running processes. I'm having trouble finding
> resources about the best practices to do that.
>
> I've found a lot of email discussions that say something like, "You
Roy Smith wrote:
> [EMAIL PROTECTED] wrote:
>
>
>>Hello,
>>
>>I write a lot of CGI scripts, in Python of course. Now I need to
>>convert some to long-running processes. I'm having trouble finding
>>resources about the best practices to do that.
>>
>>I've found a lot of email discussions that sa
[EMAIL PROTECTED] wrote:
> Hello,
>
> I write a lot of CGI scripts, in Python of course. Now I need to
> convert some to long-running processes. I'm having trouble finding
> resources about the best practices to do that.
>
> I've found a lot of email discussions that say something like, "You
>
Gerardo Herzig schrieb:
>
> @is_logued_in
> def change_pass():
>bla
>bla
>
> And so on for all the other functions who needs that the user is still
> loged in.
>
> where obviosly the is_logued_in() function will determine if the dude is
> still loged in, and THEN execute change_pass().
Gabriel Genellina wrote:
> En Wed, 29 Aug 2007 07:32:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]>
> escribi�:
>
>> On 8/24/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>>> En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]>
>>> escribi�:
>>>
def check_user_logged_in
En Wed, 29 Aug 2007 07:32:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]>
escribi�:
> On 8/24/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>> En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]>
>> escribi�:
>>
>> > def check_user_logged_in(func):
>> > def f(*args, **kwa
In message <[EMAIL PROTECTED]>, Gerardo
Herzig wrote:
> @is_logued_in
> def change_pass():
> bla
> bla
>
> And so on for all the other functions who needs that the user is still
> loged in.
My suspicion is that most of the methods in your session object (with the
obvious exception of the
On 8/24/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]>
> escribi�:
>
> > def check_user_logged_in(func):
> > def f(*args, **kwargs):
> > if global_state.the_user.is_logged_in:
> > return func(*args,
En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]>
escribi�:
> On 8/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>> On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote:
>> > As I said, you can accomplish the exact same thing by calling a
>> > function from w
BJörn Lindqvist wrote:
>On 8/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>
>
>>On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote:
>>
>>
>>>As I said, you can accomplish the exact same thing by calling a
>>>function from within the function that requires the user to be log
On 8/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote:
> > As I said, you can accomplish the exact same thing by calling a
> > function from within the function that requires the user to be logged
> > in.
> >
> > def change_pass():
Gerardo Herzig a écrit :
> Steven Bethard wrote:
>
>> Gerardo Herzig wrote:
>>
>>
>>> Hi all. I guess i have a conceptual question:
>>> Im planing using a quite simple decorator to be used as a conditional
>>> for the execution of the function.
(snip)
>>>
>>> Something in my mind tells me that
On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote:
> On 8/17/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
>
> > BJörn Lindqvist wrote:
> > >def is_logued_in():
> > >if not user.is_logged_in():
> > >raise NotLoggedInError
>
> > >It costs you one more line, but reduces comple
On 8/17/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
> BJörn Lindqvist wrote:
> >def is_logued_in():
> >if not user.is_logged_in():
> >raise NotLoggedInError
> >
> >It costs you one more line, but reduces complexity. And if you are
> >worried about that extra line you can put it in a f
Gerardo Herzig wrote:
[...]
> As far as i know (by the way, AFAK is the shortcut? [...]
That's "AFAIK", AFAIK :-)
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
-
BJörn Lindqvist wrote:
>On 8/16/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
>
>
>>@is_logued_in
>>def change_pass():
>>bla
>>bla
>>
>>And so on for all the other functions who needs that the user is still
>>loged in.
>>
>>where obviosly the is_logued_in() function will determine if the
Laszlo Nagy wrote:
>
>>>
>>> Are you developing a website or a GUI program?
>>>
>>>
>> It will be used in a web development. It is an important point?
>
> Yes, I think. Unless you use AJAX. :-) Most web sites work this way:
>
> user clicks -> request to server -> process on server -> response
>
>
On 8/16/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
> @is_logued_in
> def change_pass():
> bla
> bla
>
> And so on for all the other functions who needs that the user is still
> loged in.
>
> where obviosly the is_logued_in() function will determine if the dude is
> still loged in, and TH
1 - 100 of 224 matches
Mail list logo