add db connection handler

add routing functions
=====================

 * /login
 * /logout
 * /
 * /add

Add style.css

Add templates
-------------
 * layout.html >> html structure
 * login.html >> login form
 * show_entries.html >> default page

Bug fix
-------
* fix miss spelled words

Add some db files
-----------------
* add flaskr.db

Remove microblog files
----------------------
* schema.sql > move to tmp/
* style.css
* *.html files

Move schema.sql to tmp/

change ignore policy : exclude tmp folder

Modify flaskr.py
-----------------
* remove old route code
* make run init_db() when no database file found.

Remake schema.sql
-----------------

 * id
 * keyword
 * title (if not, same as keyword)
 * content (markdown text)
 * registered_date (datetime)

Add notes

add static files(bootstrap)

Rename app file

Add Basic Routing
-----------------
* /
* /home
* /index
* /{keyword}
* /add/{keyword}

todo
* basic template (use bootstrap)
* markdown editor
* basic form
* **** db auto setup doesn't work ***

Modify app.py
-------------

* Redirect add page for non-existing keyword

Add Basic DB Transactions
-------------------------

* insert new page
* get page from DB
* improve existing keyword check logic

add some template

add note 001

Login Check
-----------
check if the user is logged in.
* to login
* to logout
* to home

> `session` is **dict**. so use `dict.has_key` for check has key.

Add Template
------------

* login.html

Add setup.py
------------

	\> python setup.py

this makes default database schema automatically.

to rul setup, flask is installed.

Add Some new template (bootstrap)

Mod app.py
----------

* apply new template (bootstrap)
> home, add, login
* differ link login/logout by user login status

TODO
- 폼 다듬을 것
- 편집기 붙일 것

템플릿적용
==========

* 글보기
* 글쓰기
* 글 쓰기와 글 DB입력 함수 분리
* 글 등록 직후에는 등록 메시지가 나오도록 함

할일

마크다운 적용하자.

Apply markdown

app.py
> markdown class added
show.html
> safe html filter added

편집, 히스토리 기능 추가
========================

* DB 스키마 변경 : revision  추가
* show 기능에 history, revision 추가
* revision 보기는 편집 기능 제거하도록 함
* 편집시에 최신 버전이 표시되도록 함

추가 수정 사항
------------

* 인덱스 구현 (이중 쿼리 배웠다!)
* 작성시 탭 눌러도 포커스가 빠지지 않도록
* 검색 구현(쿼리만)

검색 개선
----------

제목과 본문 모두에서 검색 가능하도록 쿼리 수정
라이크 검색 시 인젝션 예방하는 코드 작성

검색 결과 로직 추가
-------

* /s/키워드 : 키워드에 대한 검색 결과를 표시함
* 제목과 본문에서 검색함 (%LIKE%)
* 별다른 페이징하지 않음
* 최종 리비전만 결과에 표시함

검색 관련 UI 수정(페이지 추가)

위키 링크 활성화 관련 방안...

위키 링크 추가
---------------

* [[단어]]로 감싸면 해당 단어로 향하는 링크가 생기도록 수정
* 로그인 기능 감춤

Disabled Debug Mode

Remove redendunt codes

use loacl js, css file

CSS 수정

설정파일 분리

return to dev

Change Structure
-----------------

* app 폴더로 구조 변경
* tmp 폴더에는 db 파일만
* 쿼리 파일은 리소스로 app에 포함
* run.py 추가
* setup.py 수정

db 포함

index 페이지에서 ':'이 나오는 버그 수정

config 파일은 레포지토리에서 제외

run.py 수정-
-------------
* degub, port 옵션을 환경설정파일로부터 적용

기본 설정 샘플을 오류 수정한 버전으로 교체

Modify views.py > index: using list comp

mod views

Refactoring
=============

* using list/dict comprehensions instead of for loops.

Decorator TEST

백업기능 추가

Remove test.py

add README

Modify __init__.py

* setup에 필요한 init_db 함수 제거 (setup.py로 이관)
* 불필요한 모듈 제거

add Read Me
* Read Me 파일 추가 (README.mdown)
* setup 시 Read Me 항목 자동 추가

Add Gist Embed : {{gist:gistid}} or {{gist:gistid#file-filename-ext}}

Update readme (gist)

keyword policy
------------------

- all spaces are ignored
- all spaces in the middle of keyword are replaced with underscore.
- lower-case are only allowed.
- add migration tool.

한글 키워드 인식 문제 해결

Fixed error when update page

fix Hangul Error for search

fix search error

Add Restore
============

- Add restore function
- python backup.py -r

App structure modification
==========================

- pull database connect module into db.py
- modify w.sql : add new table (this will be used to uploading images)

remove test print code

Add backup function

- /backup/<filename>
- prepare to restore with web UI

Fix SQL (group by statement) : all keywords are displayed in index page.

* fix to show revision properly

fix index query - display maximun revision

Add restore function

- /restore/<filename>
> w/restore/backup --> restore db from 'backup.dat'

- add flash messge into template

Refactoring: module about add and update moves into transaction.py

fix UI issues

- use enter key for "Add new" page.
- make textarea to work with properly tab key.

delete unused template

ADD FILE UPLOAD

ADD IMAGE UPLOAD

- implement AJAX Image uploading
- After uploading, auto-create image insert code
- bugfix : editor tab key issue

** CAUTION: image uploading is experimental, and backup is not include
image table and image files.

V0.2

Move 'Add Image' Button

Update README.mdown

file path problem

Fix First UPLOAD PROBLEM

remove debug codes

modify setup.py to do not remove old table

mod column def. to use default time stamp

fix tr error

Add autosaving (experimental)

fix autosave

fix js problem

Fix javascrpt:

	- cleare local storage when saving post.

'requirement'

heroku Procfile

Add Merge

Fix css/post.css

- limit size of image in post content to within post content's width

Mod css (bootstrap.min.css)

- remove font : Monaco

Mod view

- /index : apply page-nation

Mod Show.html

- make link 'delete' into comment
- add link to show history

Mod .gitignore

excluding 'backup/'

Fix Merge

- ******* ADD REVISION SORTING!!! *********

add runserver.py

Backup and Merge are now done through zip file

BugFix : merge using zipfile

backup, restore, merge with both zip and dat

remove log

fix error

Add Search Form in nav-babr

fix bug : can't save in edit.html

fix bug : can't save in compose.html

fix bug : merge error with count

Fix bug for new.html

add : backup individual post

add : upload zip file and merge it

add : zipfile upload popup

add : some features - show raw, upload merge, archive this

add favicon

add /note --> download markdown file

Refactoring about DB

Improve DB module

update .gitignore

Fix show raw in histroy mode

- show right version of markdown contents of individual post

Enable Multifile merge

- if data file's filename differs from zipfile's W treat it properly
- if subdirectory exists in zipfile, W read it properly
- if multiple files exist in zipfile, W will merge all files at once

-none

fix lexical errors

fix bug : ask to restore twice

fix autosaving

fix indentation bug

rewrite auto save manager

fix read page's autosave manager

double init problem solved

on nitrou.io

giti

2

3

4

5

6

change form font

'd'

'a'

Add data folder

Fix merge bug

merge bug fix

remove tmp

lib

run.py

clean configs

'gitignore

refactor DB module

- db.cursor is now @property : db.cursor() --> db.cursor
- db locking issue : checkfunction(item) --> checkfunction(item, db)

restore config.py

css

giti

test

rm test.txt

Store image into database

- store image binary data into database
- if image has been deleted, new file is created when be requested.
- change file name into unique name using SHA-1 hash.

Refactoring

1. Modified DB class as available for subclassing
2. Using new AppDB class instead of DB (with alias)
3. Take apart page.py from views.py

Fix bug : column property

Refactoring

Clear warning and errors

divide views.py to page.py

Refactoring

Prettifierng dictionary comprehensions in index

bugfix for setup.py

Fix Bug:

Not working auto_commit

Fix Bug : make 'test.jp' with 0 byte.

Indent Issue

* ??? Why?

Readme

Mod Transactions

1

Scripts and CSS

v0.4.0.1

* Save only change has been made.
* after finishing upload, insert img code into editor
* modified img's css to align center image. (and add shadow)

v0.4.0.1

Refactoring

* PageData and ImageData is now object based on class.
* WData : meta-dict to use "." access
* Re-arrange app structure

edit some files more (0103)

Re-write backup and merge functions

* backup all post
* merge post (zip and dat format)
	* merge use PageData object to restore posts.
* improve sort function
* remove all redundant codes

Fix bugs:

* now, search keyword with no result will be redirect to new page

Refactor

* divide access logic from view function
* page information use "access" module for retriving page contents.

delete bootstrap zip

Refactor

* move all database access code into database package (access.py)
* improve index page logic
* improve search logic
* add pagenation to search result
* integrate search result to index page

Fix

* add new keyword error
* improve search

Bug Fix

Fix content getting problem

Fix Bug

* Listing order in index page

Bugfix: sending currupted zip file

Refactor - model classes

* Just inherit from dict.
* no more key distriction

fix import bug

remove 'import upload'
--> upload module is integrated into "image"

1

rm README.mdown

rm readme and fix setup.py

Refactoring

* Divide views function and access function
* backup-related function move into backup.py
* all view funcs move into views sub package. (/backup, /merge)
* restore archive
* file link contains extension --> save 'backup.zip' file
* improved sort function
* defragment merge and backup function

Fileupload

* enable file upload
* allow all type of files

Exclude credit.py file

RENAME CONFIG VAR : BACKCUP_PATH => BACKUP_DIR, IMG_FOLDER => IMAGE_DIR

reset!!!

v1.0.1

* improved search : search keyword in keyword and content

Change Search method

Divide Archive Func

1. Download dat format : mergible data file for current keyword.
2. Download zip format : zipped all markdown file for current keyword.

RENAME DEFAULT CONFIGURATION VARIABLES

bug fix - error on non exists image

Bug Fix

* zip file's mimetype could be different from system.
* remove redendant imports.

Title Filling

Add Reverse link

Add Publishing to wordpress Blog using metaWeblog API

- All new metaweblog api wrapper - Wordpress
- Additional Config : credit.py

Add retriving wordpress posting

Fix some bugs

credit

Add basic xmlrpc server

* config --> "USE_RPC_SERVER=True"

Add Publishing through XML-RPC

: /api
: savePage(title, keyword, content)

test : reset git

Refine config.sample

Convert to py3

Converted to Py3 (running)

!!! Flask-XML-RPC is not compatible

some tools

add new route function(/imgfile/)

fix merging with python3

fix PEP8 issues

Python3 adoption:

* fix 2to3 failure issues.

Re-enable wpprc-posting

fix saving problem

add refine.py: re-normalize keywords in DB

some fixes

1. force 2to3 of wpxmlrpc module in manual
2. apply JAXMath to base.html

gist clauses will be converted during wp-publishing

fix error: gist converter

search fix

sublime-workspace?

add some comment

ig

requirements update

fix search query

140917

gitignore

1030

replace convert engine from markdown to misaka

1

remove redundant file

add doc strings.

fix pagenation value

1201 fix error on new post
1216
rebase completed
complete rebase
Add Highlight.js