-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.pyc | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# -*- coding:utf-8 -*- | ||
""" | ||
pypw.handler | ||
~~~~~~~~~~~~ | ||
Implements the actually handling object for pypw. | ||
:copyright: (c) 2012 by Jason Lai. | ||
:license: BSD, see LICENSE for more details. | ||
""" | ||
|
||
import logging | ||
|
||
|
||
class Handler(object): | ||
""" | ||
Handlers control and manage the infomations of user. | ||
""" | ||
|
||
def __init__(self): | ||
# Initialize Log | ||
self.log = logging.getLogger('pypw') | ||
|
||
def initialize(self, cipher): | ||
""" | ||
validate the cipher and load the data from outside file. | ||
""" | ||
raise NotImplementedError | ||
|
||
def write(self): | ||
""" | ||
encrypt the infomations and dumps into outside file. | ||
""" | ||
raise NotImplementedError | ||
|
||
def add_item(group, item, value, update=False): | ||
raise NotImplementedError | ||
|
||
@property | ||
def items(self): | ||
raise NotImplementedError | ||
|
||
|