1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 05:50:51 +00:00
Commit Graph

677 Commits

Author SHA1 Message Date
astaxie
93e1206d60 xsrf change to randstr and cookie set to security cookie 2013-09-25 23:05:53 +08:00
astaxie
2249d745d9 session support secure set 2013-09-25 23:05:53 +08:00
astaxie
f9ed74a9b2 Merge pull request #219 from markstory/readme-fixes
Fix typos in the readme file.
2013-09-25 06:42:15 -07:00
Mark Story
65ec2db4e8 Fix typos in the readme file. 2013-09-25 09:41:11 -04:00
slene
001e33f310 fix #213 2013-09-22 19:20:40 +08:00
slene
09aca2528a orm RegisterDataBase remove default maxIdle/maxConn 2013-09-22 17:51:37 +08:00
astaxie
beecc5072e fix #209 2013-09-22 14:35:01 +08:00
astaxie
797bd98269 fix #210 2013-09-22 14:32:18 +08:00
astaxie
4a3d32dc1f support auto get session from input fix #211 2013-09-22 11:43:22 +08:00
astaxie
048be29fcd add w.started fix #208 2013-09-22 11:17:18 +08:00
astaxie
4ce584c5a6 fix #201 2013-09-22 11:12:37 +08:00
astaxie
3c1d23bc62 #207 2013-09-19 23:40:55 +08:00
astaxie
95307a3d78 miss filter * 2013-09-19 23:14:47 +08:00
astaxie
a85d91b4bd fix #206 2013-09-19 23:04:05 +08:00
slene
a616087cde orm now can specify engine for mysql. add api SetMaxIdleConns/SetMaxOpenConns(go 1.2) 2013-09-16 09:50:32 +08:00
slene
198d6320dd fix xsrf cookie path should use root 2013-09-13 22:42:15 +08:00
slene
1596aa7a34 orm support use any numeric type set QuerySeter.Limit value 2013-09-13 18:06:44 +08:00
slene
8e8d39d3cb fix memory cache Put method should set value when key exist. 2013-09-13 18:04:22 +08:00
astaxie
42958ddd41 update version from 0.9.0 to 0.9.9 2013-09-13 17:45:26 +08:00
astaxie
0476da503e improve template 2013-09-13 17:41:31 +08:00
astaxie
943fe971f1 support template 2013-09-13 13:57:40 +08:00
astaxie
9d84969bf6 fix #153
已经支持了任意定义变量的路由形式,具体的使用请参考:

func TestManyRoute(t *testing.T) {

	r, _ := http.NewRequest("GET", "/beego32-12.html", nil)
	w := httptest.NewRecorder()

	handler := NewControllerRegistor()
	handler.Add("/beego:id([0-9]+)-:page([0-9]+).html", &TestController{})
	handler.ServeHTTP(w, r)

	id := r.URL.Query().Get(":id")
	page := r.URL.Query().Get(":page")

	if id != "32" {
		t.Errorf("url param set to [%s]; want [%s]", id, "32")
	}
	if page != "12" {
		t.Errorf("url param set to [%s]; want [%s]", page, "12")
	}
}
2013-09-13 11:22:14 +08:00
slene
3745bb7279 orm.Read support specify condition fields, orm.Update and QuerySeter All/One support omit fields. 2013-09-12 19:04:39 +08:00
astaxie
55fe3ba52f update tempalte's regexp 2013-09-12 18:20:29 +08:00
astaxie
de2dd6e070 update template's testcase 2013-09-12 17:32:11 +08:00
astaxie
ffb347a2bb support nest template 2013-09-12 17:20:32 +08:00
astaxie
19862725f7 support template 2013-09-12 15:24:08 +08:00
astaxie
f502f84423 fix #189 2013-09-12 13:44:24 +08:00
slene
e788fb7239 add an DateParse function, parse datestring to time.Time use php date format 2013-09-11 23:47:01 +08:00
astaxie
72f5961dd8 delete docs move to github.com/beego/beedoc 2013-09-11 18:04:10 +08:00
astaxie
9f6b803a10 update middleware & beego's error 2013-09-11 17:00:39 +08:00
astaxie
0da2059f79 update info 2013-09-11 16:31:18 +08:00
astaxie
e904d26e08 modify middleware 2013-09-11 16:23:41 +08:00
astaxie
1ff0a31d3f add router test 2013-09-11 15:49:12 +08:00
astaxie
e7f08946d1 improve the performance 2013-09-11 15:16:09 +08:00
slene
ea9c2cebfd validation add more info to ValidationError, and put all messages tmpl to a map 2013-09-10 21:51:25 +08:00
astaxie
02a03cec33 add logs readme 2013-09-10 18:44:29 +08:00
astaxie
31fbd52462 add chat example 2013-09-10 18:38:40 +08:00
astaxie
a88750d2b3 support websocket 2013-09-10 17:56:06 +08:00
astaxie
da91565354 add iswebsocket method 2013-09-10 17:02:56 +08:00
astaxie
44f5c208b6 update example 2013-09-10 15:08:32 +08:00
astaxie
83e26fdc9b fix config bug 2013-09-10 14:47:48 +08:00
astaxie
4a329db792 Merge pull request #187 from Unknwon/master
compatiable for old version
2013-09-09 16:47:23 -07:00
Unknown
1f8022d4ad compatiable for old version 2013-09-09 16:43:48 -04:00
astaxie
63da329468 go on modify api 2013-09-10 00:17:49 +08:00
astaxie
acadea6afa update xml 2013-09-10 00:02:22 +08:00
astaxie
bd61dd9ffc change a log about new version 2013-09-10 00:00:18 +08:00
astaxie
5b9ae54441 update input 2013-09-10 00:00:17 +08:00
slene
41dd6e580d orm 1. complete QueryRow/QueryRows api 2. QuerySeter.All support *[]Type and *[]*Type 2013-09-09 22:33:41 +08:00
slene
22d2de9fc7 orm fix 1. support Limit when use QuerySeter.One 2. return Local time 2013-09-06 19:03:47 +08:00