Skip to content

Commit

Permalink
remove usage of global attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and Jan Was committed Mar 27, 2020
1 parent d6d0afe commit 00b20a8
Show file tree
Hide file tree
Showing 6 changed files with 638 additions and 387 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ that periodically cleans the Database.

from pytm.pytm import TM, Server, Datastore, Dataflow, Boundary, Actor, Lambda

tm = TM("my test tm")
tm.description = "another test tm"
tm.isOrdered = True

User_Web = Boundary("User/Web")
Web_DB = Boundary("Web/DB")

Expand Down Expand Up @@ -111,6 +107,10 @@ db_to_web = Dataflow(db, web, "Comments contents")
db_to_web.protocol = "MySQL"
db_to_web.data = 'Results of insert op'

tm = TM("my test tm")
tm.description = "another test tm"
tm.isOrdered = True
tm.elements = [my_lambda_to_db, user_to_web, web_to_user, web_to_db, db_to_web]
tm.process()

```
Expand Down
Loading

0 comments on commit 00b20a8

Please sign in to comment.