1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-18 14:20:54 +00:00
Commit Graph

2664 Commits

Author SHA1 Message Date
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
slene
6064a7ab2a orm RawSeter readValues set nil when get NULL 2013-08-30 12:38:32 +08:00
slene
8f5ca303b5 orm fix when use uint as pk 2013-08-30 12:32:05 +08:00
astaxie
dc8f932009 update doc's link 2013-08-28 17:09:01 +08:00
astaxie
4922237847 sleep some time for send mail 2013-08-28 15:55:34 +08:00
astaxie
2424618163 delete default console & add bench test 2013-08-28 15:48:48 +08:00
astaxie
b96f7e2ef2 Merge pull request #174 from Xelom/FixBra
Changed ObejctController to ObjectController in beeapi
2013-08-27 18:54:52 -07:00
Arıl Bozoluk
cde38fbe1a Changed ObejctController to ObjectController 2013-08-27 20:05:35 +03:00
Arıl Bozoluk
56a1603e1f Changed ObejctController to ObjectController 2013-08-27 20:05:15 +03:00
astaxie
f92973794e finish logs module 2013-08-27 23:49:04 +08:00
slene
49bbca0ce3 orm Improve syncdb 2013-08-27 12:33:27 +08:00
slene
6686d9235c orm fix create index 2013-08-25 13:50:50 +08:00
slene
7c72b2dca7 orm fix syncdb 2013-08-25 11:35:12 +08:00
slene
4c061feddf orm support custom multi unique / index 2013-08-22 21:19:58 +08:00