[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #10706 [Tor Weather]: Find out how to integrate new Python scripts into current Weather



#10706: Find out how to integrate new Python scripts into current Weather
-----------------------------+-----------------------------
     Reporter:  karsten      |      Owner:  feverDream
         Type:  enhancement  |     Status:  needs_revision
     Priority:  normal       |  Milestone:
    Component:  Tor Weather  |    Version:
   Resolution:               |   Keywords:  weather-rewrite
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+-----------------------------

Comment (by feverDream):

 Thanks for suggestions karsten. With regard to the git, I will makes the
 changes necessary.

 About the integration code:
 1. sqlite3 -> django's db:
   I am planning to  fix it once I get everything in order. Right now, I
 use db-code from Olivers hourly script to get the job done.
 2. You are right, the is_up_or_hibernating function doesn't really check
 anything. fixed it.
 3. About the name of the wrapper class, I didn't really give it much
 thought, but OnionooWrapper makes sense.
 Lastly, the work-flow is more or less the same with the current weather -
 a django background command(via cron) calls the get_documents() function
 in the  "hourly.py" script, which grabs the new document and caches it, or
 uses the cached document if new document is not present.

 It then initializes a new OninooUtil/OnionooWrapper object with the
 document and passes it to the updaters.run_all() function. Which then uses
 the wrapper object to update the routers table, check subscriptions and
 send emails.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10706#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs