minor fixes
This commit is contained in:
21
ep_test.py
Normal file
21
ep_test.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from wiki.api import EtherpadLiteLazyAPI
|
||||
import logging
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
handlers=[#logging.FileHandler("example1.log"),
|
||||
logging.StreamHandler()])
|
||||
logger=logging.getLogger(__name__)
|
||||
logger.debug("Starting Test ...")
|
||||
|
||||
ep=EtherpadLiteLazyAPI(
|
||||
url="http://etherpad:9101",
|
||||
keyfile="etherpad/APIKEY.txt",
|
||||
groupmapper="fetwiki"
|
||||
)
|
||||
|
||||
print(ep.padExists("test"))
|
||||
print(ep.getPadHTML("test"))
|
||||
print(ep.createPadifNotExists("test"))
|
||||
print(ep.setPadHTML("test","sdf"))
|
||||
print(ep.getPadLink("test"))
|
||||
Reference in New Issue
Block a user