Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 531 - 540 of 2,074 for user6 (0.02 seconds)

  1. docs_src/dependencies/tutorial014_an_py310.py

    
    class User(SQLModel, table=True):
        id: int | None = Field(default=None, primary_key=True)
        name: str
    
    
    app = FastAPI()
    
    
    def get_session():
        with Session(engine) as session:
            yield session
    
    
    def get_user(user_id: int, session: Annotated[Session, Depends(get_session)]):
        user = session.get(User, user_id)
        if not user:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Sep 29 03:29:38 GMT 2025
    - 957 bytes
    - Click Count (0)
  2. docs_src/graphql_/tutorial001_py310.py

    import strawberry
    from fastapi import FastAPI
    from strawberry.fastapi import GraphQLRouter
    
    
    @strawberry.type
    class User:
        name: str
        age: int
    
    
    @strawberry.type
    class Query:
        @strawberry.field
        def user(self) -> User:
            return User(name="Patrick", age=100)
    
    
    schema = strawberry.Schema(query=Query)
    
    
    graphql_app = GraphQLRouter(schema)
    
    app = FastAPI()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 424 bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

            result.put("status", "error");
            result.put("message", message);
            return result;
        }
    
        /**
         * Gets the user ID from the request.
         *
         * @param request the HTTP request
         * @return the user ID, or null if the user is a guest
         */
        protected String getUserId(final HttpServletRequest request) {
            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

            activityHelper.accessDenied(createUser("testuser", new String[0]), "/admin/user/");
            assertEquals("action:ACCESS_DENIED\tuser:testuser\tpath:/admin/user/", localLogMsg.get());
    
            activityHelper.accessDenied(createUser("testuser", new String[] { "111", "222" }), "/admin/role/");
            assertEquals("action:ACCESS_DENIED\tuser:testuser\tpath:/admin/role/", localLogMsg.get());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 11:45:43 GMT 2026
    - 24.3K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/index.md

    # Advanced User Guide { #advanced-user-guide }
    
    ## Additional Features { #additional-features }
    
    The main [Tutorial - User Guide](../tutorial/index.md) should be enough to give you a tour through all the main features of **FastAPI**.
    
    In the next sections you will see other options, configurations, and additional features.
    
    /// tip
    
    The next sections are **not necessarily "advanced"**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 757 bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            NtlmPasswordAuthenticator startAuth = new NtlmPasswordAuthenticator("domain", "user", new String(diffAtStart));
            NtlmPasswordAuthenticator middleAuth = new NtlmPasswordAuthenticator("domain", "user", new String(diffAtMiddle));
            NtlmPasswordAuthenticator endAuth = new NtlmPasswordAuthenticator("domain", "user", new String(diffAtEnd));
    
            try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  7. docs/iam/identity-manager-plugin.go

    		"reason": fmt.Sprintf("%v", err),
    	})
    }
    
    type Resp struct {
    	User               string                 `json:"user"`
    	MaxValiditySeconds int                    `json:"maxValiditySeconds"`
    	Claims             map[string]interface{} `json:"claims"`
    }
    
    var tokens map[string]Resp = map[string]Resp{
    	"aaa": {
    		User:               "Alice",
    		MaxValiditySeconds: 3600,
    		Claims: map[string]interface{}{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  8. schema/model_test.go

    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/utils/tests"
    )
    
    type User struct {
    	*gorm.Model
    	Name      *string
    	Age       *uint
    	Birthday  *time.Time
    	Account   *tests.Account
    	Pets      []*tests.Pet
    	Toys      []*tests.Toy `gorm:"polymorphic:Owner"`
    	CompanyID *int
    	Company   *tests.Company
    	ManagerID *uint
    	Manager   *User
    	Team      []*User           `gorm:"foreignkey:ManagerID"`
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.1K bytes
    - Click Count (0)
  9. clause/clause_test.go

    	var (
    		buildNames    []string
    		buildNamesMap = map[string]bool{}
    		user, _       = schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy)
    		stmt          = gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
    	)
    
    	for _, c := range clauses {
    		if _, ok := buildNamesMap[c.Name()]; !ok {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Jun 02 02:50:38 GMT 2020
    - 1012 bytes
    - Click Count (0)
  10. docs/ko/docs/tutorial/path-params.md

    *경로 처리*를 만들 때 고정 경로를 갖고 있는 상황들을 맞닥뜨릴 수 있습니다.
    
    `/users/me`처럼, 현재 사용자의 데이터를 가져온다고 합시다.
    
    사용자 ID를 이용해 특정 사용자의 정보를 가져오는 경로 `/users/{user_id}`도 있습니다.
    
    *경로 처리*는 순차적으로 평가되기 때문에 `/users/me`에 대한 경로가 `/users/{user_id}` 이전에 먼저 선언되었는지 확인해야 합니다:
    
    {* ../../docs_src/path_params/tutorial003_py310.py hl[6,11] *}
    
    그렇지 않으면 `/users/{user_id}`에 대한 경로가 `/users/me`에도 매칭되어, 매개변수 `user_id`에 `"me"` 값이 들어왔다고 "생각하게" 됩니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
Back to Top