Hi,

Thanks for the responses guys.
I'll clear up my question a bit more maybe, the application which data I'm
accessing doesn't store it's information in a database, it only stores it in
the application at runtime. I did think to ask to have a module send the
data to my application like what you guys suggested, but then that doesn't
make my application standalone, or does it? In the sense that, a module from
the bigger application has to be created to send whatever data I need, so
really my .py application has to be imported into the bigger application,
hence not making it standalone. Or am I trying to make things a bit too
complication for myself? I guess I was just thinking of a way for my
application to be more versatile and can be used with other similar main
applications, sort of as a service application.

On Wed, Sep 2, 2009 at 3:54 AM, Alan Gauld <alan.ga...@btinternet.com>wrote:

>
> "Kristina Ambert" <krissy.amb...@gmail.com> wrote
>
>  The question might be a tad confusing, but what I want to ask is, if it's
>> possible to track if and when a variable in an application has changed,
>> and
>> then grab the new content of that variable?
>>
>
> Not in general. Variables change too quickly for that to be viable - think
> about a loop counter in a while loop, it could change millions of times
> per second!
>
>  I have my product inventory database application which is attached to
>> another bigger application. Some of the data I need comes from that bigger
>> application, like for instance Consumer information (not handled by the
>> application that I'm working on). So, if the address of a consumer is
>> changed, how my application track the changes
>>
>
> But this is different. I assume the other app is storing its data in a
> database?
> If so that database may suppport triggers which can call a stored procedure
> when an item (table, row,column) changes. That stored procedure can notify
> your app of the change. Of course that relies on you having access to the
> same database as the other app, but that sounds very likely in this
> scenario.
>
> HTH,
>
>
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
Cheers,
Krissy
-----------------------------------------------------------------------
Testing the waters is always fun...
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to